INDX API ExToolsByNP

ExToolsByNP method (list of instruments relative to the traded assets)

  • request parameters:
    name purpose comments
    Reqn Request number unsigned int, maximum digits - 18; must always be greater than the number of a previous request!
    Login Trader’s login obtained by the Trader on the API access page and is used to sign the request sent to the Internet-exchange
    Wmid Trader’s WMID Trader’s WM-identifier used to operate the Internet-exchange
    Culture Request language determines the language of the message (ru-RU, en-EN)
    Signature Request signature BASE64 + SHA256 formed with the parameters: Login+ ';' + Password+ ';' + Culture+ ';' + Wmid + ';' + NP + ';' + Reqn
    Example: CryptoJS.SHA256('1234567890AaBb').toString(CryptoJS.enc.Base64) equal Q+ylxnY9VUUqgEalgyEQS9oD2WgOgzA6LofVvjYPhFQ=
    NP Name of a traded asset consists one of the following values
    WMZ|USDT|USDC|TUSD|BTC|ETH|LTH
    (capital letters only!)
  • response format:
    {"code":0,"desc":"Success","value":[{"id":0,"name":"","price":0}]}
    
  • response parameters:
    name purpose comments
    code Execution code 0 - request successfully completed (for other values see return codes list)
    desc Execution code description “string of 0 to 255 symbols, win1251-encoded”
    value Result contains the return value depending on the method called
    id Instrument ID used to call a specific instrument: HistoryTrading, HistoryTransaction, OfferMy etc.
    name Instrument name string of 0 to 255 symbols, win1251-encoded
    price Last trade price price for a single trade unit relative to the instrument
  • Execution/Error Codes:
    return code description
    0 request successfully completed
    -1 service stopped
    -2 access denied
    -3 wrong Trader’s WMID
    -4 incorrect request signature
    -5 incorrect date
    -6 nonexistent instrument ID
    -7 web-service call resulted in an error
    -8 internal error
    -9 unknown error
    -10 unknown error
    -36, -38 incorrect Reqn value
    -37 has not met the condition for a constant Reqn value increase