websocket api 2.1.1270

Documentation is divided into blocks that belong to different gateways. ALL - Common calls, GW-MD - MarkerData, GW-PF - Portfolio, GW-TN - Transactional, GW-MD-BOARD - MarkerData Board.

  • #ALL
  • #GW-PF
  • #GW-MD
  • #GW-TN
  • #GW-MD-BOARD

Operations

  • SEND

    Operation IDlogin-publish
    • #ALL

    Accepts the following message:

    A message to login

    Message IDlogin
    object

    Examples

  • SEND

    Operation IDlogout-publish
    • #ALL

    Accepts the following message:

    A message to logout

    Message IDlogout
    object

    Examples

  • SEND

    Operation IDping-publish
    • #ALL

    Accepts the following message:

    Optional message to check connection and prolong token. Frame 'pong' will come in response from server. Can only be sent after login.

    Message IDping
    object

    Examples

  • SEND

    Operation IDpong-publish
    • #ALL

    Accepts the following message:

    Mandatory response to server on his 'ping' message.

    Message IDpong
    object

    Examples

  • SEND

    Operation IDsubscribe-publish
    • #ALL

    Accepts the following message:

    A message to subscribe on topic by name

    Message IDsubscribe
    object

    Examples

  • SEND

    Operation IDunsubscribe-publish
    • #ALL

    Accepts the following message:

    A message to unsubscribe from topic by name

    Message IDunsubscribe
    object

    Examples

  • RECEIVE

    Operation IDtransfers-subscribe
    • #GW-PF

    Accepts the following message:

    A message to inform about transfers (for logged in users)

    Message IDtransfers
    object

    Examples

  • RECEIVE

    Operation IDpos-subscribe
    • #GW-PF

    Accepts the following message:

    A message to inform about positions (for logged in users)

    Message IDpos
    object

    Examples

  • RECEIVE

    Operation IDmoney-subscribe
    • #GW-PF

    Accepts the following message:

    A message to inform about money (for logged in users)

    Message IDmoney
    object

    Examples

  • RECEIVE

    Operation IDassets-subscribe
    • #GW-PF

    Accepts the following message:

    A message to inform about assets (for logged in users)

    Message IDassets
    object

    Examples

  • SEND

    Operation IDupdate-option-expiration-pub-publish
    • #GW-PF

    Accepts the following message:

    A message to inform about update option expiration (for logged in users)

    Message IDupdateOptionExpirationReq
    object

    Examples

  • RECEIVE

    Operation IDupdate-option-expiration-subscribe
    • #GW-PF

    Accepts the following message:

    Request for UpdateOptionExpiration (for logged in users)

    Message IDupdateOptionExpiration
    object

    Examples

  • RECEIVE

    Operation IDoption-assets-subscribe
    • #GW-PF

    Accepts the following message:

    A message to inform about option assets (for logged in users)

    Message IDoptionAssets
    object

    Examples

  • RECEIVE

    Operation IDmargin-settlement-subscribe
    • #GW-PF

    Accepts the following message:

    A message to inform about margin settlement (for logged in users)

    Message IDmargin-settlement
    object

    Examples

  • SEND

    Operation IDnew-order-publish
    • #GW-TN

    Accepts the following message:

    A message to create a new order (for logged in users)

    Message IDnewOrder
    object

    Examples

  • SEND

    Operation IDcancel-order-publish
    • #GW-TN

    Accepts the following message:

    A message to cancel order (for logged in users)

    Message IDcancelOrder
    object

    Examples

  • RECEIVE

    Operation IDtrading-subscribe
    • #GW-TN

    Accepts the following message:

    Message IDtrading
    oneOf

    Examples

  • RECEIVE

    Operation IDtob-subscribe
    • #GW-MD

    Accepts the following message:

    Message IDtob
    object

    Examples

  • RECEIVE

    Operation IDstat-subscribe
    • #GW-MD

    Accepts the following message:

    Message IDstat
    object

    Examples

  • RECEIVE

    Operation IDheartbeat-subscribe
    • #GW-MD

    Accepts the following message:

    Message IDheartbeat
    object

    Examples

  • RECEIVE

    Operation IDcommons-subscribe
    • #GW-MD

    Accepts the following message:

    Message IDcommons
    object

    Examples

