websocket api 2.1.778

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

  • PUB login

    Operation IDpublish
    • #ALL

    Accepts the following message:

    login

    A message to login

    Message IDlogin
    object

    Examples

  • PUB logout

    Operation IDpublish
    • #ALL

    Accepts the following message:

    logout

    A message to logout

    Message IDlogout
    object

    Examples

  • PUB ping

    Operation IDpublish
    • #ALL

    Accepts the following message:

    ping

    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

  • PUB pong

    Operation IDpublish
    • #ALL

    Accepts the following message:

    pong

    Mandatory response to server on his 'ping' message.

    Message IDpong
    object

    Examples

  • PUB subscribe

    Operation IDpublish
    • #ALL

    Accepts the following message:

    subscribe

    A message to subscribe on topic by name

    Message IDsubscribe
    object

    Examples

  • PUB unsubscribe

    Operation IDpublish
    • #ALL

    Accepts the following message:

    unsubscribe

    A message to unsubscribe from topic by name

    Message IDunsubscribe
    object

    Examples

  • SUB transfers

    Operation IDsubscribe
    • #GW-PF

    Accepts the following message:

    transfers

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

    Message IDtransfers
    object

    Examples

  • SUB transfers/{account_code}

    Operation IDsubscribe
    object
    account_code
    required
    string

    The account code of the Person for filtering.

    • #GW-PF

    Accepts the following message:

    transfers

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

    Message IDtransfers
    object

    Examples

  • SUB pos

    Operation IDsubscribe
    • #GW-PF

    Accepts the following message:

    pos

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

    Message IDpos
    object

    Examples

  • SUB pos/{account_code}

    Operation IDsubscribe
    object
    account_code
    required
    string

    The account code of the Person for filtering.

    • #GW-PF

    Accepts the following message:

    pos

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

    Message IDpos
    object

    Examples

  • SUB money

    Operation IDsubscribe
    • #GW-PF

    Accepts the following message:

    money

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

    Message IDmoney
    object

    Examples

  • SUB money/{account_code}

    Operation IDsubscribe
    object
    account_code
    required
    string

    The account code of the Person for filtering.

    • #GW-PF

    Accepts the following message:

    money

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

    Message IDmoney
    object

    Examples

  • SUB assets

    Operation IDsubscribe
    • #GW-PF

    Accepts the following message:

    assets

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

    Message IDassets
    object

    Examples

  • SUB assets/{account_code}

    Operation IDsubscribe
    object
    account_code
    required
    string

    The account code of the Person for filtering.

    • #GW-PF

    Accepts the following message:

    assets

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

    Message IDassets
    object

    Examples

  • PUB update-option-expiration-pub

    Operation IDpublish
    • #GW-PF

    Accepts the following message:

    updateOptionExpirationReq

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

    Message IDupdateOptionExpirationReq
    object

    Examples

  • SUB update-option-expiration

    Operation IDsubscribe
    • #GW-PF

    Accepts the following message:

    updateOptionExpiration

    Request for UpdateOptionExpiration (for logged in users)

    Message IDupdateOptionExpiration
    object

    Examples

  • SUB option-assets

    Operation IDsubscribe
    • #GW-PF

    Accepts the following message:

    optionAssets

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

    Message IDoptionAssets
    object

    Examples

  • SUB margin-settlement

    Operation IDsubscribe
    • #GW-PF

    Accepts the following message:

    margin-settlement

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

    Message IDmargin-settlement
    object

    Examples

  • PUB new-order

    Operation IDpublish
    • #GW-TN

    Accepts the following message:

    newOrder

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

    Message IDnewOrder
    object

    Examples

  • PUB cancel-order

    Operation IDpublish
    • #GW-TN

    Accepts the following message:

    cancelOrder

    A message to cancel order (for logged in users)

    Message IDcancelOrder
    object

    Examples

  • SUB trading

    Operation IDsubscribe
    • #GW-TN

    Accepts the following message:

    trading
    Message IDtrading
    oneOf

    Examples

  • SUB tob

    Operation IDsubscribe
    • #GW-MD

    Accepts the following message:

    tob
    Message IDtob
    object

    Examples

  • SUB tob.{market}

    Operation IDsubscribe
    • #GW-MD

    Accepts the following message:

    tob
    Message IDtob
    object

    Examples

  • SUB stat

    Operation IDsubscribe
    • #GW-MD

    Accepts the following message:

    stat
    Message IDstat
    object

    Examples

  • SUB stat/{symbol}

    Operation IDsubscribe
    • #GW-MD

    Accepts the following message:

    stat
    Message IDstat
    object

    Examples

  • SUB stat.{market}

    Operation IDsubscribe
    • #GW-MD

    Accepts the following message:

    stat
    Message IDstat
    object

    Examples

  • SUB stat.{market}/{symbol}

    Operation IDsubscribe
    • #GW-MD

    Accepts the following message:

    stat
    Message IDstat
    object

    Examples

  • SUB dom/{symbol}

    Operation IDsubscribe
    • #GW-MD

    Accepts the following message:

    dom
    Message IDdom
    object

    Examples

  • SUB dom.{market}/{symbol}

    Operation IDsubscribe
    • #GW-MD

    Accepts the following message:

    dom
    Message IDdom
    object

    Examples

  • SUB trades/{symbol}

    Operation IDsubscribe
    • #GW-MD

    Accepts the following message:

    trades
    Message IDtrades
    object

    Examples

  • SUB trades.{market}/{symbol}

    Operation IDsubscribe
    • #GW-MD

    Accepts the following message:

    trades
    Message IDtrades
    object

    Examples

  • SUB heartbeat

    Operation IDsubscribe
    • #GW-MD

    Accepts the following message:

    heartbeat
    Message IDheartbeat
    object

    Examples

  • SUB commons

    Operation IDsubscribe
    • #GW-MD

    Accepts the following message:

    commons
    Message IDcommons
    object

    Examples

  • SUB commons/{symbol}

    Operation IDsubscribe
    • #GW-MD

    Accepts the following message:

    commons
    Message IDcommons
    object

    Examples

  • SUB commons.{market}

    Operation IDsubscribe
    • #GW-MD

    Accepts the following message:

    commons
    Message IDcommons
    object

    Examples

  • SUB commons.{market}/{symbol}

    Operation IDsubscribe
    • #GW-MD

    Accepts the following message:

    commons
    Message IDcommons
    object

    Examples

  • SUB board.{symbol}+{extra_code}

    Operation IDsubscribe
    • #GW-MD-BOARD

    Accepts the following message:

    board
    Message IDboard
    object

    Examples

