Getting error while appending identifer to instrument using Http Request

Hi,

When I try to append identifiers through http request, Im getting below error:

{'error': {'message': 'Invalid request parameter Identifiers'}}

Im using below code:

OrderedDict([('Identifiers',OrderedDict([('Identifier','US8180971074'),('IdentifierType','Isin')])),('KeepDuplicates',True)]);

Can anyone help?

Best Answer

  • The value of "Identifiers" needs to be JSON array. Please verify if your HTTP request.

    Below is the sample of format. If the value is not JSON array, I get the same error.

    {
    "Identifiers": [
    {
    "Identifier": "US8180971074",
    "IdentifierType": "Isin"
    }
    ],
    "KeepDuplicates": true
    }

Answers

  • One to many OrderedDict()'s I think.

    Do you have the JSON that turns into: From the Sample App, this should work:

    {
    "Identifiers": [{
    "Identifier": "IBM.N",
    "IdentifierType": "Ric",
    "UserDefinedIdentifier": "UserIdent4A"
    }],
    "KeepDuplicates": false
    }

  • The code should be modified to be JSON arrays as follows.

    OrderedDict([('Identifiers',[OrderedDict([('Identifier','US8180971074'),('IdentifierType','Isin')])]),('KeepDuplicates',True)]);