Messages

  • #1

    A message to login

    Message IDlogin
    object
  • #2

    A message to logout

    Message IDlogout
    object
  • #3

    Optional message to check connection and prolong token. Frame 'pong' will come in response from server. Can only be sent after login.

    Message IDping
    object
  • #4

    Mandatory response to server on his 'ping' message.

    Message IDpong
    object
  • #5

    A message to subscribe on topic by name

    Message IDsubscribe
    object
  • #6

    A message to unsubscribe from topic by name

    Message IDunsubscribe
    object
  • #7

    A message to inform about transfers (for logged in users)

    Message IDtransfers
    object
  • #8

    A message to inform about transactions (for logged in users)

    Message IDtransactions
    object
  • #9

    A message to inform about positions (for logged in users)

    Message IDpos
    object
  • #10

    A message to inform about money (for logged in users)

    Message IDmoney
    object
  • #11

    A message to inform about assets (for logged in users)

    Message IDassets
    object
  • #12

    A message to inform about update option expiration (for logged in users)

    Message IDupdateOptionExpirationReq
    object
  • #13

    Request for UpdateOptionExpiration (for logged in users)

    Message IDupdateOptionExpiration
    object
  • #14

    A message to inform about option assets (for logged in users)

    Message IDoptionAssets
    object
  • #15

    A message to inform about margin settlement (for logged in users)

    Message IDmargin-settlement
    object
  • #16

    A message to create a new order (for logged in users)

    Message IDnewOrder
    object
  • #17

    A message to cancel order (for logged in users)

    Message IDcancelOrder
    object
  • #18
    Message IDtrading
    oneOf
  • #19
    Message IDtrades
    object
  • #20
    Message IDdom
    object
  • #21
    Message IDtob
    object
  • #22
    Message IDstat
    object
  • #23
    Message IDheartbeat
    object
  • #24
    Message IDcommons
    object
  • #25
    Message IDboard
    object

Schemas

  • object
  • object
  • object
  • object
  • object
  • object
  • object
  • object
  • object
  • object
  • object
  • object
  • object
  • object
  • object
  • object
  • object
  • object
  • object
  • object
  • object
  • object
  • object
  • object
  • object
  • object
  • object
  • tokenstring

    Token

  • string

    Mode (SnapshotOnline, Snapshot), for GW_MM_POLL Snapshot ONLY

  • statusinteger

    Result code

  • messagestring

    Text description of the status

  • string

    Text description of the status

  • detailsstring

    Extra status description in case status != 0

  • string

    Date and time when the message was sent. Timestamp in us.

  • string

    Date and time when the entry was created or modified. ts and timestamp may be different in case of requesting historical transactions, when transactions are received online or when the status of instruments or quotes changes. Timestamp in us.

  • opstring

    Command name

  • topicstring

    Topic name. Can contain parameters, e.g., 'pos/acc123'.

  • exec_typestring

    Topic (new, cancel, trade)

  • order_nostring

    ID order

  • credit_addressstring

    Credit address

  • debit_addressstring

    Debit address

  • string

    Status of transfer (NA, PROCESSING, WAIT_OPERATOR_ACCEPT, WAIT_INCLUSION_IN_BLOCK, WAIT_PAYMENT_ACCEPT, SUCCESS, FAIL, ERROR)

  • number

    Amount

  • assetstring

    Asset

  • credit_accountstring

    Credit account

  • debit_accountstring

    Debit account

  • accountstring

    Account

  • string

    Type (NA, WITHDRAW, INPUT)

  • transfer_idstring

    Translation ID

  • clorder_idstring

    Customer transaction number

  • string

    Payment system (BTC, OPEN)

  • commentstring

    Comment from ricom

  • string

    Optional field for algo. Cancellation time. Timestamp in us.

  • number

    Optional field for algo. Initial stop price for stop order

  • number

    Optional field for algo. Stop price for stop order

  • number

    Optional field for algo. Trail for stop order, in percents

  • string

    Optional field for algo. Status of stop order (ACTIVE, EXECUTING, PENDING_CANCEL, PENDING_RESERVE)

  • number

    Sum of the order's executed part in price currency

  • number

    Initial amount in new-order

  • number
  • number

    Initial amount in cash qty

  • number

    Price

  • number

    Yield

  • number

    Quantity

  • number

    Leaves quantity

  • number

    Cash quantity

  • symbolstring

    Symbol

  • extra_codestring

    Extra code

  • marketstring
  • target_marketstring
  • exec_marketstring
  • string

    Order type (MARKET, MARKET_BY_SUM, LIMIT, LIMIT_BY_SUM, STOP, STOP_LIMIT, TRAILING_STOP, PEND_ORDER, PEND_LIMIT etc)

  • string

    DAY, GTC, IOC, FOK (default = DAY)

  • string

    Side (BUY, SELL)

  • orig_clord_idstring

    clord_id of the original order

  • string

    cancel_reason of the original order

  • string

    (CLEAR, NEW, MODIFY, DELETE)

  • string
  • expiration_momentstring

    Expiration moment. String in ISO format.

  • string

    ExecutionMode (Client, Auto, All, None)

  • array<object>