Messages

  • #1login

    A message to login

    Message IDlogin
    object
  • #2logout

    A message to logout

    Message IDlogout
    object
  • #3ping

    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
  • #4pong

    Mandatory response to server on his 'ping' message.

    Message IDpong
    object
  • #5subscribe

    A message to subscribe on topic by name

    Message IDsubscribe
    object
  • #6unsubscribe

    A message to unsubscribe from topic by name

    Message IDunsubscribe
    object
  • #7transfers

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

    Message IDtransfers
    object
  • #8transactions

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

    Message IDtransactions
    object
  • #9pos

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

    Message IDpos
    object
  • #10money

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

    Message IDmoney
    object
  • #11assets

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

    Message IDassets
    object
  • #12updateOptionExpirationReq

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

    Message IDupdateOptionExpirationReq
    object
  • #13updateOptionExpiration

    Request for UpdateOptionExpiration (for logged in users)

    Message IDupdateOptionExpiration
    object
  • #14optionAssets

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

    Message IDoptionAssets
    object
  • #15margin-settlement

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

    Message IDmargin-settlement
    object
  • #16newOrder

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

    Message IDnewOrder
    object
  • #17cancelOrder

    A message to cancel order (for logged in users)

    Message IDcancelOrder
    object
  • #18trading
    Message IDtrading
    oneOf
  • #19trades
    Message IDtrades
    object
  • #20dom
    Message IDdom
    object
  • #21tob
    Message IDtob
    object
  • #22stat
    Message IDstat
    object
  • #23heartbeat
    Message IDheartbeat
    object
  • #24commons
    Message IDcommons
    object
  • #25board
    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
  • token
    string

    Token

  • mode
    string

    Mode (SnapshotOnline, Snapshot), for GW_MM_POLL Snapshot ONLY

      Allowed values:
    • "SnapshotOnline"
    • "Snapshot"
  • status
    integer

    Result code

  • message
    string

    Text description of the status

  • details
    string

    Extra status description in case status != 0

  • timestamp
    string
    format: date-time

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

  • ts
    string
    format: date-time

    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.

  • op
    string

    Command name

  • topic
    string

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

  • exec_type
    string

    Topic (new, cancel, trade)

  • order_no
    string

    ID order

  • credit_address
    string

    Credit address

  • debit_address
    string

    Debit address

  • client_status
    string

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

      Allowed values:
    • "NA"
    • "PROCESSING"
    • "WAIT_OPERATOR_ACCEPT"
    • "WAIT_INCLUSION_IN_BLOCK"
    • "WAIT_PAYMENT_ACCEPT"
    • "SUCCESS"
    • "FAIL"
    • "ERROR"
  • amount
    number
    format: double

    Amount

  • asset
    string

    Asset

  • credit_account
    string

    Credit account

  • debit_account
    string

    Debit account

  • account
    string

    Account

  • type
    string

    Type (NA, WITHDRAW, INPUT)

      Allowed values:
    • "NA"
    • "WITHDRAW"
    • "INPUT"
  • transfer_id
    string

    Translation ID

  • clorder_id
    string

    Customer transaction number

  • payment_system
    string

    Payment system (BTC, OPEN)

      Allowed values:
    • "BTC"
    • "OPEN"
  • comment
    string

    Comment from ricom

  • expired_moment
    string
    format: date-time

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

  • stop_price_initial
    number
    format: double

    Optional field for algo. Initial stop price for stop order

  • stop_price
    number
    format: double

    Optional field for algo. Stop price for stop order

  • trail
    number
    format: double

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

  • algo_status
    string

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

      Allowed values:
    • "ACTIVE"
    • "EXECUTING"
    • "PENDING_CANCEL"
    • "PENDING_RESERVE"
  • total_exec_value
    number
    format: double

    Sum of the order's executed part in price currency

  • amt_initial
    number
    format: double

    Initial amount in new-order

  • price
    number
    format: double

    Price

  • qty
    number
    format: double

    Quantity

  • leaves_qty
    number
    format: double

    Leaves quantity

  • symbol
    string

    Symbol

  • extra_code
    string

    Extra code

  • market
    string
  • exec_market
    string
  • ord_type
    string

    Order type (MARKET, LIMIT, STOP, STOP_LIMIT, TRAILING_STOP, PEND_ORDER)

      Allowed values:
    • "MARKET"
    • "LIMIT"
    • "STOP"
    • "STOP_LIMIT"
    • "TRAILING_STOP"
    • "PEND_ORDER"
  • time_in_force
    string

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

      Allowed values:
    • "DAY"
    • "GTC"
    • "IOC"
    • "FOK"
  • side
    string

    Side (BUY, SELL)

      Allowed values:
    • "BUY"
    • "SELL"
  • orig_clord_id
    string

    clord_id of the original order

  • cancel_reason
    string

    cancel_reason of the original order

      Allowed values:
    • "USER_CANCEL"
    • "EXPIRED"
    • "EXPIRED_NOTRADES"
    • "EXPIRED_CROSSTRADE"
    • "EXPIRED_ORDERBOOK_CROSS"
    • "FILLED"
    • "EXT_REJECTED"
    • "ERROR_NEWORDER"
    • "USER_MOVE"
  • update_action
    string

    (CLEAR, NEW, MODIFY, DELETE)

      Allowed values:
    • "CLEAR"
    • "NEW"
    • "MODIFY"
    • "DELETE"
  • option_type
    string
      Allowed values:
    • "CALL"
    • "PUT"
  • expiration_moment
    string

    Expiration moment. String in ISO format.

  • execution_mode
    string

    ExecutionMode (Client, Auto, All, None)

      Allowed values:
    • "CLIENT"
    • "AUTO"
    • "ALL"
    • "NONE"
  • array<object>