Websocket endpoint: /websocket/v1.
STOMP messaging protocol is used for websocket
communication. STOMP versions 1.1 and
1.2 are supported by backend.
All subscriptions are sent to /user/... channels.
All RPC request are sent to
/app/... channels. Their results are received via
/user/v1/responses subscription.
Errors that occur in our code are returned via
/user/v1/responses subscription.
In case of request error, STOMP
MESSAGE will be returned with header
status containing 4xx
HTTP error code.
In case of server error, STOMP
MESSAGE will be returned with header
status containing 5xx
HTTP error code.
| type | description |
|---|---|
| AccountDto | Class that defines a user account. |
| AccountBalanceDto | Class that defines a user account balance. |
| AccountBaseDto | Class that defines user account core fields. |
| AccountStatus | Status of the account. |
| ActiveCommissionPlansDto | Class that contains current user’s commission plan for the security with the possible next plans. |
| ActiveCurrencyCommissionPlansDto | Class that contains current user’s commission plan for the currency with the possible next plans. |
| AuthSettingsDto | Class that defines authentication settings. |
| BarDto | Describes price movements for a set period of time. |
| BarResponseDto | Describes an aggregated bar with a list of bars per exchange. |
| ChangeAccountPropertiesDto | Defines a request for changing account properties. |
| ChangePropertyDto | Defines a change property request. |
| ChangePropertyType | Type of change property request. |
| ChargeFlatCommissionTime | Time of flat commission charging. |
| CommissionPlanDto | Class that defines a commission plan. |
| CurrencyDto | Class that defines a currency. |
| CurrencyActionDto | Class that defines an action to a specific currency. |
| CurrencyCommissionPlanDto | Class that defines a commission plan for deposits and withdrawals. |
| CurrencyLimitsDto | Class that contains account’s withdrawal and deposit limits for the currency taking into account transactions already performed by the user. |
| CurrentTradingStatisticsDto | Class that defines trading statistics for current period for specified user. |
| CustomServiceDto | Class that defines a custom service. |
| DealDto | Represents a user’s deal (position). |
| DealSide | Side of the deal. |
| DescriptionTextDto | Represents a description text. |
| EditUserSettingsDto | Represents request for changing user settings. |
| EditableUserSettingsDto | Class that defines user settings that can be changed by the user. |
| EntityAction | Arbitrary object action |
| ExecutionExplanation | Type of execution explanation. |
| ExternalCommissionDto | Class that defines an external commission taken by the specified exchange. |
| FeeDto | Approximate order fee. Note: fee depends on the book state at the calculation time so actual value may differ from the calculated one. |
| FilterInfoDto | |
| GlobalSettingsDto | Class that defines global application settings. |
| HealthStatusDto | Class that defines a health status of the application. |
| HistoricalBarsRequestDto | Represents request for getting historical bars. |
| HistoricalChartRequestDto | Represents request for getting historical chart data. |
| HistoricalRequestDto | Represents a request for the history of entries. |
| HistoricalTransactionRequestDto | Represents a request for the history of transactions. |
| L2Action | L2 action. This is the type of action that the receiver of market data should perform to the book. |
| L2EntryDto | Represents L2 entry. |
| L2PackageDto | Represents L2 package for the specified symbol. |
| L2PackageType | Type of the L2 package. |
| LineDotDto | Class that defines a line dot. |
| LineInfoDto | Class that defines meta-information about chart line. |
| LineSectionDto | Class that defines a line section. |
| LinkedOrderSchemaDto | Represents a linked order schema. |
| LinkedUserDto | Class that defines a user to which the user can switch. |
| LogDto | Represents request for collecting log message. |
| LogLevel | Log level. |
| NewOrderDto | Represents request for creating or modifying order. |
| OperationStatus | Specifies current status of any operation. |
| OrderDto | Represents user’s order as returned by the API. |
| OrderConfirmationTextRequestDto | Represents request for getting an order confirmation description text. |
| OrderEventDto | Represents events related to the order like order creation, changing, execution, cancellation etc. |
| OrderEventType | Type of the order event. |
| OrderEventsRequestDto | Represents request for getting user’s order events. |
| OrderStatus | Status of the order. |
| OrderUpdateDto | Represents update for the order with the list of events, that has changed it from the previous state. |
| Periodicity | Represents bar periodicity. |
| PrimeBrokerAccountDto | |
| ProductType | Defines type of settlement. |
| PropertyDto | Key-value pair. |
| QuoteDto | Class that defines a suggested quote. |
| QuoteRequestDto | Class that defines a request for quote. |
| QuoteSubscriptionDto | Class that defines a subscription for quotes. |
| RFQRequestIdDto | Represents RFQ request identifier. |
| SecurityDto | Class that defines a security with the user-specific settings. |
| SecurityActionDto | Class that defines an action to a specific security. |
| SecurityBarsDto | Class that defines security bars. |
| SecurityCommissionsDto | Class that defines security commissions. |
| SecurityDisplayMethod | Security price display method. |
| SecurityStatisticsDto | Class that defines security current prices and statistics. |
| SecurityStatusDto | Class that defines current security status. |
| SecurityType | Type of the instrument. |
| SecurityV2Dto | Class that defines a security with the user-specific settings. |
| SecurityV2ActionDto | |
| SessionStatus | Trading session status. |
| Side | Side of the order. |
| StakingDto | Class that defines a staking. |
| StakingCancellationType | Defines type of staking cancellation. |
| TimeInForce | Specifies how long the order remains in effect. |
| TotalStatisticsDto | Class that defines transaction statistics. |
| TradingCommissionAccount | Account from which trading commission will be taken. |
| TradingCommissionMethod | Method of computation of trading commission. |
| TradingCurrency | Determines what account to use for trading. |
| TradingLimitsDto | Class that defines trading statistics. |
| TradingSessionDto | Class that defines a trading session. |
| TransactionDto | Class that defines a transaction. |
| TransactionType | Type of the transaction. |
| TransferDto | Class that defines an internal transfer. |
| TransferType | Type of internal transfer. |
| UserIdentifier | Field that is used for user identification. |
| UserSettingsDto | Class that defines user settings returned by the API. |
| WalletAddressDto | Class that defines a saved wallet address. |
General subscription for receiving results of RPC requests.
| name | type | description | constraints |
|---|---|---|---|
| id | header | Subscription identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. |
Subscribe:
SUBSCRIBE
id:sub-0
destination:/user/v1/responses
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
Unsubscribe:
UNSUBSCRIBE
id:sub-0
Returns accounts list for specified user or single account if
X-Deltix-Account-ID parameter is specified.
Additionally will return account statistics in each of the
currencies specified in X-Deltix-Currency-IDs parameter
(NOTE: only currencies from
UserSettingsDto.measurement_currencies
are allowed in this parameter).
| name | type | description | constraints |
|---|---|---|---|
| correlation-id | header | Request identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. | |
| X-Deltix-Account-ID | header | Id of the account to receive. Optional parameter. | |
| X-Deltix-Currency-IDs | header |
Comma-separated list of currency IDs each of which will be
used as a target currency to calculate account statistics in
it. Each currency ID must be from
UserSettingsDto.measurement_currencies, otherwise an error will be raised. Optional parameter.
Example: USD,BTC.
|
| media type | data type | description |
|---|---|---|
| application/json | array of AccountDto | Class that defines a user account. |
Request:
SEND
correlation-id:anjmeuxm55
destination:/app/v1/accounts
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
Response:
MESSAGE
status:200
correlation-id:anjmeuxm55
destination:/user/v1/responses
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
[ {
"id" : "...",
"currency_id" : "...",
"status" : "suspended",
"name" : "...",
"withdrawal_wallet_addresses" : [ {
"address" : "...",
"network" : "...",
"status" : "succeeded",
"reason" : "..."
}, {
"address" : "...",
"network" : "...",
"status" : "approved",
"reason" : "..."
} ],
"deposit_wallet_addresses" : [ {
"address" : "...",
"network" : "...",
"status" : "pending",
"reason" : "..."
}, {
"address" : "...",
"network" : "...",
"status" : "cancelled",
"reason" : "..."
} ],
"measurement_currency_id" : "...",
"balance" : "123.4",
"available_for_trading" : "123.4",
"available_for_withdrawal" : "123.4",
"enter_average_price" : "123.4",
"current_price" : "123.4",
"unrealized_pnl" : "123.4",
"realized_pnl" : "123.4",
"total_statistics" : [ {
"type" : "execution",
"total" : "123.4",
"total_this_day" : "123.4",
"total_this_week" : "123.4",
"total_this_month" : "123.4",
"total_this_year" : "123.4"
}, {
"type" : "withdrawal",
"total" : "123.4",
"total_this_day" : "123.4",
"total_this_week" : "123.4",
"total_this_month" : "123.4",
"total_this_year" : "123.4"
} ],
"properties" : [ {
"key" : "...",
"value" : "..."
}, {
"key" : "...",
"value" : "..."
} ]
}, {
"id" : "...",
"currency_id" : "...",
"status" : "suspended",
"name" : "...",
"withdrawal_wallet_addresses" : [ {
"address" : "...",
"network" : "...",
"status" : "in_progress",
"reason" : "..."
}, {
"address" : "...",
"network" : "...",
"status" : "cancelled",
"reason" : "..."
} ],
"deposit_wallet_addresses" : [ {
"address" : "...",
"network" : "...",
"status" : "failed",
"reason" : "..."
}, {
"address" : "...",
"network" : "...",
"status" : "failed",
"reason" : "..."
} ],
"measurement_currency_id" : "...",
"balance" : "123.4",
"available_for_trading" : "123.4",
"available_for_withdrawal" : "123.4",
"enter_average_price" : "123.4",
"current_price" : "123.4",
"unrealized_pnl" : "123.4",
"realized_pnl" : "123.4",
"total_statistics" : [ {
"type" : "interest_commission",
"total" : "123.4",
"total_this_day" : "123.4",
"total_this_week" : "123.4",
"total_this_month" : "123.4",
"total_this_year" : "123.4"
}, {
"type" : "credit",
"total" : "123.4",
"total_this_day" : "123.4",
"total_this_week" : "123.4",
"total_this_month" : "123.4",
"total_this_year" : "123.4"
} ],
"properties" : [ {
"key" : "...",
"value" : "..."
}, {
"key" : "...",
"value" : "..."
} ]
} ]
Changes account’s properties.
| name | type | description | constraints |
|---|---|---|---|
| correlation-id | header | Request identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. |
| media type | data type | description |
|---|---|---|
| application/json | ChangeAccountPropertiesDto | Defines a request for changing account properties. |
| media type | data type | description |
|---|---|---|
| application/json | AccountDto | Class that defines a user account. |
Request:
SEND
correlation-id:anjmeuxm55
destination:/app/v1/accounts/properties/modify
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
{
"account_id" : "...",
"property_changes" : [ {
"type" : "insert",
"index" : 12345,
"key" : "...",
"value" : "..."
}, {
"type" : "update",
"index" : 12345,
"key" : "...",
"value" : "..."
} ]
}
Response:
MESSAGE
status:200
correlation-id:anjmeuxm55
destination:/user/v1/responses
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
{
"id" : "...",
"currency_id" : "...",
"status" : "suspended",
"name" : "...",
"withdrawal_wallet_addresses" : [ {
"address" : "...",
"network" : "...",
"status" : "pending",
"reason" : "..."
}, {
"address" : "...",
"network" : "...",
"status" : "pending",
"reason" : "..."
} ],
"deposit_wallet_addresses" : [ {
"address" : "...",
"network" : "...",
"status" : "failed",
"reason" : "..."
}, {
"address" : "...",
"network" : "...",
"status" : "rejected",
"reason" : "..."
} ],
"measurement_currency_id" : "...",
"balance" : "123.4",
"available_for_trading" : "123.4",
"available_for_withdrawal" : "123.4",
"enter_average_price" : "123.4",
"current_price" : "123.4",
"unrealized_pnl" : "123.4",
"realized_pnl" : "123.4",
"total_statistics" : [ {
"type" : "transfer_receive",
"total" : "123.4",
"total_this_day" : "123.4",
"total_this_week" : "123.4",
"total_this_month" : "123.4",
"total_this_year" : "123.4"
}, {
"type" : "withdrawal",
"total" : "123.4",
"total_this_day" : "123.4",
"total_this_week" : "123.4",
"total_this_month" : "123.4",
"total_this_year" : "123.4"
} ],
"properties" : [ {
"key" : "...",
"value" : "..."
}, {
"key" : "...",
"value" : "..."
} ]
}
Subscription for account balances changes.
Additionally will send updates for account statistics in each of the
currencies specified in X-Deltix-Currency-IDs parameter
(NOTE: only currencies from
UserSettingsDto.measurement_currencies
are allowed in this parameter). Updates will be sent each time any
change not related to currenct price change occurs.
NOTE: this subscription will NOT send any updates on the changes caused by the current price change. Such changes must be made manually on the API client side.
| name | type | description | constraints |
|---|---|---|---|
| id | header | Subscription identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. | |
| X-Deltix-Currency-IDs | header |
Comma-separated list of currency IDs each of which will be
used as a target currency to calculate account statistics in
it. Each currency ID must be from
UserSettingsDto.measurement_currencies, otherwise an error will be raised. Optional parameter.
Example: USD,BTC.
|
| media type | data type | description |
|---|---|---|
| application/json | array of AccountBalanceDto | Class that defines a user account balance. |
Subscribe:
SUBSCRIBE
id:sub-0
destination:/user/v1/balances
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
Unsubscribe:
UNSUBSCRIBE
id:sub-0
Message:
MESSAGE
status:200
destination:/user/v1/balances
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
[ {
"account_id" : "...",
"currency_id" : "...",
"measurement_currency_id" : "...",
"balance" : "123.4",
"available_for_trading" : "123.4",
"available_for_withdrawal" : "123.4",
"enter_average_price" : "123.4",
"current_price" : "123.4",
"unrealized_pnl" : "123.4",
"realized_pnl" : "123.4",
"total_statistics" : [ {
"type" : "credit",
"total" : "123.4",
"total_this_day" : "123.4",
"total_this_week" : "123.4",
"total_this_month" : "123.4",
"total_this_year" : "123.4"
}, {
"type" : "balance_correction",
"total" : "123.4",
"total_this_day" : "123.4",
"total_this_week" : "123.4",
"total_this_month" : "123.4",
"total_this_year" : "123.4"
} ],
"properties" : [ {
"key" : "...",
"value" : "..."
}, {
"key" : "...",
"value" : "..."
} ]
} ]
Subscription for account changes.
NOTE: this subscription will NOT send any balance updates.
| name | type | description | constraints |
|---|---|---|---|
| id | header | Subscription identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. |
| media type | data type | description |
|---|---|---|
| application/json | AccountBaseDto | Class that defines user account core fields. |
Subscribe:
SUBSCRIBE
id:sub-0
destination:/user/v1/accounts
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
Unsubscribe:
UNSUBSCRIBE
id:sub-0
Message:
MESSAGE
status:200
destination:/user/v1/accounts
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
{
"id" : "...",
"currency_id" : "...",
"status" : "active",
"name" : "...",
"withdrawal_wallet_addresses" : [ {
"address" : "...",
"network" : "...",
"status" : "cancelled",
"reason" : "..."
}, {
"address" : "...",
"network" : "...",
"status" : "pending",
"reason" : "..."
} ],
"deposit_wallet_addresses" : [ {
"address" : "...",
"network" : "...",
"status" : "failed",
"reason" : "..."
}, {
"address" : "...",
"network" : "...",
"status" : "rejected",
"reason" : "..."
} ]
}
Subscription for current bar of the specified security and periodicity. Periodically sends current unfinished bar. When current bars closes, sends finished bar before the new one.
Security can be specified either by path, or by header X-Deltix-Security-Id. The second way is preferred. If X-Deltix-Security-Id header is specified, the path value can be any unique string, only used to distinguish different subscriptions.
| name | type | description | constraints |
|---|---|---|---|
| id | header | Subscription identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. | |
| X-Deltix-Aggregated-Exchanges | header | List of exchanges to be aggregated. Optional parameter. | |
| X-Deltix-Separate-Exchanges | header | List of exchanges that will be returned separately. Optional parameter. | |
| X-Deltix-Security-Id | header | Instrument for bar filtering. | |
| security_id | path | Instrument for bar filtering. When X-Deltix-Security-Id header is specified, this can be any unique string. | required |
| periodicity | path | Bar periodicity. Periodicity | required |
| media type | data type | description |
|---|---|---|
| application/json | BarResponseDto | Describes an aggregated bar with a list of bars per exchange. |
Subscribe:
SUBSCRIBE
id:sub-0
destination:/user/v1/current-bars/BTCUSD/minute
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
X-Deltix-Security-Id:BTCUSD
Unsubscribe:
UNSUBSCRIBE
id:sub-0
Message:
MESSAGE
status:200
destination:/user/v1/current-bars/BTCUSD/minute
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
{
"timestamp" : 12345,
"aggregated_bar" : {
"timestamp" : 12345,
"open_ask" : "123.4",
"high_ask" : "123.4",
"low_ask" : "123.4",
"close_ask" : "123.4",
"open_bid" : "123.4",
"high_bid" : "123.4",
"low_bid" : "123.4",
"close_bid" : "123.4",
"volume" : "123.4",
"exchange_id" : "..."
},
"exchange_bars" : [ {
"timestamp" : 12345,
"open_ask" : "123.4",
"high_ask" : "123.4",
"low_ask" : "123.4",
"close_ask" : "123.4",
"open_bid" : "123.4",
"high_bid" : "123.4",
"low_bid" : "123.4",
"close_bid" : "123.4",
"volume" : "123.4",
"exchange_id" : "..."
} ]
}
Returns the list of the user’s price bars of the specified
instrument and periodicity within specified time interval. Can
include current not complete bar. Cannot return more than
max_bars_count bars. Time
gaps (i.e. bars for non-trading time) must be filled with ‘empty’
bars - bars with all price and volume fields set to
null.
| name | type | description | constraints |
|---|---|---|---|
| correlation-id | header | Request identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. |
| media type | data type | description |
|---|---|---|
| application/json | HistoricalBarsRequestDto | Represents request for getting historical bars. |
| media type | data type | description |
|---|---|---|
| application/json | array of BarResponseDto | Describes an aggregated bar with a list of bars per exchange. |
Request:
SEND
correlation-id:anjmeuxm55
destination:/app/v1/historical-bars
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
{
"security_id" : "...",
"periodicity" : "hour4",
"start_time" : 12345,
"end_time" : 12345,
"aggregated_exchanges" : [ "...", "..." ],
"separate_exchanges" : [ "...", "..." ]
}
Response:
MESSAGE
status:200
correlation-id:anjmeuxm55
destination:/user/v1/responses
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
[ {
"timestamp" : 12345,
"aggregated_bar" : {
"timestamp" : 12345,
"open_ask" : "123.4",
"high_ask" : "123.4",
"low_ask" : "123.4",
"close_ask" : "123.4",
"open_bid" : "123.4",
"high_bid" : "123.4",
"low_bid" : "123.4",
"close_bid" : "123.4",
"volume" : "123.4",
"exchange_id" : "..."
},
"exchange_bars" : [ {
"timestamp" : 12345,
"open_ask" : "123.4",
"high_ask" : "123.4",
"low_ask" : "123.4",
"close_ask" : "123.4",
"open_bid" : "123.4",
"high_bid" : "123.4",
"low_bid" : "123.4",
"close_bid" : "123.4",
"volume" : "123.4",
"exchange_id" : "..."
} ]
}, {
"timestamp" : 12345,
"aggregated_bar" : {
"timestamp" : 12345,
"open_ask" : "123.4",
"high_ask" : "123.4",
"low_ask" : "123.4",
"close_ask" : "123.4",
"open_bid" : "123.4",
"high_bid" : "123.4",
"low_bid" : "123.4",
"close_bid" : "123.4",
"volume" : "123.4",
"exchange_id" : "..."
},
"exchange_bars" : [ {
"timestamp" : 12345,
"open_ask" : "123.4",
"high_ask" : "123.4",
"low_ask" : "123.4",
"close_ask" : "123.4",
"open_bid" : "123.4",
"high_bid" : "123.4",
"low_bid" : "123.4",
"close_bid" : "123.4",
"volume" : "123.4",
"exchange_id" : "..."
} ]
} ]
Returns the list of all chart lines available for the user.
| name | type | description | constraints |
|---|---|---|---|
| correlation-id | header | Request identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. |
| media type | data type | description |
|---|---|---|
| application/json | array of LineInfoDto | Class that defines meta-information about chart line. |
Request:
SEND
correlation-id:anjmeuxm55
destination:/app/v1/chart-lines
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
Response:
MESSAGE
status:200
correlation-id:anjmeuxm55
destination:/user/v1/responses
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
[ {
"id" : "...",
"name" : "...",
"min_time" : 12345,
"filters" : [ {
"name" : "...",
"values" : [ "...", "..." ]
}, {
"name" : "...",
"values" : [ "...", "..." ]
} ]
}, {
"id" : "...",
"name" : "...",
"min_time" : 12345,
"filters" : [ {
"name" : "...",
"values" : [ "...", "..." ]
}, {
"name" : "...",
"values" : [ "...", "..." ]
} ]
} ]
Subscription for current line dots. Periodically sends current unfinished line dot. When current dot closes, sends finished dot before the new one.
| name | type | description | constraints |
|---|---|---|---|
| id | header | Subscription identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. | |
| line_id | path | Line’s unique identifier. | required |
| scale | path | Line scale factor. | required |
| media type | data type | description |
|---|---|---|
| application/json | LineDotDto | Class that defines a line dot. |
Subscribe:
SUBSCRIBE
id:sub-0
destination:/user/v1/current-chart/Line-1/60000
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
Unsubscribe:
UNSUBSCRIBE
id:sub-0
Message:
MESSAGE
status:200
destination:/user/v1/current-chart/Line-1/60000
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
{
"time" : 12345,
"value" : "123.4"
}
Returns the list of the user’s chart lines’ historical data. The
number of actual returned dots in a line can be lower that the
provided count parameter, depending on server’s
configuration.
| name | type | description | constraints |
|---|---|---|---|
| correlation-id | header | Request identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. |
| media type | data type | description |
|---|---|---|
| application/json | array of HistoricalChartRequestDto | Represents request for getting historical chart data. |
| media type | data type | description |
|---|---|---|
| application/json | array of LineSectionDto | Class that defines a line section. |
Request:
SEND
correlation-id:anjmeuxm55
destination:/app/v1/historical-chart
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
[ {
"line_id" : "...",
"scale" : 12345,
"filters" : [ "...", "..." ],
"from" : 12345,
"count" : 12345
}, {
"line_id" : "...",
"scale" : 12345,
"filters" : [ "...", "..." ],
"from" : 12345,
"count" : 12345
} ]
Response:
MESSAGE
status:200
correlation-id:anjmeuxm55
destination:/user/v1/responses
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
[ {
"dots" : [ {
"time" : 12345,
"value" : "123.4"
}, {
"time" : 12345,
"value" : "123.4"
} ]
}, {
"dots" : [ {
"time" : 12345,
"value" : "123.4"
}, {
"time" : 12345,
"value" : "123.4"
} ]
} ]
Returns the list of all supported currencies.
| name | type | description | constraints |
|---|---|---|---|
| correlation-id | header | Request identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. |
| media type | data type | description |
|---|---|---|
| application/json | array of CurrencyDto | Class that defines a currency. |
Request:
SEND
correlation-id:anjmeuxm55
destination:/app/v1/currencies
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
Response:
MESSAGE
status:200
correlation-id:anjmeuxm55
destination:/user/v1/responses
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
[ {
"id" : "...",
"name" : "...",
"type" : "...",
"precision" : 12345,
"icon" : "...",
"icon_type" : "...",
"sign" : "...",
"daily_deposit_threshold" : "123.4",
"daily_withdrawal_threshold" : "123.4",
"weekly_deposit_threshold" : "123.4",
"weekly_withdrawal_threshold" : "123.4",
"monthly_deposit_threshold" : "123.4",
"monthly_withdrawal_threshold" : "123.4",
"yearly_deposit_threshold" : "123.4",
"yearly_withdrawal_threshold" : "123.4",
"daily_deposit_limit" : "123.4",
"daily_withdrawal_limit" : "123.4",
"weekly_deposit_limit" : "123.4",
"weekly_withdrawal_limit" : "123.4",
"monthly_deposit_limit" : "123.4",
"monthly_withdrawal_limit" : "123.4",
"yearly_deposit_limit" : "123.4",
"yearly_withdrawal_limit" : "123.4",
"limits_currency" : "...",
"withdrawal_commission_progressive" : "123.4",
"withdrawal_commission_flat" : "123.4",
"deposit_commission_progressive" : "123.4",
"deposit_commission_flat" : "123.4",
"minimal_withdrawal" : "123.4",
"withdrawals_allowed" : true,
"deposits_allowed" : true,
"allowed_account_properties" : [ "...", "..." ],
"available_networks" : [ "...", "..." ],
"use_abbreviations" : false,
"custom_data" : "...",
"custom_data2" : "..."
} ]
Returns currency by id.
| name | type | description | constraints |
|---|---|---|---|
| correlation-id | header | Request identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. | |
| currency_id | path | Requested currency identifier. | required |
| media type | data type | description |
|---|---|---|
| application/json | CurrencyDto | Class that defines a currency. |
Request:
SEND
correlation-id:anjmeuxm55
destination:/app/v1/currencies/BTC
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
Response:
MESSAGE
status:200
correlation-id:anjmeuxm55
destination:/user/v1/responses
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
{
"id" : "...",
"name" : "...",
"type" : "...",
"precision" : 12345,
"icon" : "...",
"icon_type" : "...",
"sign" : "...",
"daily_deposit_threshold" : "123.4",
"daily_withdrawal_threshold" : "123.4",
"weekly_deposit_threshold" : "123.4",
"weekly_withdrawal_threshold" : "123.4",
"monthly_deposit_threshold" : "123.4",
"monthly_withdrawal_threshold" : "123.4",
"yearly_deposit_threshold" : "123.4",
"yearly_withdrawal_threshold" : "123.4",
"daily_deposit_limit" : "123.4",
"daily_withdrawal_limit" : "123.4",
"weekly_deposit_limit" : "123.4",
"weekly_withdrawal_limit" : "123.4",
"monthly_deposit_limit" : "123.4",
"monthly_withdrawal_limit" : "123.4",
"yearly_deposit_limit" : "123.4",
"yearly_withdrawal_limit" : "123.4",
"limits_currency" : "...",
"withdrawal_commission_progressive" : "123.4",
"withdrawal_commission_flat" : "123.4",
"deposit_commission_progressive" : "123.4",
"deposit_commission_flat" : "123.4",
"minimal_withdrawal" : "123.4",
"withdrawals_allowed" : false,
"deposits_allowed" : true,
"allowed_account_properties" : [ "...", "..." ],
"available_networks" : [ "...", "..." ],
"use_abbreviations" : false,
"custom_data" : "...",
"custom_data2" : "..."
}
Returns currency withdrawal and deposit limits taking into account transactions already performed by the user.
| name | type | description | constraints |
|---|---|---|---|
| correlation-id | header | Request identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. | |
| currency_id | path | Requested currency identifier. | required |
| media type | data type | description |
|---|---|---|
| application/json | CurrencyLimitsDto | Class that contains account’s withdrawal and deposit limits for the currency taking into account transactions already performed by the user. |
Request:
SEND
correlation-id:anjmeuxm55
destination:/app/v1/currencies/BTC/limits
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
Response:
MESSAGE
status:200
correlation-id:anjmeuxm55
destination:/user/v1/responses
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
{
"id" : "...",
"withdrawal_limit" : "123.4",
"deposit_limit" : "123.4"
}
Returns a list of commission plans for a specific currency.
| name | type | description | constraints |
|---|---|---|---|
| correlation-id | header | Request identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. | |
| currency_id | path | Requested currency identifier. | required |
| media type | data type | description |
|---|---|---|
| application/json | array of CurrencyCommissionPlanDto | Class that defines a commission plan for deposits and withdrawals. |
Request:
SEND
correlation-id:anjmeuxm55
destination:/app/v1/currencies/BTC/commission_plans
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
Response:
MESSAGE
status:200
correlation-id:anjmeuxm55
destination:/user/v1/responses
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
[ {
"average_balance" : "123.4",
"total_volume" : "123.4",
"invited_users_count" : 12345,
"withdrawal_commission_progressive" : "123.4",
"withdrawal_commission_flat" : "123.4",
"deposit_commission_progressive" : "123.4",
"deposit_commission_flat" : "123.4"
}, {
"average_balance" : "123.4",
"total_volume" : "123.4",
"invited_users_count" : 12345,
"withdrawal_commission_progressive" : "123.4",
"withdrawal_commission_flat" : "123.4",
"deposit_commission_progressive" : "123.4",
"deposit_commission_flat" : "123.4"
} ]
Returns active commission plans for all currencies available to the user: current commission plans and possible next commission plans.
| name | type | description | constraints |
|---|---|---|---|
| correlation-id | header | Request identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. |
| media type | data type | description |
|---|---|---|
| application/json | array of ActiveCurrencyCommissionPlansDto | Class that contains current user’s commission plan for the currency with the possible next plans. |
Request:
SEND
correlation-id:anjmeuxm55
destination:/app/v1/currencies/commission_plans/active/all
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
Response:
MESSAGE
status:200
correlation-id:anjmeuxm55
destination:/user/v1/responses
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
[ {
"currency_id" : "...",
"current" : {
"average_balance" : "123.4",
"total_volume" : "123.4",
"invited_users_count" : 12345,
"withdrawal_commission_progressive" : "123.4",
"withdrawal_commission_flat" : "123.4",
"deposit_commission_progressive" : "123.4",
"deposit_commission_flat" : "123.4"
},
"next" : {
"average_balance" : "123.4",
"total_volume" : "123.4",
"invited_users_count" : 12345,
"withdrawal_commission_progressive" : "123.4",
"withdrawal_commission_flat" : "123.4",
"deposit_commission_progressive" : "123.4",
"deposit_commission_flat" : "123.4"
},
"next_by_volume" : {
"average_balance" : "123.4",
"total_volume" : "123.4",
"invited_users_count" : 12345,
"withdrawal_commission_progressive" : "123.4",
"withdrawal_commission_flat" : "123.4",
"deposit_commission_progressive" : "123.4",
"deposit_commission_flat" : "123.4"
},
"next_by_balance" : {
"average_balance" : "123.4",
"total_volume" : "123.4",
"invited_users_count" : 12345,
"withdrawal_commission_progressive" : "123.4",
"withdrawal_commission_flat" : "123.4",
"deposit_commission_progressive" : "123.4",
"deposit_commission_flat" : "123.4"
},
"next_by_invited_users_count" : {
"average_balance" : "123.4",
"total_volume" : "123.4",
"invited_users_count" : 12345,
"withdrawal_commission_progressive" : "123.4",
"withdrawal_commission_flat" : "123.4",
"deposit_commission_progressive" : "123.4",
"deposit_commission_flat" : "123.4"
}
}, {
"currency_id" : "...",
"current" : {
"average_balance" : "123.4",
"total_volume" : "123.4",
"invited_users_count" : 12345,
"withdrawal_commission_progressive" : "123.4",
"withdrawal_commission_flat" : "123.4",
"deposit_commission_progressive" : "123.4",
"deposit_commission_flat" : "123.4"
},
"next" : {
"average_balance" : "123.4",
"total_volume" : "123.4",
"invited_users_count" : 12345,
"withdrawal_commission_progressive" : "123.4",
"withdrawal_commission_flat" : "123.4",
"deposit_commission_progressive" : "123.4",
"deposit_commission_flat" : "123.4"
},
"next_by_volume" : {
"average_balance" : "123.4",
"total_volume" : "123.4",
"invited_users_count" : 12345,
"withdrawal_commission_progressive" : "123.4",
"withdrawal_commission_flat" : "123.4",
"deposit_commission_progressive" : "123.4",
"deposit_commission_flat" : "123.4"
},
"next_by_balance" : {
"average_balance" : "123.4",
"total_volume" : "123.4",
"invited_users_count" : 12345,
"withdrawal_commission_progressive" : "123.4",
"withdrawal_commission_flat" : "123.4",
"deposit_commission_progressive" : "123.4",
"deposit_commission_flat" : "123.4"
},
"next_by_invited_users_count" : {
"average_balance" : "123.4",
"total_volume" : "123.4",
"invited_users_count" : 12345,
"withdrawal_commission_progressive" : "123.4",
"withdrawal_commission_flat" : "123.4",
"deposit_commission_progressive" : "123.4",
"deposit_commission_flat" : "123.4"
}
} ]
Returns active commission plans of the user for the specified currency: current commission plan and possible next commission plans.
| name | type | description | constraints |
|---|---|---|---|
| correlation-id | header | Request identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. | |
| currency_id | path | Requested currency identifier. | required |
| media type | data type | description |
|---|---|---|
| application/json | ActiveCurrencyCommissionPlansDto | Class that contains current user’s commission plan for the currency with the possible next plans. |
Request:
SEND
correlation-id:anjmeuxm55
destination:/app/v1/currencies/BTC/commission_plans/active
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
Response:
MESSAGE
status:200
correlation-id:anjmeuxm55
destination:/user/v1/responses
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
{
"currency_id" : "...",
"current" : {
"average_balance" : "123.4",
"total_volume" : "123.4",
"invited_users_count" : 12345,
"withdrawal_commission_progressive" : "123.4",
"withdrawal_commission_flat" : "123.4",
"deposit_commission_progressive" : "123.4",
"deposit_commission_flat" : "123.4"
},
"next" : {
"average_balance" : "123.4",
"total_volume" : "123.4",
"invited_users_count" : 12345,
"withdrawal_commission_progressive" : "123.4",
"withdrawal_commission_flat" : "123.4",
"deposit_commission_progressive" : "123.4",
"deposit_commission_flat" : "123.4"
},
"next_by_volume" : {
"average_balance" : "123.4",
"total_volume" : "123.4",
"invited_users_count" : 12345,
"withdrawal_commission_progressive" : "123.4",
"withdrawal_commission_flat" : "123.4",
"deposit_commission_progressive" : "123.4",
"deposit_commission_flat" : "123.4"
},
"next_by_balance" : {
"average_balance" : "123.4",
"total_volume" : "123.4",
"invited_users_count" : 12345,
"withdrawal_commission_progressive" : "123.4",
"withdrawal_commission_flat" : "123.4",
"deposit_commission_progressive" : "123.4",
"deposit_commission_flat" : "123.4"
},
"next_by_invited_users_count" : {
"average_balance" : "123.4",
"total_volume" : "123.4",
"invited_users_count" : 12345,
"withdrawal_commission_progressive" : "123.4",
"withdrawal_commission_flat" : "123.4",
"deposit_commission_progressive" : "123.4",
"deposit_commission_flat" : "123.4"
}
}
Subscription for currency changes. First snapshot will contain all currencies available to the user. The following snapshots will only contain the currencies that have changed since the last time.
| name | type | description | constraints |
|---|---|---|---|
| id | header | Subscription identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. |
| media type | data type | description |
|---|---|---|
| application/json | array of CurrencyActionDto | Class that defines an action to a specific currency. |
Subscribe:
SUBSCRIBE
id:sub-0
destination:/user/v1/currencies
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
Unsubscribe:
UNSUBSCRIBE
id:sub-0
Message:
MESSAGE
status:200
destination:/user/v1/currencies
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
[ {
"id" : "...",
"action" : "insert",
"currency" : {
"id" : "...",
"name" : "...",
"type" : "...",
"precision" : 12345,
"icon" : "...",
"icon_type" : "...",
"sign" : "...",
"daily_deposit_threshold" : "123.4",
"daily_withdrawal_threshold" : "123.4",
"weekly_deposit_threshold" : "123.4",
"weekly_withdrawal_threshold" : "123.4",
"monthly_deposit_threshold" : "123.4",
"monthly_withdrawal_threshold" : "123.4",
"yearly_deposit_threshold" : "123.4",
"yearly_withdrawal_threshold" : "123.4",
"daily_deposit_limit" : "123.4",
"daily_withdrawal_limit" : "123.4",
"weekly_deposit_limit" : "123.4",
"weekly_withdrawal_limit" : "123.4",
"monthly_deposit_limit" : "123.4",
"monthly_withdrawal_limit" : "123.4",
"yearly_deposit_limit" : "123.4",
"yearly_withdrawal_limit" : "123.4",
"limits_currency" : "...",
"withdrawal_commission_progressive" : "123.4",
"withdrawal_commission_flat" : "123.4",
"deposit_commission_progressive" : "123.4",
"deposit_commission_flat" : "123.4",
"minimal_withdrawal" : "123.4",
"withdrawals_allowed" : false,
"deposits_allowed" : true,
"allowed_account_properties" : [ "...", "..." ],
"available_networks" : [ "...", "..." ],
"use_abbreviations" : true,
"custom_data" : "...",
"custom_data2" : "..."
}
}, {
"id" : "...",
"action" : "delete",
"currency" : {
"id" : "...",
"name" : "...",
"type" : "...",
"precision" : 12345,
"icon" : "...",
"icon_type" : "...",
"sign" : "...",
"daily_deposit_threshold" : "123.4",
"daily_withdrawal_threshold" : "123.4",
"weekly_deposit_threshold" : "123.4",
"weekly_withdrawal_threshold" : "123.4",
"monthly_deposit_threshold" : "123.4",
"monthly_withdrawal_threshold" : "123.4",
"yearly_deposit_threshold" : "123.4",
"yearly_withdrawal_threshold" : "123.4",
"daily_deposit_limit" : "123.4",
"daily_withdrawal_limit" : "123.4",
"weekly_deposit_limit" : "123.4",
"weekly_withdrawal_limit" : "123.4",
"monthly_deposit_limit" : "123.4",
"monthly_withdrawal_limit" : "123.4",
"yearly_deposit_limit" : "123.4",
"yearly_withdrawal_limit" : "123.4",
"limits_currency" : "...",
"withdrawal_commission_progressive" : "123.4",
"withdrawal_commission_flat" : "123.4",
"deposit_commission_progressive" : "123.4",
"deposit_commission_flat" : "123.4",
"minimal_withdrawal" : "123.4",
"withdrawals_allowed" : true,
"deposits_allowed" : false,
"allowed_account_properties" : [ "...", "..." ],
"available_networks" : [ "...", "..." ],
"use_abbreviations" : false,
"custom_data" : "...",
"custom_data2" : "..."
}
} ]
Returns the configuration of the custom service, if exists.
| name | type | description | constraints |
|---|---|---|---|
| correlation-id | header | Request identifier. | required |
| destination | header | Destination path. | required |
| service_name | path | Name of the target custom service. | required |
| media type | data type | description |
|---|---|---|
| application/json | string |
Request:
SEND
correlation-id:anjmeuxm55
destination:/app/v1/custom-services/SORPreview
Response:
MESSAGE
status:200
correlation-id:anjmeuxm55
destination:/user/v1/responses
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
...
Returns a list of custom services available to the user.
| name | type | description | constraints |
|---|---|---|---|
| correlation-id | header | Request identifier. | required |
| destination | header | Destination path. | required |
| media type | data type | description |
|---|---|---|
| application/json | array of CustomServiceDto | Class that defines a custom service. |
Request:
SEND
correlation-id:anjmeuxm55
destination:/app/v1/custom-services
Response:
MESSAGE
status:200
correlation-id:anjmeuxm55
destination:/user/v1/responses
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
[ {
"name" : "...",
"source_id" : 12345
}, {
"name" : "...",
"source_id" : 12345
} ]
Sends a RPC request to the specified custom service and returns result.
| name | type | description | constraints |
|---|---|---|---|
| correlation-id | header | Request identifier. | required |
| destination | header | Destination path. | required |
| service_name | path | Name of the target custom service. | required |
| media type | data type | description |
|---|---|---|
| application/json | string |
| media type | data type | description |
|---|---|---|
| application/json | string |
Request:
SEND
correlation-id:anjmeuxm55
destination:/app/v1/custom-services/SORPreview/request
...
Response:
MESSAGE
status:200
correlation-id:anjmeuxm55
destination:/user/v1/responses
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
...
Subscription for order’s fee changes. Maximum number of orders per user is limitted.
| name | type | description | constraints |
|---|---|---|---|
| id | header | Subscription identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. | |
| X-Deltix-Security-ID | header | Order’s security. | required |
| X-Deltix-Side | header | Order’s side. Side | required |
| X-Deltix-Type | header | Order’s type. | required |
| X-Deltix-Destination | header | Order’s destination. | required |
| X-Deltix-Quantity | header | Order’s quantity. This is a string containing a decimal floating-point value. | required |
| X-Deltix-Limit-Price | header | Order’s limit price. Only required for some types of orders. This is a string containing a decimal floating-point value. | |
| X-Deltix-Stop-Price | header | Order’s stop price. Only required for some types of orders. This is a string containing a decimal floating-point value. |
| media type | data type | description |
|---|---|---|
| application/json | FeeDto | Approximate order fee. Note: fee depends on the book state at the calculation time so actual value may differ from the calculated one. |
Subscribe:
SUBSCRIBE
id:sub-0
destination:/user/v1/fees
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
X-Deltix-Security-ID:BTCUSD
X-Deltix-Side:buy
X-Deltix-Type:market
X-Deltix-Destination:DELTIX
X-Deltix-Quantity:1.0
Unsubscribe:
UNSUBSCRIBE
id:sub-0
Message:
MESSAGE
status:200
destination:/user/v1/fees
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
{
"fee" : "123.4",
"cost" : "123.4",
"average_price" : "123.4",
"comment" : "..."
}
Subscription for market data updates.
Security can be specified either by path, or by header X-Deltix-Security-Id. The second way is preferred. If X-Deltix-Security-Id header is specified, the path value can be any unique string, only used to distinguish different subscriptions.
| name | type | description | constraints |
|---|---|---|---|
| id | header | Subscription identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. | |
| X-Deltix-Security-Id | header | Instrument L2 updates are for. | |
| security_id | path | Instrument L2 updates are for. When X-Deltix-Security-Id header is specified, this can be any unique string. | required |
| media type | data type | description |
|---|---|---|
| application/json | L2PackageDto | Represents L2 package for the specified symbol. |
Subscribe:
SUBSCRIBE
id:sub-0
destination:/user/v1/market-data/BTCUSD
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
X-Deltix-Security-Id:BTCUSD
Unsubscribe:
UNSUBSCRIBE
id:sub-0
Message:
MESSAGE
status:200
destination:/user/v1/market-data/BTCUSD
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
{
"timestamp" : 12345,
"security_id" : "...",
"type" : "snapshot_full_refresh",
"entries" : [ {
"timestamp" : 12345,
"price" : "123.4",
"quantity" : "123.4",
"side" : "sell",
"action" : "update",
"level" : 12345,
"number_of_orders" : 12345,
"exchange_id" : "..."
}, {
"timestamp" : 12345,
"price" : "123.4",
"quantity" : "123.4",
"side" : "sell",
"action" : "trade",
"level" : 12345,
"number_of_orders" : 12345,
"exchange_id" : "..."
} ],
"sequence_number" : 12345
}
Returns batch of last trades for specified symbol. Order is not guaranteed. This is the preferred way.
| name | type | description | constraints |
|---|---|---|---|
| correlation-id | header | Request identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. | |
| X-Deltix-Security-Id | header | Instrument trades are for. | required |
| media type | data type | description |
|---|---|---|
| application/json | L2PackageDto | Represents L2 package for the specified symbol. |
Request:
SEND
correlation-id:anjmeuxm55
destination:/app/v1/trades
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
X-Deltix-Security-Id:BTCUSD
Response:
MESSAGE
status:200
correlation-id:anjmeuxm55
destination:/user/v1/responses
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
X-Deltix-Security-Id:BTCUSD
{
"timestamp" : 12345,
"security_id" : "...",
"type" : "incremental_update",
"entries" : [ {
"timestamp" : 12345,
"price" : "123.4",
"quantity" : "123.4",
"side" : "buy",
"action" : "delete",
"level" : 12345,
"number_of_orders" : 12345,
"exchange_id" : "..."
}, {
"timestamp" : 12345,
"price" : "123.4",
"quantity" : "123.4",
"side" : "buy",
"action" : "update",
"level" : 12345,
"number_of_orders" : 12345,
"exchange_id" : "..."
} ],
"sequence_number" : 12345
}
Returns batch of last trades for specified symbol. Order is not guaranteed.
| name | type | description | constraints |
|---|---|---|---|
| correlation-id | header | Request identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. | |
| security_id | path | Instrument trades are for. | required |
| media type | data type | description |
|---|---|---|
| application/json | L2PackageDto | Represents L2 package for the specified symbol. |
Request:
SEND
correlation-id:anjmeuxm55
destination:/app/v1/trades/BTCUSD
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
Response:
MESSAGE
status:200
correlation-id:anjmeuxm55
destination:/user/v1/responses
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
{
"timestamp" : 12345,
"security_id" : "...",
"type" : "snapshot_full_refresh",
"entries" : [ {
"timestamp" : 12345,
"price" : "123.4",
"quantity" : "123.4",
"side" : "sell",
"action" : "insert",
"level" : 12345,
"number_of_orders" : 12345,
"exchange_id" : "..."
}, {
"timestamp" : 12345,
"price" : "123.4",
"quantity" : "123.4",
"side" : "buy",
"action" : "delete",
"level" : 12345,
"number_of_orders" : 12345,
"exchange_id" : "..."
} ],
"sequence_number" : 12345
}
Returns a list of linked users.
| name | type | description | constraints |
|---|---|---|---|
| correlation-id | header | Request identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. |
| media type | data type | description |
|---|---|---|
| application/json | array of LinkedUserDto | Class that defines a user to which the user can switch. |
Request:
SEND
correlation-id:anjmeuxm55
destination:/v1/linked/list
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
Response:
MESSAGE
status:200
correlation-id:anjmeuxm55
destination:/user/v1/responses
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
[ {
"id" : "...",
"username" : "...",
"user_type" : "...",
"public_id" : "...",
"is_main" : true
}, {
"id" : "...",
"username" : "...",
"user_type" : "...",
"public_id" : "...",
"is_main" : false
} ]
Writes log message.
| name | type | description | constraints |
|---|---|---|---|
| correlation-id | header | Request identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. |
| media type | data type | description |
|---|---|---|
| application/json | LogDto | Represents request for collecting log message. |
| media type | data type | description |
|---|---|---|
| application/json | string |
Request:
SEND
correlation-id:anjmeuxm55
destination:/app/v1/log
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
{
"logger" : "...",
"message" : "...",
"level" : "error"
}
Response:
MESSAGE
status:200
correlation-id:anjmeuxm55
destination:/user/v1/responses
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
"..."
Returns a list of prime broker accounts, available for the user.
| name | type | description | constraints |
|---|---|---|---|
| correlation-id | header | Request identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. |
| media type | data type | description |
|---|---|---|
| application/json | array of PrimeBrokerAccountDto |
Request:
SEND
correlation-id:anjmeuxm55
destination:/app/v1/prime-broker/accounts
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
Response:
MESSAGE
status:200
correlation-id:anjmeuxm55
destination:/user/v1/responses
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
[ {
"id" : "...",
"name" : "...",
"custom_data" : "..."
}, {
"id" : "...",
"name" : "...",
"custom_data" : "..."
} ]
Subscription for quotes updates.
| name | type | description | constraints |
|---|---|---|---|
| id | header | Subscription identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. |
| media type | data type | description |
|---|---|---|
| application/json | QuoteDto | Class that defines a suggested quote. |
Subscribe:
SUBSCRIBE
id:sub-0
destination:/user/v1/rfq
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
Unsubscribe:
UNSUBSCRIBE
id:sub-0
Message:
MESSAGE
status:200
destination:/user/v1/rfq
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
{
"request_id" : "...",
"id" : "...",
"source" : "...",
"bid_price" : "123.4",
"bid_size" : "123.4",
"ask_price" : "123.4",
"ask_size" : "123.4",
"currency_id" : "...",
"valid_until_time" : 12345
}
Sends request for quotes. Returns request_id.
| name | type | description | constraints |
|---|---|---|---|
| correlation-id | header | Request identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. |
| media type | data type | description |
|---|---|---|
| application/json | QuoteRequestDto | Class that defines a request for quote. |
| media type | data type | description |
|---|---|---|
| application/json | RFQRequestIdDto | Represents RFQ request identifier. |
Request:
SEND
correlation-id:anjmeuxm55
destination:/app/v1/rfq/request
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
{
"security_id" : "...",
"side" : "buy",
"size" : "123.4",
"currency" : "...",
"destination" : "...",
"prime_broker_account" : "...",
"settlement_date" : 12345,
"tenor" : "...",
"message" : "..."
}
Response:
MESSAGE
status:200
correlation-id:anjmeuxm55
destination:/user/v1/responses
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
{
"request_id" : "..."
}
Cancels request for quotes with the specified
request_id.
| name | type | description | constraints |
|---|---|---|---|
| correlation-id | header | Request identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. |
| media type | data type | description |
|---|---|---|
| application/json | RFQRequestIdDto | Represents RFQ request identifier. |
Request:
SEND
correlation-id:anjmeuxm55
destination:/app/v1/rfq/cancel
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
{
"request_id" : "..."
}
Response:
MESSAGE
status:200
correlation-id:anjmeuxm55
destination:/user/v1/responses
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
Returns a list of quote requests for the user.
| name | type | description | constraints |
|---|---|---|---|
| correlation-id | header | Request identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. |
| media type | data type | description |
|---|---|---|
| application/json | array of QuoteSubscriptionDto | Class that defines a subscription for quotes. |
Request:
SEND
correlation-id:anjmeuxm55
destination:/app/v1/rfq/list
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
Response:
MESSAGE
status:200
correlation-id:anjmeuxm55
destination:/user/v1/responses
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
[ {
"security_id" : "...",
"side" : "buy",
"size" : "123.4",
"currency" : "...",
"destination" : "...",
"prime_broker_account" : "...",
"settlement_date" : 12345,
"tenor" : "...",
"message" : "...",
"request_id" : "...",
"expire_time" : 12345,
"last_quote" : {
"request_id" : "...",
"id" : "...",
"source" : "...",
"bid_price" : "123.4",
"bid_size" : "123.4",
"ask_price" : "123.4",
"ask_size" : "123.4",
"currency_id" : "...",
"valid_until_time" : 12345
}
}, {
"security_id" : "...",
"side" : "sell",
"size" : "123.4",
"currency" : "...",
"destination" : "...",
"prime_broker_account" : "...",
"settlement_date" : 12345,
"tenor" : "...",
"message" : "...",
"request_id" : "...",
"expire_time" : 12345,
"last_quote" : {
"request_id" : "...",
"id" : "...",
"source" : "...",
"bid_price" : "123.4",
"bid_size" : "123.4",
"ask_price" : "123.4",
"ask_size" : "123.4",
"currency_id" : "...",
"valid_until_time" : 12345
}
} ]
Returns a list of securities with user settings.
| name | type | description | constraints |
|---|---|---|---|
| correlation-id | header | Request identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. |
| media type | data type | description |
|---|---|---|
| application/json | array of SecurityDto | Class that defines a security with the user-specific settings. |
Request:
SEND
correlation-id:anjmeuxm55
destination:/app/v1/securities
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
Response:
MESSAGE
status:200
correlation-id:anjmeuxm55
destination:/user/v1/responses
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
[ {
"id" : "...",
"calendar_id" : "...",
"name" : "...",
"security_type" : "bond",
"type" : "...",
"tick_size" : "123.4",
"multiplier" : "123.4",
"base_currency" : "...",
"term_currency" : "...",
"trading_currency" : "base",
"price_precision" : 12345,
"quantity_precision" : 12345,
"display_method" : "pips_highlight",
"pips_highlight_start" : 12345,
"pips_highlight_end" : 12345,
"main_fraction" : 12345,
"sub_fraction" : 12345,
"number_of_fraction_decimals" : 12345,
"max_bars_count" : 12345,
"first_bar_timestamp" : 12345,
"last_bar_timestamp" : 12345,
"order_types" : [ "...", "..." ],
"linked_order_types" : [ "...", "..." ],
"time_in_forces" : [ "fok", "day" ],
"default_time_in_force" : "gtd",
"market_time_in_forces" : [ "good_till_crossing", "gtd" ],
"default_market_time_in_force" : "gtd",
"pre_open_time_in_forces" : [ "gtd", "fok" ],
"default_pre_open_time_in_force" : "at_the_close",
"minimum_quantity" : "123.4",
"maximum_quantity" : "123.4",
"default_quantity" : "123.4",
"quantity_increment" : "123.4",
"target_price_minimum" : "123.4",
"target_price_maximum" : "123.4",
"target_price_increment" : "123.4",
"show_exchange_id" : false,
"adjust_book" : false,
"execution_explanation" : "commission",
"available_book_exchanges" : [ "...", "..." ],
"available_trade_exchanges" : [ "...", "..." ],
"available_destinations" : [ "...", "..." ],
"default_destination" : "...",
"order_max_ttl" : 12345,
"buyer_taker_commission_flat" : "123.4",
"buyer_taker_commission_progressive" : "123.4",
"seller_taker_commission_flat" : "123.4",
"seller_taker_commission_progressive" : "123.4",
"buyer_maker_commission_flat" : "123.4",
"buyer_maker_commission_progressive" : "123.4",
"buyer_flat_commission_method" : "exact_value",
"buyer_progressive_commission_method" : "quantity_percent",
"buyer_commission_account" : "source_account",
"seller_maker_commission_flat" : "123.4",
"seller_maker_commission_progressive" : "123.4",
"seller_flat_commission_method" : "exact_value",
"seller_progressive_commission_method" : "quantity_percent",
"seller_commission_account" : "abc_account",
"charge_flat_commission_at" : "acknowledgment",
"taker_reserve_multiplier" : "123.4",
"external_commissions" : [ {
"exchange_id" : "...",
"commission_currency" : "...",
"maker_commission" : "123.4",
"taker_commission" : "123.4"
}, {
"exchange_id" : "...",
"commission_currency" : "...",
"maker_commission" : "123.4",
"taker_commission" : "123.4"
} ],
"prime_broker_accounts" : [ "...", "..." ],
"is_rfq_allowed" : true,
"custom_data" : "...",
"custom_data2" : "...",
"modification_time" : 12345
} ]
Returns a list of securities statistics.
| name | type | description | constraints |
|---|---|---|---|
| correlation-id | header | Request identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. |
| media type | data type | description |
|---|---|---|
| application/json | array of SecurityStatisticsDto | Class that defines security current prices and statistics. |
Request:
SEND
correlation-id:anjmeuxm55
destination:/app/v1/securities/statistics
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
Response:
MESSAGE
status:200
correlation-id:anjmeuxm55
destination:/user/v1/responses
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
[ {
"security_id" : "...",
"bid" : "123.4",
"ask" : "123.4",
"price_24h_change" : "123.4",
"volume_24h_change" : "123.4",
"price_24h_max" : "123.4",
"price_24h_min" : "123.4",
"last_trade_price" : "123.4"
}, {
"security_id" : "...",
"bid" : "123.4",
"ask" : "123.4",
"price_24h_change" : "123.4",
"volume_24h_change" : "123.4",
"price_24h_max" : "123.4",
"price_24h_min" : "123.4",
"last_trade_price" : "123.4"
} ]
Returns a specific security with user settings.
| name | type | description | constraints |
|---|---|---|---|
| correlation-id | header | Request identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. | |
| security_id | path | Instrument for bar filtering. | required |
| media type | data type | description |
|---|---|---|
| application/json | SecurityDto | Class that defines a security with the user-specific settings. |
Request:
SEND
correlation-id:anjmeuxm55
destination:/app/v1/securities/BTCUSD
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
Response:
MESSAGE
status:200
correlation-id:anjmeuxm55
destination:/user/v1/responses
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
{
"id" : "...",
"calendar_id" : "...",
"name" : "...",
"security_type" : "nft",
"type" : "...",
"tick_size" : "123.4",
"multiplier" : "123.4",
"base_currency" : "...",
"term_currency" : "...",
"trading_currency" : "side",
"price_precision" : 12345,
"quantity_precision" : 12345,
"display_method" : "plain_text",
"pips_highlight_start" : 12345,
"pips_highlight_end" : 12345,
"main_fraction" : 12345,
"sub_fraction" : 12345,
"number_of_fraction_decimals" : 12345,
"max_bars_count" : 12345,
"first_bar_timestamp" : 12345,
"last_bar_timestamp" : 12345,
"order_types" : [ "...", "..." ],
"linked_order_types" : [ "...", "..." ],
"time_in_forces" : [ "gtc", "good_till_crossing" ],
"default_time_in_force" : "at_the_opening",
"market_time_in_forces" : [ "day", "good_till_crossing" ],
"default_market_time_in_force" : "good_till_crossing",
"pre_open_time_in_forces" : [ "gtd", "ioc" ],
"default_pre_open_time_in_force" : "ioc",
"minimum_quantity" : "123.4",
"maximum_quantity" : "123.4",
"default_quantity" : "123.4",
"quantity_increment" : "123.4",
"target_price_minimum" : "123.4",
"target_price_maximum" : "123.4",
"target_price_increment" : "123.4",
"show_exchange_id" : false,
"adjust_book" : false,
"execution_explanation" : "price",
"available_book_exchanges" : [ "...", "..." ],
"available_trade_exchanges" : [ "...", "..." ],
"available_destinations" : [ "...", "..." ],
"default_destination" : "...",
"order_max_ttl" : 12345,
"buyer_taker_commission_flat" : "123.4",
"buyer_taker_commission_progressive" : "123.4",
"seller_taker_commission_flat" : "123.4",
"seller_taker_commission_progressive" : "123.4",
"buyer_maker_commission_flat" : "123.4",
"buyer_maker_commission_progressive" : "123.4",
"buyer_flat_commission_method" : "exact_value",
"buyer_progressive_commission_method" : "exact_value",
"buyer_commission_account" : "source_account",
"seller_maker_commission_flat" : "123.4",
"seller_maker_commission_progressive" : "123.4",
"seller_flat_commission_method" : "exact_value",
"seller_progressive_commission_method" : "exact_value",
"seller_commission_account" : "destination_account",
"charge_flat_commission_at" : "first_fill",
"taker_reserve_multiplier" : "123.4",
"external_commissions" : [ {
"exchange_id" : "...",
"commission_currency" : "...",
"maker_commission" : "123.4",
"taker_commission" : "123.4"
}, {
"exchange_id" : "...",
"commission_currency" : "...",
"maker_commission" : "123.4",
"taker_commission" : "123.4"
} ],
"prime_broker_accounts" : [ "...", "..." ],
"is_rfq_allowed" : true,
"custom_data" : "...",
"custom_data2" : "...",
"modification_time" : 12345
}
Subscription for security changes. First snapshot will contain all securities available to the user. The following snapshots will only contain the securities that have changed since the last time.
| name | type | description | constraints |
|---|---|---|---|
| id | header | Subscription identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. |
| media type | data type | description |
|---|---|---|
| application/json | array of SecurityActionDto | Class that defines an action to a specific security. |
Subscribe:
SUBSCRIBE
id:sub-0
destination:/user/v1/securities
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
Unsubscribe:
UNSUBSCRIBE
id:sub-0
Message:
MESSAGE
status:200
destination:/user/v1/securities
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
[ {
"id" : "...",
"action" : "delete",
"security" : {
"id" : "...",
"calendar_id" : "...",
"name" : "...",
"security_type" : "cfd",
"type" : "...",
"tick_size" : "123.4",
"multiplier" : "123.4",
"base_currency" : "...",
"term_currency" : "...",
"trading_currency" : "side",
"price_precision" : 12345,
"quantity_precision" : 12345,
"display_method" : "fractions",
"pips_highlight_start" : 12345,
"pips_highlight_end" : 12345,
"main_fraction" : 12345,
"sub_fraction" : 12345,
"number_of_fraction_decimals" : 12345,
"max_bars_count" : 12345,
"first_bar_timestamp" : 12345,
"last_bar_timestamp" : 12345,
"order_types" : [ "...", "..." ],
"linked_order_types" : [ "...", "..." ],
"time_in_forces" : [ "day", "ioc" ],
"default_time_in_force" : "fok",
"market_time_in_forces" : [ "gtc", "fok" ],
"default_market_time_in_force" : "gtd",
"pre_open_time_in_forces" : [ "ioc", "day" ],
"default_pre_open_time_in_force" : "at_the_opening",
"minimum_quantity" : "123.4",
"maximum_quantity" : "123.4",
"default_quantity" : "123.4",
"quantity_increment" : "123.4",
"target_price_minimum" : "123.4",
"target_price_maximum" : "123.4",
"target_price_increment" : "123.4",
"show_exchange_id" : false,
"adjust_book" : true,
"execution_explanation" : "price",
"available_book_exchanges" : [ "...", "..." ],
"available_trade_exchanges" : [ "...", "..." ],
"available_destinations" : [ "...", "..." ],
"default_destination" : "...",
"order_max_ttl" : 12345,
"buyer_taker_commission_flat" : "123.4",
"buyer_taker_commission_progressive" : "123.4",
"seller_taker_commission_flat" : "123.4",
"seller_taker_commission_progressive" : "123.4",
"buyer_maker_commission_flat" : "123.4",
"buyer_maker_commission_progressive" : "123.4",
"buyer_flat_commission_method" : "quantity_percent",
"buyer_progressive_commission_method" : "quantity_percent",
"buyer_commission_account" : "abc_account",
"seller_maker_commission_flat" : "123.4",
"seller_maker_commission_progressive" : "123.4",
"seller_flat_commission_method" : "exact_value",
"seller_progressive_commission_method" : "quantity_percent",
"seller_commission_account" : "destination_account",
"charge_flat_commission_at" : "first_fill",
"taker_reserve_multiplier" : "123.4",
"external_commissions" : [ {
"exchange_id" : "...",
"commission_currency" : "...",
"maker_commission" : "123.4",
"taker_commission" : "123.4"
}, {
"exchange_id" : "...",
"commission_currency" : "...",
"maker_commission" : "123.4",
"taker_commission" : "123.4"
} ],
"prime_broker_accounts" : [ "...", "..." ],
"is_rfq_allowed" : false,
"custom_data" : "...",
"custom_data2" : "...",
"modification_time" : 12345
}
}, {
"id" : "...",
"action" : "delete",
"security" : {
"id" : "...",
"calendar_id" : "...",
"name" : "...",
"security_type" : "futures",
"type" : "...",
"tick_size" : "123.4",
"multiplier" : "123.4",
"base_currency" : "...",
"term_currency" : "...",
"trading_currency" : "side",
"price_precision" : 12345,
"quantity_precision" : 12345,
"display_method" : "fractions",
"pips_highlight_start" : 12345,
"pips_highlight_end" : 12345,
"main_fraction" : 12345,
"sub_fraction" : 12345,
"number_of_fraction_decimals" : 12345,
"max_bars_count" : 12345,
"first_bar_timestamp" : 12345,
"last_bar_timestamp" : 12345,
"order_types" : [ "...", "..." ],
"linked_order_types" : [ "...", "..." ],
"time_in_forces" : [ "at_the_opening", "ioc" ],
"default_time_in_force" : "gtd",
"market_time_in_forces" : [ "fok", "ioc" ],
"default_market_time_in_force" : "at_the_opening",
"pre_open_time_in_forces" : [ "at_the_close", "gtd" ],
"default_pre_open_time_in_force" : "gtd",
"minimum_quantity" : "123.4",
"maximum_quantity" : "123.4",
"default_quantity" : "123.4",
"quantity_increment" : "123.4",
"target_price_minimum" : "123.4",
"target_price_maximum" : "123.4",
"target_price_increment" : "123.4",
"show_exchange_id" : true,
"adjust_book" : true,
"execution_explanation" : "price",
"available_book_exchanges" : [ "...", "..." ],
"available_trade_exchanges" : [ "...", "..." ],
"available_destinations" : [ "...", "..." ],
"default_destination" : "...",
"order_max_ttl" : 12345,
"buyer_taker_commission_flat" : "123.4",
"buyer_taker_commission_progressive" : "123.4",
"seller_taker_commission_flat" : "123.4",
"seller_taker_commission_progressive" : "123.4",
"buyer_maker_commission_flat" : "123.4",
"buyer_maker_commission_progressive" : "123.4",
"buyer_flat_commission_method" : "quantity_percent",
"buyer_progressive_commission_method" : "quantity_percent",
"buyer_commission_account" : "source_account",
"seller_maker_commission_flat" : "123.4",
"seller_maker_commission_progressive" : "123.4",
"seller_flat_commission_method" : "exact_value",
"seller_progressive_commission_method" : "term_ticks",
"seller_commission_account" : "abc_account",
"charge_flat_commission_at" : "first_fill",
"taker_reserve_multiplier" : "123.4",
"external_commissions" : [ {
"exchange_id" : "...",
"commission_currency" : "...",
"maker_commission" : "123.4",
"taker_commission" : "123.4"
}, {
"exchange_id" : "...",
"commission_currency" : "...",
"maker_commission" : "123.4",
"taker_commission" : "123.4"
} ],
"prime_broker_accounts" : [ "...", "..." ],
"is_rfq_allowed" : false,
"custom_data" : "...",
"custom_data2" : "...",
"modification_time" : 12345
}
} ]
Subscription for all securities prices and statistics change. First snapshot will contain all securities available to the user. The following snapshots will only contain the securities that have changed since the last time.
| name | type | description | constraints |
|---|---|---|---|
| id | header | Subscription identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. |
| media type | data type | description |
|---|---|---|
| application/json | array of SecurityStatisticsDto | Class that defines security current prices and statistics. |
Subscribe:
SUBSCRIBE
id:sub-0
destination:/user/v1/securities/statistics
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
Unsubscribe:
UNSUBSCRIBE
id:sub-0
Message:
MESSAGE
status:200
destination:/user/v1/securities/statistics
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
[ {
"security_id" : "...",
"bid" : "123.4",
"ask" : "123.4",
"price_24h_change" : "123.4",
"volume_24h_change" : "123.4",
"price_24h_max" : "123.4",
"price_24h_min" : "123.4",
"last_trade_price" : "123.4"
}, {
"security_id" : "...",
"bid" : "123.4",
"ask" : "123.4",
"price_24h_change" : "123.4",
"volume_24h_change" : "123.4",
"price_24h_max" : "123.4",
"price_24h_min" : "123.4",
"last_trade_price" : "123.4"
} ]
Returns a list of securities with user settings.
| name | type | description | constraints |
|---|---|---|---|
| correlation-id | header | Request identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. |
| media type | data type | description |
|---|---|---|
| application/json | array of SecurityV2Dto | Class that defines a security with the user-specific settings. |
Request:
SEND
correlation-id:anjmeuxm55
destination:/app/v2/securities
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
Response:
MESSAGE
status:200
correlation-id:anjmeuxm55
destination:/user/v1/responses
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
[ {
"id" : "...",
"calendar_id" : "...",
"name" : "...",
"security_type" : "cfd",
"type" : "...",
"tick" : "123.4",
"mul" : "123.4",
"base" : "...",
"term" : "...",
"trade_curr" : "base",
"p_prec" : 12345,
"q_prec" : 12345,
"display" : "plain_text",
"pips" : [ 12345, 12345 ],
"fract" : [ 12345, 12345 ],
"o_types" : [ "...", "..." ],
"lo_types" : [ "...", "..." ],
"tif" : [ "ioc", "gtd" ],
"tif_def" : "good_till_crossing",
"m_tif" : [ "good_till_crossing", "ioc" ],
"m_tif_def" : "at_the_opening",
"po_tif" : [ "at_the_close", "at_the_opening" ],
"po_tif_def" : "fok",
"qty" : [ "123.4", "123.4" ],
"price" : [ "123.4", "123.4" ],
"show_exch" : true,
"adjust_book" : false,
"explain" : "none",
"book_exch" : [ "...", "..." ],
"trade_exch" : [ "...", "..." ],
"dest" : [ "...", "..." ],
"dest_def" : "...",
"o_ttl" : 12345,
"pb_acc" : [ "...", "..." ],
"is_rfq" : false,
"custom" : "...",
"custom2" : "...",
"time" : 12345
} ]
Returns a specific security with user settings. This is the preferred way.
| name | type | description | constraints |
|---|---|---|---|
| correlation-id | header | Request identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. | |
| X-Deltix-Security-Id | header | Instrument | required |
| media type | data type | description |
|---|---|---|
| application/json | SecurityV2Dto | Class that defines a security with the user-specific settings. |
Request:
SEND
correlation-id:anjmeuxm55
destination:/app/v2/securities/info
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
X-Deltix-Security-Id:BTCUSD
Response:
MESSAGE
status:200
correlation-id:anjmeuxm55
destination:/user/v1/responses
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
X-Deltix-Security-Id:BTCUSD
{
"id" : "...",
"calendar_id" : "...",
"name" : "...",
"security_type" : "simple_option",
"type" : "...",
"tick" : "123.4",
"mul" : "123.4",
"base" : "...",
"term" : "...",
"trade_curr" : "side",
"p_prec" : 12345,
"q_prec" : 12345,
"display" : "pips_highlight",
"pips" : [ 12345, 12345 ],
"fract" : [ 12345, 12345 ],
"o_types" : [ "...", "..." ],
"lo_types" : [ "...", "..." ],
"tif" : [ "good_till_crossing", "at_the_close" ],
"tif_def" : "day",
"m_tif" : [ "gtc", "at_the_opening" ],
"m_tif_def" : "day",
"po_tif" : [ "at_the_opening", "fok" ],
"po_tif_def" : "ioc",
"qty" : [ "123.4", "123.4" ],
"price" : [ "123.4", "123.4" ],
"show_exch" : false,
"adjust_book" : false,
"explain" : "price",
"book_exch" : [ "...", "..." ],
"trade_exch" : [ "...", "..." ],
"dest" : [ "...", "..." ],
"dest_def" : "...",
"o_ttl" : 12345,
"pb_acc" : [ "...", "..." ],
"is_rfq" : true,
"custom" : "...",
"custom2" : "...",
"time" : 12345
}
Returns a specific security with user settings. Deprecated. Use
/app/v2/securities/info instead.
| name | type | description | constraints |
|---|---|---|---|
| correlation-id | header | Request identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. | |
| security_id | path | Instrument | required |
| media type | data type | description |
|---|---|---|
| application/json | SecurityV2Dto | Class that defines a security with the user-specific settings. |
Request:
SEND
correlation-id:anjmeuxm55
destination:/app/v2/securities/BTCUSD
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
Response:
MESSAGE
status:200
correlation-id:anjmeuxm55
destination:/user/v1/responses
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
{
"id" : "...",
"calendar_id" : "...",
"name" : "...",
"security_type" : "nft",
"type" : "...",
"tick" : "123.4",
"mul" : "123.4",
"base" : "...",
"term" : "...",
"trade_curr" : "term",
"p_prec" : 12345,
"q_prec" : 12345,
"display" : "pips_highlight",
"pips" : [ 12345, 12345 ],
"fract" : [ 12345, 12345 ],
"o_types" : [ "...", "..." ],
"lo_types" : [ "...", "..." ],
"tif" : [ "day", "gtc" ],
"tif_def" : "ioc",
"m_tif" : [ "gtc", "ioc" ],
"m_tif_def" : "at_the_opening",
"po_tif" : [ "at_the_opening", "ioc" ],
"po_tif_def" : "ioc",
"qty" : [ "123.4", "123.4" ],
"price" : [ "123.4", "123.4" ],
"show_exch" : true,
"adjust_book" : false,
"explain" : "price",
"book_exch" : [ "...", "..." ],
"trade_exch" : [ "...", "..." ],
"dest" : [ "...", "..." ],
"dest_def" : "...",
"o_ttl" : 12345,
"pb_acc" : [ "...", "..." ],
"is_rfq" : false,
"custom" : "...",
"custom2" : "...",
"time" : 12345
}
Returns security bar info for a specific security. This is the preferred way.
| name | type | description | constraints |
|---|---|---|---|
| correlation-id | header | Request identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. | |
| X-Deltix-Security-Id | header | Instrument | required |
| media type | data type | description |
|---|---|---|
| application/json | SecurityBarsDto | Class that defines security bars. |
Request:
SEND
correlation-id:anjmeuxm55
destination:/app/v2/securities/bar_info
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
X-Deltix-Security-Id:BTCUSD
Response:
MESSAGE
status:200
correlation-id:anjmeuxm55
destination:/user/v1/responses
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
X-Deltix-Security-Id:BTCUSD
{
"max_bars_count" : 12345,
"first_bar_timestamp" : 12345,
"last_bar_timestamp" : 12345
}
Returns security bar info for a specific security. Deprecated. Use
/app/v2/securities/bar_info instead.
| name | type | description | constraints |
|---|---|---|---|
| correlation-id | header | Request identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. | |
| security_id | path | Instrument | required |
| media type | data type | description |
|---|---|---|
| application/json | SecurityBarsDto | Class that defines security bars. |
Request:
SEND
correlation-id:anjmeuxm55
destination:/app/v2/securities/BTCUSD/bar_info
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
Response:
MESSAGE
status:200
correlation-id:anjmeuxm55
destination:/user/v1/responses
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
{
"max_bars_count" : 12345,
"first_bar_timestamp" : 12345,
"last_bar_timestamp" : 12345
}
Returns security commissions for all securities available to the user.
| name | type | description | constraints |
|---|---|---|---|
| correlation-id | header | Request identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. |
| media type | data type | description |
|---|---|---|
| application/json | array of SecurityCommissionsDto | Class that defines security commissions. |
Request:
SEND
correlation-id:anjmeuxm55
destination:/app/v2/securities/commissions/all
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
Response:
MESSAGE
status:200
correlation-id:anjmeuxm55
destination:/user/v1/responses
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
[ {
"security_id" : "...",
"buyer_flat_commission_method" : "quantity_percent",
"buyer_progressive_commission_method" : "quantity_percent",
"buyer_commission_account" : "destination_account",
"seller_flat_commission_method" : "exact_value",
"seller_progressive_commission_method" : "exact_value",
"seller_commission_account" : "source_account",
"charge_flat_commission_at" : "first_fill",
"taker_reserve_multiplier" : "123.4",
"external_commissions" : [ {
"exchange_id" : "...",
"commission_currency" : "...",
"maker_commission" : "123.4",
"taker_commission" : "123.4"
}, {
"exchange_id" : "...",
"commission_currency" : "...",
"maker_commission" : "123.4",
"taker_commission" : "123.4"
} ],
"current_commission_plan" : {
"average_balance" : "123.4",
"total_volume" : "123.4",
"invited_users_count" : 12345,
"buyer_taker_commission_flat" : "123.4",
"buyer_taker_commission_progressive" : "123.4",
"seller_taker_commission_flat" : "123.4",
"seller_taker_commission_progressive" : "123.4",
"buyer_maker_commission_flat" : "123.4",
"buyer_maker_commission_progressive" : "123.4",
"seller_maker_commission_flat" : "123.4",
"seller_maker_commission_progressive" : "123.4"
}
} ]
Returns security commissions for a specific security. This is the preferred way.
| name | type | description | constraints |
|---|---|---|---|
| correlation-id | header | Request identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. | |
| X-Deltix-Security-Id | header | Instrument | required |
| media type | data type | description |
|---|---|---|
| application/json | SecurityCommissionsDto | Class that defines security commissions. |
Request:
SEND
correlation-id:anjmeuxm55
destination:/app/v2/securities/commissions
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
X-Deltix-Security-Id:BTCUSD
Response:
MESSAGE
status:200
correlation-id:anjmeuxm55
destination:/user/v1/responses
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
X-Deltix-Security-Id:BTCUSD
{
"security_id" : "...",
"buyer_flat_commission_method" : "quantity_percent",
"buyer_progressive_commission_method" : "quantity_percent",
"buyer_commission_account" : "abc_account",
"seller_flat_commission_method" : "term_ticks",
"seller_progressive_commission_method" : "exact_value",
"seller_commission_account" : "abc_account",
"charge_flat_commission_at" : "first_fill",
"taker_reserve_multiplier" : "123.4",
"external_commissions" : [ {
"exchange_id" : "...",
"commission_currency" : "...",
"maker_commission" : "123.4",
"taker_commission" : "123.4"
}, {
"exchange_id" : "...",
"commission_currency" : "...",
"maker_commission" : "123.4",
"taker_commission" : "123.4"
} ],
"current_commission_plan" : {
"average_balance" : "123.4",
"total_volume" : "123.4",
"invited_users_count" : 12345,
"buyer_taker_commission_flat" : "123.4",
"buyer_taker_commission_progressive" : "123.4",
"seller_taker_commission_flat" : "123.4",
"seller_taker_commission_progressive" : "123.4",
"buyer_maker_commission_flat" : "123.4",
"buyer_maker_commission_progressive" : "123.4",
"seller_maker_commission_flat" : "123.4",
"seller_maker_commission_progressive" : "123.4"
}
}
Returns security commissions for a specific security. Deprecated.
Use /app/v2/securities/commissions instead.
| name | type | description | constraints |
|---|---|---|---|
| correlation-id | header | Request identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. | |
| security_id | path | Instrument | required |
| media type | data type | description |
|---|---|---|
| application/json | SecurityCommissionsDto | Class that defines security commissions. |
Request:
SEND
correlation-id:anjmeuxm55
destination:/app/v2/securities/BTCUSD/commissions
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
Response:
MESSAGE
status:200
correlation-id:anjmeuxm55
destination:/user/v1/responses
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
{
"security_id" : "...",
"buyer_flat_commission_method" : "exact_value",
"buyer_progressive_commission_method" : "quantity_percent",
"buyer_commission_account" : "destination_account",
"seller_flat_commission_method" : "exact_value",
"seller_progressive_commission_method" : "term_ticks",
"seller_commission_account" : "destination_account",
"charge_flat_commission_at" : "acknowledgment",
"taker_reserve_multiplier" : "123.4",
"external_commissions" : [ {
"exchange_id" : "...",
"commission_currency" : "...",
"maker_commission" : "123.4",
"taker_commission" : "123.4"
}, {
"exchange_id" : "...",
"commission_currency" : "...",
"maker_commission" : "123.4",
"taker_commission" : "123.4"
} ],
"current_commission_plan" : {
"average_balance" : "123.4",
"total_volume" : "123.4",
"invited_users_count" : 12345,
"buyer_taker_commission_flat" : "123.4",
"buyer_taker_commission_progressive" : "123.4",
"seller_taker_commission_flat" : "123.4",
"seller_taker_commission_progressive" : "123.4",
"buyer_maker_commission_flat" : "123.4",
"buyer_maker_commission_progressive" : "123.4",
"seller_maker_commission_flat" : "123.4",
"seller_maker_commission_progressive" : "123.4"
}
}
Returns a list of commission plans for a specific security. This is the preferred way.
| name | type | description | constraints |
|---|---|---|---|
| correlation-id | header | Request identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. | |
| X-Deltix-Security-Id | header | Instrument | required |
| media type | data type | description |
|---|---|---|
| application/json | array of CommissionPlanDto | Class that defines a commission plan. |
Request:
SEND
correlation-id:anjmeuxm55
destination:/app/v2/securities/commission_plans
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
X-Deltix-Security-Id:BTCUSD
Response:
MESSAGE
status:200
correlation-id:anjmeuxm55
destination:/user/v1/responses
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
X-Deltix-Security-Id:BTCUSD
[ {
"average_balance" : "123.4",
"total_volume" : "123.4",
"invited_users_count" : 12345,
"buyer_taker_commission_flat" : "123.4",
"buyer_taker_commission_progressive" : "123.4",
"seller_taker_commission_flat" : "123.4",
"seller_taker_commission_progressive" : "123.4",
"buyer_maker_commission_flat" : "123.4",
"buyer_maker_commission_progressive" : "123.4",
"seller_maker_commission_flat" : "123.4",
"seller_maker_commission_progressive" : "123.4"
} ]
Returns a list of commission plans for a specific security.
Deprecated. Use
/app/v2/securities/commission_plans instead.
| name | type | description | constraints |
|---|---|---|---|
| correlation-id | header | Request identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. | |
| security_id | path | Instrument | required |
| media type | data type | description |
|---|---|---|
| application/json | array of CommissionPlanDto | Class that defines a commission plan. |
Request:
SEND
correlation-id:anjmeuxm55
destination:/app/v2/securities/BTCUSD/commission_plans
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
Response:
MESSAGE
status:200
correlation-id:anjmeuxm55
destination:/user/v1/responses
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
[ {
"average_balance" : "123.4",
"total_volume" : "123.4",
"invited_users_count" : 12345,
"buyer_taker_commission_flat" : "123.4",
"buyer_taker_commission_progressive" : "123.4",
"seller_taker_commission_flat" : "123.4",
"seller_taker_commission_progressive" : "123.4",
"buyer_maker_commission_flat" : "123.4",
"buyer_maker_commission_progressive" : "123.4",
"seller_maker_commission_flat" : "123.4",
"seller_maker_commission_progressive" : "123.4"
} ]
Returns active commission plans for all securities available to the user: current commission plans and possible next commission plans.
| name | type | description | constraints |
|---|---|---|---|
| correlation-id | header | Request identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. |
| media type | data type | description |
|---|---|---|
| application/json | array of ActiveCommissionPlansDto | Class that contains current user’s commission plan for the security with the possible next plans. |
Request:
SEND
correlation-id:anjmeuxm55
destination:/app/v2/securities/commission_plans/active/all
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
Response:
MESSAGE
status:200
correlation-id:anjmeuxm55
destination:/user/v1/responses
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
[ {
"security_id" : "...",
"current" : {
"average_balance" : "123.4",
"total_volume" : "123.4",
"invited_users_count" : 12345,
"buyer_taker_commission_flat" : "123.4",
"buyer_taker_commission_progressive" : "123.4",
"seller_taker_commission_flat" : "123.4",
"seller_taker_commission_progressive" : "123.4",
"buyer_maker_commission_flat" : "123.4",
"buyer_maker_commission_progressive" : "123.4",
"seller_maker_commission_flat" : "123.4",
"seller_maker_commission_progressive" : "123.4"
},
"next" : {
"average_balance" : "123.4",
"total_volume" : "123.4",
"invited_users_count" : 12345,
"buyer_taker_commission_flat" : "123.4",
"buyer_taker_commission_progressive" : "123.4",
"seller_taker_commission_flat" : "123.4",
"seller_taker_commission_progressive" : "123.4",
"buyer_maker_commission_flat" : "123.4",
"buyer_maker_commission_progressive" : "123.4",
"seller_maker_commission_flat" : "123.4",
"seller_maker_commission_progressive" : "123.4"
},
"next_by_volume" : {
"average_balance" : "123.4",
"total_volume" : "123.4",
"invited_users_count" : 12345,
"buyer_taker_commission_flat" : "123.4",
"buyer_taker_commission_progressive" : "123.4",
"seller_taker_commission_flat" : "123.4",
"seller_taker_commission_progressive" : "123.4",
"buyer_maker_commission_flat" : "123.4",
"buyer_maker_commission_progressive" : "123.4",
"seller_maker_commission_flat" : "123.4",
"seller_maker_commission_progressive" : "123.4"
},
"next_by_balance" : {
"average_balance" : "123.4",
"total_volume" : "123.4",
"invited_users_count" : 12345,
"buyer_taker_commission_flat" : "123.4",
"buyer_taker_commission_progressive" : "123.4",
"seller_taker_commission_flat" : "123.4",
"seller_taker_commission_progressive" : "123.4",
"buyer_maker_commission_flat" : "123.4",
"buyer_maker_commission_progressive" : "123.4",
"seller_maker_commission_flat" : "123.4",
"seller_maker_commission_progressive" : "123.4"
},
"next_by_invited_users_count" : {
"average_balance" : "123.4",
"total_volume" : "123.4",
"invited_users_count" : 12345,
"buyer_taker_commission_flat" : "123.4",
"buyer_taker_commission_progressive" : "123.4",
"seller_taker_commission_flat" : "123.4",
"seller_taker_commission_progressive" : "123.4",
"buyer_maker_commission_flat" : "123.4",
"buyer_maker_commission_progressive" : "123.4",
"seller_maker_commission_flat" : "123.4",
"seller_maker_commission_progressive" : "123.4"
}
}, {
"security_id" : "...",
"current" : {
"average_balance" : "123.4",
"total_volume" : "123.4",
"invited_users_count" : 12345,
"buyer_taker_commission_flat" : "123.4",
"buyer_taker_commission_progressive" : "123.4",
"seller_taker_commission_flat" : "123.4",
"seller_taker_commission_progressive" : "123.4",
"buyer_maker_commission_flat" : "123.4",
"buyer_maker_commission_progressive" : "123.4",
"seller_maker_commission_flat" : "123.4",
"seller_maker_commission_progressive" : "123.4"
},
"next" : {
"average_balance" : "123.4",
"total_volume" : "123.4",
"invited_users_count" : 12345,
"buyer_taker_commission_flat" : "123.4",
"buyer_taker_commission_progressive" : "123.4",
"seller_taker_commission_flat" : "123.4",
"seller_taker_commission_progressive" : "123.4",
"buyer_maker_commission_flat" : "123.4",
"buyer_maker_commission_progressive" : "123.4",
"seller_maker_commission_flat" : "123.4",
"seller_maker_commission_progressive" : "123.4"
},
"next_by_volume" : {
"average_balance" : "123.4",
"total_volume" : "123.4",
"invited_users_count" : 12345,
"buyer_taker_commission_flat" : "123.4",
"buyer_taker_commission_progressive" : "123.4",
"seller_taker_commission_flat" : "123.4",
"seller_taker_commission_progressive" : "123.4",
"buyer_maker_commission_flat" : "123.4",
"buyer_maker_commission_progressive" : "123.4",
"seller_maker_commission_flat" : "123.4",
"seller_maker_commission_progressive" : "123.4"
},
"next_by_balance" : {
"average_balance" : "123.4",
"total_volume" : "123.4",
"invited_users_count" : 12345,
"buyer_taker_commission_flat" : "123.4",
"buyer_taker_commission_progressive" : "123.4",
"seller_taker_commission_flat" : "123.4",
"seller_taker_commission_progressive" : "123.4",
"buyer_maker_commission_flat" : "123.4",
"buyer_maker_commission_progressive" : "123.4",
"seller_maker_commission_flat" : "123.4",
"seller_maker_commission_progressive" : "123.4"
},
"next_by_invited_users_count" : {
"average_balance" : "123.4",
"total_volume" : "123.4",
"invited_users_count" : 12345,
"buyer_taker_commission_flat" : "123.4",
"buyer_taker_commission_progressive" : "123.4",
"seller_taker_commission_flat" : "123.4",
"seller_taker_commission_progressive" : "123.4",
"buyer_maker_commission_flat" : "123.4",
"buyer_maker_commission_progressive" : "123.4",
"seller_maker_commission_flat" : "123.4",
"seller_maker_commission_progressive" : "123.4"
}
} ]
Returns active commission plans of the user for the specified security: current commission plan and possible next commission plans. This is the preferred way.
| name | type | description | constraints |
|---|---|---|---|
| correlation-id | header | Request identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. | |
| X-Deltix-Security-Id | header | Instrument | required |
| media type | data type | description |
|---|---|---|
| application/json | ActiveCommissionPlansDto | Class that contains current user’s commission plan for the security with the possible next plans. |
Request:
SEND
correlation-id:anjmeuxm55
destination:/app/v2/securities/commission_plans/active
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
X-Deltix-Security-Id:BTCUSD
Response:
MESSAGE
status:200
correlation-id:anjmeuxm55
destination:/user/v1/responses
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
X-Deltix-Security-Id:BTCUSD
{
"security_id" : "...",
"current" : {
"average_balance" : "123.4",
"total_volume" : "123.4",
"invited_users_count" : 12345,
"buyer_taker_commission_flat" : "123.4",
"buyer_taker_commission_progressive" : "123.4",
"seller_taker_commission_flat" : "123.4",
"seller_taker_commission_progressive" : "123.4",
"buyer_maker_commission_flat" : "123.4",
"buyer_maker_commission_progressive" : "123.4",
"seller_maker_commission_flat" : "123.4",
"seller_maker_commission_progressive" : "123.4"
},
"next" : {
"average_balance" : "123.4",
"total_volume" : "123.4",
"invited_users_count" : 12345,
"buyer_taker_commission_flat" : "123.4",
"buyer_taker_commission_progressive" : "123.4",
"seller_taker_commission_flat" : "123.4",
"seller_taker_commission_progressive" : "123.4",
"buyer_maker_commission_flat" : "123.4",
"buyer_maker_commission_progressive" : "123.4",
"seller_maker_commission_flat" : "123.4",
"seller_maker_commission_progressive" : "123.4"
},
"next_by_volume" : {
"average_balance" : "123.4",
"total_volume" : "123.4",
"invited_users_count" : 12345,
"buyer_taker_commission_flat" : "123.4",
"buyer_taker_commission_progressive" : "123.4",
"seller_taker_commission_flat" : "123.4",
"seller_taker_commission_progressive" : "123.4",
"buyer_maker_commission_flat" : "123.4",
"buyer_maker_commission_progressive" : "123.4",
"seller_maker_commission_flat" : "123.4",
"seller_maker_commission_progressive" : "123.4"
},
"next_by_balance" : {
"average_balance" : "123.4",
"total_volume" : "123.4",
"invited_users_count" : 12345,
"buyer_taker_commission_flat" : "123.4",
"buyer_taker_commission_progressive" : "123.4",
"seller_taker_commission_flat" : "123.4",
"seller_taker_commission_progressive" : "123.4",
"buyer_maker_commission_flat" : "123.4",
"buyer_maker_commission_progressive" : "123.4",
"seller_maker_commission_flat" : "123.4",
"seller_maker_commission_progressive" : "123.4"
},
"next_by_invited_users_count" : {
"average_balance" : "123.4",
"total_volume" : "123.4",
"invited_users_count" : 12345,
"buyer_taker_commission_flat" : "123.4",
"buyer_taker_commission_progressive" : "123.4",
"seller_taker_commission_flat" : "123.4",
"seller_taker_commission_progressive" : "123.4",
"buyer_maker_commission_flat" : "123.4",
"buyer_maker_commission_progressive" : "123.4",
"seller_maker_commission_flat" : "123.4",
"seller_maker_commission_progressive" : "123.4"
}
}
Returns active commission plans of the user for the specified
security: current commission plan and possible next commission
plans. Deprecated. Use
/app/v2/securities/commission_plans/active instead.
| name | type | description | constraints |
|---|---|---|---|
| correlation-id | header | Request identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. | |
| security_id | path | Instrument | required |
| media type | data type | description |
|---|---|---|
| application/json | ActiveCommissionPlansDto | Class that contains current user’s commission plan for the security with the possible next plans. |
Request:
SEND
correlation-id:anjmeuxm55
destination:/app/v2/securities/BTCUSD/commission_plans/active
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
Response:
MESSAGE
status:200
correlation-id:anjmeuxm55
destination:/user/v1/responses
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
{
"security_id" : "...",
"current" : {
"average_balance" : "123.4",
"total_volume" : "123.4",
"invited_users_count" : 12345,
"buyer_taker_commission_flat" : "123.4",
"buyer_taker_commission_progressive" : "123.4",
"seller_taker_commission_flat" : "123.4",
"seller_taker_commission_progressive" : "123.4",
"buyer_maker_commission_flat" : "123.4",
"buyer_maker_commission_progressive" : "123.4",
"seller_maker_commission_flat" : "123.4",
"seller_maker_commission_progressive" : "123.4"
},
"next" : {
"average_balance" : "123.4",
"total_volume" : "123.4",
"invited_users_count" : 12345,
"buyer_taker_commission_flat" : "123.4",
"buyer_taker_commission_progressive" : "123.4",
"seller_taker_commission_flat" : "123.4",
"seller_taker_commission_progressive" : "123.4",
"buyer_maker_commission_flat" : "123.4",
"buyer_maker_commission_progressive" : "123.4",
"seller_maker_commission_flat" : "123.4",
"seller_maker_commission_progressive" : "123.4"
},
"next_by_volume" : {
"average_balance" : "123.4",
"total_volume" : "123.4",
"invited_users_count" : 12345,
"buyer_taker_commission_flat" : "123.4",
"buyer_taker_commission_progressive" : "123.4",
"seller_taker_commission_flat" : "123.4",
"seller_taker_commission_progressive" : "123.4",
"buyer_maker_commission_flat" : "123.4",
"buyer_maker_commission_progressive" : "123.4",
"seller_maker_commission_flat" : "123.4",
"seller_maker_commission_progressive" : "123.4"
},
"next_by_balance" : {
"average_balance" : "123.4",
"total_volume" : "123.4",
"invited_users_count" : 12345,
"buyer_taker_commission_flat" : "123.4",
"buyer_taker_commission_progressive" : "123.4",
"seller_taker_commission_flat" : "123.4",
"seller_taker_commission_progressive" : "123.4",
"buyer_maker_commission_flat" : "123.4",
"buyer_maker_commission_progressive" : "123.4",
"seller_maker_commission_flat" : "123.4",
"seller_maker_commission_progressive" : "123.4"
},
"next_by_invited_users_count" : {
"average_balance" : "123.4",
"total_volume" : "123.4",
"invited_users_count" : 12345,
"buyer_taker_commission_flat" : "123.4",
"buyer_taker_commission_progressive" : "123.4",
"seller_taker_commission_flat" : "123.4",
"seller_taker_commission_progressive" : "123.4",
"buyer_maker_commission_flat" : "123.4",
"buyer_maker_commission_progressive" : "123.4",
"seller_maker_commission_flat" : "123.4",
"seller_maker_commission_progressive" : "123.4"
}
}
Returns current trading session for a specific security, if present.
| name | type | description | constraints |
|---|---|---|---|
| correlation-id | header | Request identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. | |
| X-Deltix-Security-Id | header | Instrument | required |
| media type | data type | description |
|---|---|---|
| application/json | TradingSessionDto | Class that defines a trading session. |
Request:
SEND
correlation-id:anjmeuxm55
destination:/app/v2/securities/session
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
X-Deltix-Security-Id:BTCUSD
Response:
MESSAGE
status:200
correlation-id:anjmeuxm55
destination:/user/v1/responses
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
X-Deltix-Security-Id:BTCUSD
{
"calendar_id" : "...",
"pre_open" : 12345,
"start" : 12345,
"end" : 12345,
"current_status" : "non_trading"
}
Returns status for a specific security.
| name | type | description | constraints |
|---|---|---|---|
| correlation-id | header | Request identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. | |
| X-Deltix-Security-Id | header | Instrument | required |
| media type | data type | description |
|---|---|---|
| application/json | SecurityStatusDto | Class that defines current security status. |
Request:
SEND
correlation-id:anjmeuxm55
destination:/app/v2/securities/status
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
X-Deltix-Security-Id:BTCUSD
Response:
MESSAGE
status:200
correlation-id:anjmeuxm55
destination:/user/v1/responses
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
X-Deltix-Security-Id:BTCUSD
{
"session_status" : "non_trading"
}
Subscription for security changes. First snapshot will contain all securities available to the user. The following snapshots will only contain the securities that have changed since the last time.
| name | type | description | constraints |
|---|---|---|---|
| id | header | Subscription identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. |
| media type | data type | description |
|---|---|---|
| application/json | array of SecurityV2ActionDto |
Subscribe:
SUBSCRIBE
id:sub-0
destination:/user/v2/securities
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
Unsubscribe:
UNSUBSCRIBE
id:sub-0
Message:
MESSAGE
status:200
destination:/user/v2/securities
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
[ {
"id" : "...",
"action" : "delete",
"security" : {
"id" : "...",
"calendar_id" : "...",
"name" : "...",
"security_type" : "simple_option",
"type" : "...",
"tick" : "123.4",
"mul" : "123.4",
"base" : "...",
"term" : "...",
"trade_curr" : "term",
"p_prec" : 12345,
"q_prec" : 12345,
"display" : "fractions",
"pips" : [ 12345, 12345 ],
"fract" : [ 12345, 12345 ],
"o_types" : [ "...", "..." ],
"lo_types" : [ "...", "..." ],
"tif" : [ "gtc", "gtc" ],
"tif_def" : "day",
"m_tif" : [ "at_the_close", "ioc" ],
"m_tif_def" : "fok",
"po_tif" : [ "day", "good_till_crossing" ],
"po_tif_def" : "good_till_crossing",
"qty" : [ "123.4", "123.4" ],
"price" : [ "123.4", "123.4" ],
"show_exch" : false,
"adjust_book" : true,
"explain" : "commission",
"book_exch" : [ "...", "..." ],
"trade_exch" : [ "...", "..." ],
"dest" : [ "...", "..." ],
"dest_def" : "...",
"o_ttl" : 12345,
"pb_acc" : [ "...", "..." ],
"is_rfq" : true,
"custom" : "...",
"custom2" : "...",
"time" : 12345
}
}, {
"id" : "...",
"action" : "insert",
"security" : {
"id" : "...",
"calendar_id" : "...",
"name" : "...",
"security_type" : "futures",
"type" : "...",
"tick" : "123.4",
"mul" : "123.4",
"base" : "...",
"term" : "...",
"trade_curr" : "base",
"p_prec" : 12345,
"q_prec" : 12345,
"display" : "fractions",
"pips" : [ 12345, 12345 ],
"fract" : [ 12345, 12345 ],
"o_types" : [ "...", "..." ],
"lo_types" : [ "...", "..." ],
"tif" : [ "good_till_crossing", "good_till_crossing" ],
"tif_def" : "gtd",
"m_tif" : [ "at_the_opening", "gtd" ],
"m_tif_def" : "good_till_crossing",
"po_tif" : [ "at_the_opening", "at_the_close" ],
"po_tif_def" : "ioc",
"qty" : [ "123.4", "123.4" ],
"price" : [ "123.4", "123.4" ],
"show_exch" : true,
"adjust_book" : true,
"explain" : "price",
"book_exch" : [ "...", "..." ],
"trade_exch" : [ "...", "..." ],
"dest" : [ "...", "..." ],
"dest_def" : "...",
"o_ttl" : 12345,
"pb_acc" : [ "...", "..." ],
"is_rfq" : false,
"custom" : "...",
"custom2" : "...",
"time" : 12345
}
} ]
Subscription for security status changes. First message will return current security status.
| name | type | description | constraints |
|---|---|---|---|
| id | header | Subscription identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. | |
| X-Deltix-Security-Id | header | Instrument | required |
| media type | data type | description |
|---|---|---|
| application/json | array of SecurityStatusDto | Class that defines current security status. |
Subscribe:
SUBSCRIBE
id:sub-0
destination:/user/v2/securities/status
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
X-Deltix-Security-Id:BTCUSD
Unsubscribe:
UNSUBSCRIBE
id:sub-0
X-Deltix-Security-Id:BTCUSD
Message:
MESSAGE
status:200
destination:/user/v2/securities/status
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
X-Deltix-Security-Id:BTCUSD
[ {
"session_status" : "non_trading"
}, {
"session_status" : "pre_trading"
} ]
Subscription for staking changes.
| name | type | description | constraints |
|---|---|---|---|
| id | header | Subscription identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. |
| media type | data type | description |
|---|---|---|
| application/json | StakingDto | Class that defines a staking. |
Subscribe:
SUBSCRIBE
id:sub-0
destination:/user/v1/staking
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
Unsubscribe:
UNSUBSCRIBE
id:sub-0
Message:
MESSAGE
status:200
destination:/user/v1/staking
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
{
"id" : "...",
"staking_plan_id" : "...",
"currency" : "...",
"account_id" : "...",
"period_ms" : 12345,
"bonding_period" : 12345,
"unbonding_period" : 12345,
"safe_period" : 12345,
"annual_interest" : "123.4",
"fee" : "123.4",
"standard_cancellation_return" : "123.4",
"instant_cancellation_return" : "123.4",
"infinite" : true,
"returnable" : false,
"partially_returnable" : false,
"auto_stake" : false,
"stake_more" : true,
"minimum_amount" : "123.4",
"description" : "...",
"amount" : "123.4",
"start_time" : 12345,
"end_time" : 12345,
"gainings" : "123.4",
"cumulative_gainings" : "123.4",
"fee_amount" : "123.4",
"cumulative_fee_amount" : "123.4",
"is_unbonding" : false,
"cancellation_type" : "standard",
"reason" : "...",
"status" : "cancelled",
"creation_time" : 12345,
"modification_time" : 12345
}
Returns global application settings.
| name | type | description | constraints |
|---|---|---|---|
| correlation-id | header | Request identifier. | required |
| destination | header | Destination path. | required |
| media type | data type | description |
|---|---|---|
| application/json | GlobalSettingsDto | Class that defines global application settings. |
Request:
SEND
correlation-id:anjmeuxm55
destination:/app/v1/global/settings
Response:
MESSAGE
status:200
correlation-id:anjmeuxm55
destination:/user/v1/responses
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
{
"auth_settings" : {
"provider" : "...",
"discovery_url" : "...",
"client_id" : "...",
"audience" : "...",
"scopes" : "..."
},
"keepalive_timeout" : 12345
}
Returns application health status.
| name | type | description | constraints |
|---|---|---|---|
| correlation-id | header | Request identifier. | required |
| destination | header | Destination path. | required |
| media type | data type | description |
|---|---|---|
| application/json | HealthStatusDto | Class that defines a health status of the application. |
Request:
SEND
correlation-id:anjmeuxm55
destination:/app/v1/trader/health
Response:
MESSAGE
status:200
correlation-id:anjmeuxm55
destination:/user/v1/responses
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
{
"timestamp" : 12345,
"application" : "...",
"version" : "...",
"is_alive" : false,
"users" : 12345,
"logins" : 12345
}
Subscribes for retrieving server time. Returns current server time in milliseconds since midnight, January 1, 1970 UTC approximately once per second.
| name | type | description | constraints |
|---|---|---|---|
| id | header | Subscription identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| media type | data type | description |
|---|---|---|
| application/json | number |
Subscribe:
SUBSCRIBE
id:sub-0
destination:/user/v1/time
X-Deltix-Nonce:12345
Unsubscribe:
UNSUBSCRIBE
id:sub-0
Message:
MESSAGE
status:200
destination:/user/v1/time
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
12345
Subscription for current trading statistics. Returns statistics on each update for the current period.
| name | type | description | constraints |
|---|---|---|---|
| id | header | Subscription identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. |
| media type | data type | description |
|---|---|---|
| application/json | CurrentTradingStatisticsDto | Class that defines trading statistics for current period for specified user. |
Subscribe:
SUBSCRIBE
id:sub-0
destination:/user/v1/current-trading-statistics
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
Unsubscribe:
UNSUBSCRIBE
id:sub-0
Message:
MESSAGE
status:200
destination:/user/v1/current-trading-statistics
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
{
"current_volume" : "123.4",
"current_average_balance" : "123.4",
"current_invited_users_count" : 12345,
"current_trading_commission" : "123.4",
"statistics_time" : 12345
}
Subscription for active orders updates. Returns all user active orders on subscription. After that sends order updates.
| name | type | description | constraints |
|---|---|---|---|
| id | header | Subscription identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. |
| media type | data type | description |
|---|---|---|
| application/json | OrderUpdateDto | Represents update for the order with the list of events, that has changed it from the previous state. |
Subscribe:
SUBSCRIBE
id:sub-0
destination:/user/v1/orders
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
Unsubscribe:
UNSUBSCRIBE
id:sub-0
Message:
MESSAGE
status:200
destination:/user/v1/orders
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
{
"order" : {
"client_order_id" : "...",
"security_id" : "...",
"quote_id" : "...",
"type" : "...",
"side" : "sell",
"quantity" : "123.4",
"time_in_force" : "at_the_close",
"limit_price" : "123.4",
"stop_price" : "123.4",
"peg_difference" : "123.4",
"min_quantity" : "123.4",
"display_quantity" : "123.4",
"leverage" : "123.4",
"expire_time" : 12345,
"submission_time" : 12345,
"destination" : "...",
"exchange_id" : "...",
"source" : "...",
"currency" : "...",
"text" : "...",
"properties" : [ {
"key" : "...",
"value" : "..."
}, {
"key" : "...",
"value" : "..."
} ],
"id" : "...",
"correlation_id" : "...",
"timestamp" : 12345,
"status" : "replaced",
"trader_name" : "...",
"product_type" : "spot",
"cumulative_quantity" : "123.4",
"remaining_quantity" : "123.4",
"average_price" : "123.4",
"receipt_time" : 12345,
"close_time" : 12345,
"last_timestamp" : 12345,
"last_trade_price" : "123.4",
"counterparty_code" : "...",
"settlement_date" : 12345,
"reason" : "..."
},
"events" : [ {
"id" : "...",
"event_id" : "...",
"type" : "trade",
"sequence_number" : 12345,
"timestamp" : 12345,
"reason" : "...",
"client_order_id" : "...",
"security_id" : "...",
"order_type" : "...",
"order_side" : "sell",
"quantity" : "123.4",
"time_in_force" : "good_till_crossing",
"limit_price" : "123.4",
"stop_price" : "123.4",
"average_price" : "123.4",
"leverage" : "123.4",
"expire_time" : 12345,
"destination" : "...",
"currency" : "...",
"exchange_id" : "...",
"text" : "...",
"properties" : [ {
"key" : "...",
"value" : "..."
}, {
"key" : "...",
"value" : "..."
} ],
"order_id" : "...",
"order_status" : "pending_replace",
"cumulative_quantity" : "123.4",
"remaining_quantity" : "123.4",
"original_client_order_id" : "...",
"trade_quantity" : "123.4",
"trade_price" : "123.4",
"is_agressor" : true,
"commission" : "123.4",
"commission_currency" : "..."
} ]
}
Subscription for active deals (positions) updates.
| name | type | description | constraints |
|---|---|---|---|
| id | header | Subscription identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. |
| media type | data type | description |
|---|---|---|
| application/json | DealDto | Represents a user’s deal (position). |
Subscribe:
SUBSCRIBE
id:sub-0
destination:/user/v1/deals
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
Unsubscribe:
UNSUBSCRIBE
id:sub-0
Message:
MESSAGE
status:200
destination:/user/v1/deals
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
{
"id" : "...",
"security_id" : "...",
"side" : "short",
"quantity" : "123.4",
"open_quantity_in_abc" : "123.4",
"open_quantity_in_urc" : "123.4",
"good_till_date" : 12345,
"sequence_number" : 12345,
"open_order_id" : "...",
"open_price" : "123.4",
"open_time" : 12345,
"open_reason" : "...",
"rollover_commission" : "123.4",
"trading_commission" : "123.4",
"unrealized_pnl" : "123.4",
"realized_pnl" : "123.4",
"margin_used" : "123.4",
"leverage" : "123.4",
"liquidation_price" : "123.4",
"take_profit_price" : "123.4"
}
Creates an order for the specified user.
| name | type | description | constraints |
|---|---|---|---|
| correlation-id | header | Request identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. |
| media type | data type | description |
|---|---|---|
| application/json | NewOrderDto | Represents request for creating or modifying order. |
| media type | data type | description |
|---|---|---|
| application/json | OrderDto | Represents user’s order as returned by the API. |
Request:
SEND
correlation-id:anjmeuxm55
destination:/app/v1/orders/create
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
{
"client_order_id" : "...",
"security_id" : "...",
"quote_id" : "...",
"type" : "...",
"side" : "sell",
"quantity" : "123.4",
"time_in_force" : "gtc",
"limit_price" : "123.4",
"stop_price" : "123.4",
"peg_difference" : "123.4",
"min_quantity" : "123.4",
"display_quantity" : "123.4",
"leverage" : "123.4",
"expire_time" : 12345,
"submission_time" : 12345,
"destination" : "...",
"exchange_id" : "...",
"source" : "...",
"currency" : "...",
"text" : "...",
"properties" : [ {
"key" : "...",
"value" : "..."
}, {
"key" : "...",
"value" : "..."
} ]
}
Response:
MESSAGE
status:200
correlation-id:anjmeuxm55
destination:/user/v1/responses
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
{
"client_order_id" : "...",
"security_id" : "...",
"quote_id" : "...",
"type" : "...",
"side" : "buy",
"quantity" : "123.4",
"time_in_force" : "day",
"limit_price" : "123.4",
"stop_price" : "123.4",
"peg_difference" : "123.4",
"min_quantity" : "123.4",
"display_quantity" : "123.4",
"leverage" : "123.4",
"expire_time" : 12345,
"submission_time" : 12345,
"destination" : "...",
"exchange_id" : "...",
"source" : "...",
"currency" : "...",
"text" : "...",
"properties" : [ {
"key" : "...",
"value" : "..."
}, {
"key" : "...",
"value" : "..."
} ],
"id" : "...",
"correlation_id" : "...",
"timestamp" : 12345,
"status" : "pending_new",
"trader_name" : "...",
"product_type" : "spot",
"cumulative_quantity" : "123.4",
"remaining_quantity" : "123.4",
"average_price" : "123.4",
"receipt_time" : 12345,
"close_time" : 12345,
"last_timestamp" : 12345,
"last_trade_price" : "123.4",
"counterparty_code" : "...",
"settlement_date" : 12345,
"reason" : "..."
}
Modifies an order for the specified user.
| name | type | description | constraints |
|---|---|---|---|
| correlation-id | header | Request identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. | |
| X-Deltix-Order-ID | header | Order identifier. | required |
| media type | data type | description |
|---|---|---|
| application/json | NewOrderDto | Represents request for creating or modifying order. |
| media type | data type | description |
|---|---|---|
| application/json | OrderDto | Represents user’s order as returned by the API. |
Request:
SEND
correlation-id:anjmeuxm55
destination:/app/v1/orders/modify
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
X-Deltix-Order-ID:01234567-8910-1112-1314-151617181920
{
"client_order_id" : "...",
"security_id" : "...",
"quote_id" : "...",
"type" : "...",
"side" : "buy",
"quantity" : "123.4",
"time_in_force" : "at_the_opening",
"limit_price" : "123.4",
"stop_price" : "123.4",
"peg_difference" : "123.4",
"min_quantity" : "123.4",
"display_quantity" : "123.4",
"leverage" : "123.4",
"expire_time" : 12345,
"submission_time" : 12345,
"destination" : "...",
"exchange_id" : "...",
"source" : "...",
"currency" : "...",
"text" : "...",
"properties" : [ {
"key" : "...",
"value" : "..."
}, {
"key" : "...",
"value" : "..."
} ]
}
Response:
MESSAGE
status:200
correlation-id:anjmeuxm55
destination:/user/v1/responses
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
{
"client_order_id" : "...",
"security_id" : "...",
"quote_id" : "...",
"type" : "...",
"side" : "sell",
"quantity" : "123.4",
"time_in_force" : "ioc",
"limit_price" : "123.4",
"stop_price" : "123.4",
"peg_difference" : "123.4",
"min_quantity" : "123.4",
"display_quantity" : "123.4",
"leverage" : "123.4",
"expire_time" : 12345,
"submission_time" : 12345,
"destination" : "...",
"exchange_id" : "...",
"source" : "...",
"currency" : "...",
"text" : "...",
"properties" : [ {
"key" : "...",
"value" : "..."
}, {
"key" : "...",
"value" : "..."
} ],
"id" : "...",
"correlation_id" : "...",
"timestamp" : 12345,
"status" : "new",
"trader_name" : "...",
"product_type" : "pre_spot",
"cumulative_quantity" : "123.4",
"remaining_quantity" : "123.4",
"average_price" : "123.4",
"receipt_time" : 12345,
"close_time" : 12345,
"last_timestamp" : 12345,
"last_trade_price" : "123.4",
"counterparty_code" : "...",
"settlement_date" : 12345,
"reason" : "..."
}
Cancels active order by id or by client id. One of
X-Deltix-Order-ID or
X-Deltix-Client-Order-ID must be specified.
| name | type | description | constraints |
|---|---|---|---|
| correlation-id | header | Request identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. | |
| X-Deltix-Order-ID | header | Order identifier. | |
| X-Deltix-Client-Order-ID | header | Order identifier, defined by client. | |
| X-Deltix-Source | header | Source from where the order cancellation was sent. Must be alphanumeric-encodable. If missing, default source will be used. |
| media type | data type | description |
|---|---|---|
| application/json | OrderDto | Represents user’s order as returned by the API. |
Request:
SEND
correlation-id:anjmeuxm55
destination:/app/v1/orders/cancel
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
Response:
MESSAGE
status:200
correlation-id:anjmeuxm55
destination:/user/v1/responses
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
{
"client_order_id" : "...",
"security_id" : "...",
"quote_id" : "...",
"type" : "...",
"side" : "sell",
"quantity" : "123.4",
"time_in_force" : "good_till_crossing",
"limit_price" : "123.4",
"stop_price" : "123.4",
"peg_difference" : "123.4",
"min_quantity" : "123.4",
"display_quantity" : "123.4",
"leverage" : "123.4",
"expire_time" : 12345,
"submission_time" : 12345,
"destination" : "...",
"exchange_id" : "...",
"source" : "...",
"currency" : "...",
"text" : "...",
"properties" : [ {
"key" : "...",
"value" : "..."
}, {
"key" : "...",
"value" : "..."
} ],
"id" : "...",
"correlation_id" : "...",
"timestamp" : 12345,
"status" : "suspended",
"trader_name" : "...",
"product_type" : "pre_spot",
"cumulative_quantity" : "123.4",
"remaining_quantity" : "123.4",
"average_price" : "123.4",
"receipt_time" : 12345,
"close_time" : 12345,
"last_timestamp" : 12345,
"last_trade_price" : "123.4",
"counterparty_code" : "...",
"settlement_date" : 12345,
"reason" : "..."
}
Returns a batch of order events starting from the time specified
ordered by
OrderEventDto.timestamp.
The last returned event is guarantied to be the last event with its
timestamp. In order to receive events starting from the next
sequential event, you need to set startTime parameter
to last event timestamp increased by 1 ms in case of direct order,
or last event timestamp decreased by 1 ms in case of reversed order.
| name | type | description | constraints |
|---|---|---|---|
| correlation-id | header | Request identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. |
| media type | data type | description |
|---|---|---|
| application/json | OrderEventsRequestDto | Represents request for getting user’s order events. |
| media type | data type | description |
|---|---|---|
| application/json | array of OrderEventDto | Represents events related to the order like order creation, changing, execution, cancellation etc. |
Request:
SEND
correlation-id:anjmeuxm55
destination:/app/v1/orders/events
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
{
"start_time" : 12345,
"reversed" : true,
"current_session" : false,
"skip_replaced" : false,
"count" : 12345
}
Response:
MESSAGE
status:200
correlation-id:anjmeuxm55
destination:/user/v1/responses
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
[ {
"id" : "...",
"event_id" : "...",
"type" : "cancel",
"sequence_number" : 12345,
"timestamp" : 12345,
"reason" : "...",
"client_order_id" : "...",
"security_id" : "...",
"order_type" : "...",
"order_side" : "buy",
"quantity" : "123.4",
"time_in_force" : "day",
"limit_price" : "123.4",
"stop_price" : "123.4",
"average_price" : "123.4",
"leverage" : "123.4",
"expire_time" : 12345,
"destination" : "...",
"currency" : "...",
"exchange_id" : "...",
"text" : "...",
"properties" : [ {
"key" : "...",
"value" : "..."
}, {
"key" : "...",
"value" : "..."
} ],
"order_id" : "...",
"order_status" : "completely_filled",
"cumulative_quantity" : "123.4",
"remaining_quantity" : "123.4",
"original_client_order_id" : "...",
"trade_quantity" : "123.4",
"trade_price" : "123.4",
"is_agressor" : false,
"commission" : "123.4",
"commission_currency" : "..."
} ]
Returns a batch of closed order starting from the time specified
ordered by
OrderDto.timestamp and
filtered by it. The last returned event is guarantied to be the last
event with its timestamp. In order to receive events starting from
the next sequential event, you need to set
startTime parameter to last event timestamp increased
by 1 ms in case of direct order, or last event timestamp decreased
by 1 ms in case of reversed order.
| name | type | description | constraints |
|---|---|---|---|
| correlation-id | header | Request identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. |
| media type | data type | description |
|---|---|---|
| application/json | OrderEventsRequestDto | Represents request for getting user’s order events. |
| media type | data type | description |
|---|---|---|
| application/json | array of OrderDto | Represents user’s order as returned by the API. |
Request:
SEND
correlation-id:anjmeuxm55
destination:/app/v1/orders/history
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
{
"start_time" : 12345,
"reversed" : true,
"current_session" : true,
"skip_replaced" : true,
"count" : 12345
}
Response:
MESSAGE
status:200
correlation-id:anjmeuxm55
destination:/user/v1/responses
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
[ {
"client_order_id" : "...",
"security_id" : "...",
"quote_id" : "...",
"type" : "...",
"side" : "buy",
"quantity" : "123.4",
"time_in_force" : "gtc",
"limit_price" : "123.4",
"stop_price" : "123.4",
"peg_difference" : "123.4",
"min_quantity" : "123.4",
"display_quantity" : "123.4",
"leverage" : "123.4",
"expire_time" : 12345,
"submission_time" : 12345,
"destination" : "...",
"exchange_id" : "...",
"source" : "...",
"currency" : "...",
"text" : "...",
"properties" : [ {
"key" : "...",
"value" : "..."
}, {
"key" : "...",
"value" : "..."
} ],
"id" : "...",
"correlation_id" : "...",
"timestamp" : 12345,
"status" : "completely_filled",
"trader_name" : "...",
"product_type" : "spot",
"cumulative_quantity" : "123.4",
"remaining_quantity" : "123.4",
"average_price" : "123.4",
"receipt_time" : 12345,
"close_time" : 12345,
"last_timestamp" : 12345,
"last_trade_price" : "123.4",
"counterparty_code" : "...",
"settlement_date" : 12345,
"reason" : "..."
} ]
Modifies a deal for the specified user.
| name | type | description | constraints |
|---|---|---|---|
| correlation-id | header | Request identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. |
| media type | data type | description |
|---|---|---|
| application/json | DealDto | Represents a user’s deal (position). |
| media type | data type | description |
|---|---|---|
| application/json | DealDto | Represents a user’s deal (position). |
Request:
SEND
correlation-id:anjmeuxm55
destination:/app/v1/deals/modify
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
{
"id" : "...",
"security_id" : "...",
"side" : "short",
"quantity" : "123.4",
"open_quantity_in_abc" : "123.4",
"open_quantity_in_urc" : "123.4",
"good_till_date" : 12345,
"sequence_number" : 12345,
"open_order_id" : "...",
"open_price" : "123.4",
"open_time" : 12345,
"open_reason" : "...",
"rollover_commission" : "123.4",
"trading_commission" : "123.4",
"unrealized_pnl" : "123.4",
"realized_pnl" : "123.4",
"margin_used" : "123.4",
"leverage" : "123.4",
"liquidation_price" : "123.4",
"take_profit_price" : "123.4"
}
Response:
MESSAGE
status:200
correlation-id:anjmeuxm55
destination:/user/v1/responses
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
{
"id" : "...",
"security_id" : "...",
"side" : "long",
"quantity" : "123.4",
"open_quantity_in_abc" : "123.4",
"open_quantity_in_urc" : "123.4",
"good_till_date" : 12345,
"sequence_number" : 12345,
"open_order_id" : "...",
"open_price" : "123.4",
"open_time" : 12345,
"open_reason" : "...",
"rollover_commission" : "123.4",
"trading_commission" : "123.4",
"unrealized_pnl" : "123.4",
"realized_pnl" : "123.4",
"margin_used" : "123.4",
"leverage" : "123.4",
"liquidation_price" : "123.4",
"take_profit_price" : "123.4"
}
Returns trading limits and current user’s values, if present.
| name | type | description | constraints |
|---|---|---|---|
| correlation-id | header | Request identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. |
| media type | data type | description |
|---|---|---|
| application/json | TradingLimitsDto | Class that defines trading statistics. |
Request:
SEND
correlation-id:anjmeuxm55
destination:/app/v1/trading/limits
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
Response:
MESSAGE
status:200
correlation-id:anjmeuxm55
destination:/user/v1/responses
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
{
"currency_id" : "...",
"daily_volume_limit" : "123.4",
"weekly_volume_limit" : "123.4",
"monthly_volume_limit" : "123.4",
"yearly_volume_limit" : "123.4",
"daily_volume" : "123.4",
"weekly_volume" : "123.4",
"monthly_volume" : "123.4",
"yearly_volume" : "123.4",
"total_volume" : "123.4"
}
Returns a description shown to the user on order confirmation.
| name | type | description | constraints |
|---|---|---|---|
| correlation-id | header | Request identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. |
| media type | data type | description |
|---|---|---|
| application/json | OrderConfirmationTextRequestDto | Represents request for getting an order confirmation description text. |
| media type | data type | description |
|---|---|---|
| application/json | DescriptionTextDto | Represents a description text. |
Request:
SEND
correlation-id:anjmeuxm55
destination:/app/v1/orders/confirmation/description
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
{
"security_id" : "...",
"side" : "..."
}
Response:
MESSAGE
status:200
correlation-id:anjmeuxm55
destination:/user/v1/responses
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
{
"text" : "..."
}
Returns a json schema for orders. Specification: https://tools.ietf.org/html/draft-handrews-json-schema-01
| name | type | description | constraints |
|---|---|---|---|
| correlation-id | header | Request identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. | |
| X-Deltix-Security-Id | header | Instrument identifier. |
| media type | data type | description |
|---|---|---|
| application/json | DescriptionTextDto | Represents a description text. |
Request:
SEND
correlation-id:anjmeuxm55
destination:/app/v1/orders/schema
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
X-Deltix-Security-Id:BTCUSD
Response:
MESSAGE
status:200
correlation-id:anjmeuxm55
destination:/user/v1/responses
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
X-Deltix-Security-Id:BTCUSD
{
"text" : "..."
}
Returns a json schema for modifying orders. Specification: https://tools.ietf.org/html/draft-handrews-json-schema-01
| name | type | description | constraints |
|---|---|---|---|
| correlation-id | header | Request identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. | |
| X-Deltix-Security-Id | header | Instrument identifier. |
| media type | data type | description |
|---|---|---|
| application/json | DescriptionTextDto | Represents a description text. |
Request:
SEND
correlation-id:anjmeuxm55
destination:/app/v1/orders/schema/modify
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
X-Deltix-Security-Id:BTCUSD
Response:
MESSAGE
status:200
correlation-id:anjmeuxm55
destination:/user/v1/responses
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
X-Deltix-Security-Id:BTCUSD
{
"text" : "..."
}
Returns a json schema for pre-open orders. Specification: https://tools.ietf.org/html/draft-handrews-json-schema-01
| name | type | description | constraints |
|---|---|---|---|
| correlation-id | header | Request identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. | |
| X-Deltix-Security-Id | header | Instrument identifier. |
| media type | data type | description |
|---|---|---|
| application/json | DescriptionTextDto | Represents a description text. |
Request:
SEND
correlation-id:anjmeuxm55
destination:/app/v1/orders/schema/pre-open
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
X-Deltix-Security-Id:BTCUSD
Response:
MESSAGE
status:200
correlation-id:anjmeuxm55
destination:/user/v1/responses
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
X-Deltix-Security-Id:BTCUSD
{
"text" : "..."
}
Returns a json schema for modifying pre-open orders. Specification: https://tools.ietf.org/html/draft-handrews-json-schema-01
| name | type | description | constraints |
|---|---|---|---|
| correlation-id | header | Request identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. | |
| X-Deltix-Security-Id | header | Instrument identifier. |
| media type | data type | description |
|---|---|---|
| application/json | DescriptionTextDto | Represents a description text. |
Request:
SEND
correlation-id:anjmeuxm55
destination:/app/v1/orders/schema/pre-open/modify
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
X-Deltix-Security-Id:BTCUSD
Response:
MESSAGE
status:200
correlation-id:anjmeuxm55
destination:/user/v1/responses
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
X-Deltix-Security-Id:BTCUSD
{
"text" : "..."
}
Returns a list of json schemas for linked orders. Specification: https://tools.ietf.org/html/draft-handrews-json-schema-01
| name | type | description | constraints |
|---|---|---|---|
| correlation-id | header | Request identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. | |
| X-Deltix-Security-Id | header | Instrument identifier. |
| media type | data type | description |
|---|---|---|
| application/json | array of LinkedOrderSchemaDto | Represents a linked order schema. |
Request:
SEND
correlation-id:anjmeuxm55
destination:/app/v1/orders/schema/linked
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
X-Deltix-Security-Id:BTCUSD
Response:
MESSAGE
status:200
correlation-id:anjmeuxm55
destination:/user/v1/responses
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
X-Deltix-Security-Id:BTCUSD
[ {
"type" : "...",
"view" : "...",
"send" : "..."
}, {
"type" : "...",
"view" : "...",
"send" : "..."
} ]
Returns a json schema for orders details. Specification: https://tools.ietf.org/html/draft-handrews-json-schema-01
| name | type | description | constraints |
|---|---|---|---|
| correlation-id | header | Request identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. |
| media type | data type | description |
|---|---|---|
| application/json | DescriptionTextDto | Represents a description text. |
Request:
SEND
correlation-id:anjmeuxm55
destination:/app/v1/orders/schema/details
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
Response:
MESSAGE
status:200
correlation-id:anjmeuxm55
destination:/user/v1/responses
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
{
"text" : "..."
}
Returns the list of all trading sessions active for the current moment.
| name | type | description | constraints |
|---|---|---|---|
| correlation-id | header | Request identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. |
| media type | data type | description |
|---|---|---|
| application/json | array of TradingSessionDto | Class that defines a trading session. |
Request:
SEND
correlation-id:anjmeuxm55
destination:/app/v1/trading-sessions
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
Response:
MESSAGE
status:200
correlation-id:anjmeuxm55
destination:/user/v1/responses
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
[ {
"calendar_id" : "...",
"pre_open" : 12345,
"start" : 12345,
"end" : 12345,
"current_status" : "pre_trading"
}, {
"calendar_id" : "...",
"pre_open" : 12345,
"start" : 12345,
"end" : 12345,
"current_status" : "pre_trading"
} ]
Subscription for active orders updates. Returns all user active orders on subscription. After that sends order updates.
| name | type | description | constraints |
|---|---|---|---|
| id | header | Subscription identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. | |
| X-Deltix-From | header | Left border of current trading sessions interval in milliseconds. Must be between 0 and one week. Optional. Default value is 0. | |
| X-Deltix-Till | header | Right border of current trading sessions interval in milliseconds. Must be between 0 and one week. Optional. Default value is 0. |
| media type | data type | description |
|---|---|---|
| application/json | array of TradingSessionDto | Class that defines a trading session. |
Subscribe:
SUBSCRIBE
id:sub-0
destination:/user/v1/trading-sessions
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
Unsubscribe:
UNSUBSCRIBE
id:sub-0
Message:
MESSAGE
status:200
destination:/user/v1/trading-sessions
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
[ {
"calendar_id" : "...",
"pre_open" : 12345,
"start" : 12345,
"end" : 12345,
"current_status" : "trading"
}, {
"calendar_id" : "...",
"pre_open" : 12345,
"start" : 12345,
"end" : 12345,
"current_status" : "non_trading"
} ]
Subscription for transaction-in-progress changes.
| name | type | description | constraints |
|---|---|---|---|
| id | header | Subscription identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. |
| media type | data type | description |
|---|---|---|
| application/json | TransactionDto | Class that defines a transaction. |
Subscribe:
SUBSCRIBE
id:sub-0
destination:/user/v1/transactions
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
Unsubscribe:
UNSUBSCRIBE
id:sub-0
Message:
MESSAGE
status:200
destination:/user/v1/transactions
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
{
"account_id" : "...",
"currency_id" : "...",
"id" : "...",
"type" : "interest_commission",
"amount" : "123.4",
"post_balance" : "123.4",
"status" : "succeeded",
"reason" : "...",
"address" : "...",
"internal_transaction_id" : "...",
"network" : "...",
"transaction_id" : "...",
"confirmations" : 12345,
"confirmations_needed" : 12345,
"external_currency_id" : "...",
"external_conversion_price" : "123.4",
"creation_time" : 12345,
"modification_time" : 12345
}
Gets the list of incomplete user transactions (transfers).
| name | type | description | constraints |
|---|---|---|---|
| correlation-id | header | Request identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. |
| media type | data type | description |
|---|---|---|
| application/json | array of TransactionDto | Class that defines a transaction. |
Request:
SEND
correlation-id:anjmeuxm55
destination:/app/v1/transactions/incomplete
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
Response:
MESSAGE
status:200
correlation-id:anjmeuxm55
destination:/user/v1/responses
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
[ {
"account_id" : "...",
"currency_id" : "...",
"id" : "...",
"type" : "trading_commission",
"amount" : "123.4",
"post_balance" : "123.4",
"status" : "rejected",
"reason" : "...",
"address" : "...",
"internal_transaction_id" : "...",
"network" : "...",
"transaction_id" : "...",
"confirmations" : 12345,
"confirmations_needed" : 12345,
"external_currency_id" : "...",
"external_conversion_price" : "123.4",
"creation_time" : 12345,
"modification_time" : 12345
} ]
Gets a batch of user transfers starting from the specified time.
| name | type | description | constraints |
|---|---|---|---|
| correlation-id | header | Request identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. |
| media type | data type | description |
|---|---|---|
| application/json | HistoricalTransactionRequestDto | Represents a request for the history of transactions. |
| media type | data type | description |
|---|---|---|
| application/json | array of TransactionDto | Class that defines a transaction. |
Request:
SEND
correlation-id:anjmeuxm55
destination:/app/v1/transactions/history
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
{
"start_time" : 12345,
"reversed" : false,
"count" : 12345,
"transaction_types" : [ "withdrawal_reservation", "rollover_commission" ]
}
Response:
MESSAGE
status:200
correlation-id:anjmeuxm55
destination:/user/v1/responses
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
[ {
"account_id" : "...",
"currency_id" : "...",
"id" : "...",
"type" : "withdrawal",
"amount" : "123.4",
"post_balance" : "123.4",
"status" : "succeeded",
"reason" : "...",
"address" : "...",
"internal_transaction_id" : "...",
"network" : "...",
"transaction_id" : "...",
"confirmations" : 12345,
"confirmations_needed" : 12345,
"external_currency_id" : "...",
"external_conversion_price" : "123.4",
"creation_time" : 12345,
"modification_time" : 12345
} ]
Gets a batch of complete user transactions starting from the specified time.
| name | type | description | constraints |
|---|---|---|---|
| correlation-id | header | Request identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. |
| media type | data type | description |
|---|---|---|
| application/json | HistoricalTransactionRequestDto | Represents a request for the history of transactions. |
| media type | data type | description |
|---|---|---|
| application/json | array of TransactionDto | Class that defines a transaction. |
Request:
SEND
correlation-id:anjmeuxm55
destination:/app/v1/transactions/complete
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
{
"start_time" : 12345,
"reversed" : true,
"count" : 12345,
"transaction_types" : [ "interest", "withdrawal" ]
}
Response:
MESSAGE
status:200
correlation-id:anjmeuxm55
destination:/user/v1/responses
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
[ {
"account_id" : "...",
"currency_id" : "...",
"id" : "...",
"type" : "transfer_send",
"amount" : "123.4",
"post_balance" : "123.4",
"status" : "in_progress",
"reason" : "...",
"address" : "...",
"internal_transaction_id" : "...",
"network" : "...",
"transaction_id" : "...",
"confirmations" : 12345,
"confirmations_needed" : 12345,
"external_currency_id" : "...",
"external_conversion_price" : "123.4",
"creation_time" : 12345,
"modification_time" : 12345
} ]
Subscription for transfer-in-progress changes.
| name | type | description | constraints |
|---|---|---|---|
| id | header | Subscription identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. |
| media type | data type | description |
|---|---|---|
| application/json | TransferDto | Class that defines an internal transfer. |
Subscribe:
SUBSCRIBE
id:sub-0
destination:/user/v1/transfers
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
Unsubscribe:
UNSUBSCRIBE
id:sub-0
Message:
MESSAGE
status:200
destination:/user/v1/transfers
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
{
"account_id" : "...",
"currency_id" : "...",
"id" : "...",
"type" : "request_receive",
"amount" : "123.4",
"counterparty_id" : "...",
"status" : "cancelled",
"reason" : "...",
"creation_time" : 12345,
"modification_time" : 12345
}
Request for user settings.
| name | type | description | constraints |
|---|---|---|---|
| correlation-id | header | Request identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. |
| media type | data type | description |
|---|---|---|
| application/json | UserSettingsDto | Class that defines user settings returned by the API. |
Request:
SEND
correlation-id:anjmeuxm55
destination:/app/v1/user/settings/get
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
Response:
MESSAGE
status:200
correlation-id:anjmeuxm55
destination:/user/v1/responses
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
{
"is_using_2fa_for_login" : false,
"is_using_2fa_for_withdrawal" : false,
"is_allow_show_exchange_codes" : false,
"client_user_id" : "...",
"username" : "...",
"measurement_currencies" : [ "...", "..." ],
"trading_statistics_currency" : "...",
"login_2fa_enabled" : false,
"login_2fa_mandatory" : false,
"withdrawal_2fa_enabled" : false,
"withdrawal_2fa_mandatory" : false,
"basic_advanced_switcher_enabled" : true,
"password_for_user_settings_change_required" : true,
"password_for_api_key_change_required" : true,
"withdrawal_address_validation_required" : false,
"user_identifier" : "user_id"
}
Modifies user settings.
| name | type | description | constraints |
|---|---|---|---|
| correlation-id | header | Request identifier. | required |
| destination | header | Destination path. | required |
| X-Deltix-Nonce | header | A number that must increase between requests within one session. Recommended value is timestamp in milliseconds. | required |
| X-Deltix-User | header | A unique identifier of the linked user on behalf of which the request is being sent. Optional. If missing or equal to the identifier of the logged-in user, the request is sent on behalf of the logged-in user itself. |
| media type | data type | description |
|---|---|---|
| application/json | EditUserSettingsDto | Represents request for changing user settings. |
| media type | data type | description |
|---|---|---|
| application/json | UserSettingsDto | Class that defines user settings returned by the API. |
Request:
SEND
correlation-id:anjmeuxm55
destination:/app/v1/user/settings/modify
X-Deltix-Nonce:12345
X-Deltix-User:12345678-9010-1112-1314-151617181920
{
"is_using_2fa_for_login" : false,
"is_using_2fa_for_withdrawal" : false,
"is_allow_show_exchange_codes" : true,
"token" : "..."
}
Response:
MESSAGE
status:200
correlation-id:anjmeuxm55
destination:/user/v1/responses
content-type:application/json;charset=UTF-8
subscription:sub-0
message-id:4e91-586562
content-length:4916
{
"is_using_2fa_for_login" : true,
"is_using_2fa_for_withdrawal" : true,
"is_allow_show_exchange_codes" : true,
"client_user_id" : "...",
"username" : "...",
"measurement_currencies" : [ "...", "..." ],
"trading_statistics_currency" : "...",
"login_2fa_enabled" : true,
"login_2fa_mandatory" : true,
"withdrawal_2fa_enabled" : true,
"withdrawal_2fa_mandatory" : false,
"basic_advanced_switcher_enabled" : false,
"password_for_user_settings_change_required" : false,
"password_for_api_key_change_required" : true,
"withdrawal_address_validation_required" : false,
"user_identifier" : "username"
}
Class that defines a user account.
| name | data type | description |
|---|---|---|
| measurement_currency_id | string | Currency in which all the statistics are recalculated. Optional. If missing - all statistics are nominated in account currency. |
| balance | decimal | Account balance. This is a string containing a decimal floating-point value. |
| available_for_trading | decimal | Free balance, available for trading. This is a string containing a decimal floating-point value. |
| available_for_withdrawal | decimal | Free balance, available for withdrawal. This is a string containing a decimal floating-point value. |
| enter_average_price | decimal | Average price of entering the position. Optional. |
| current_price | decimal | Current price used for converting statistics from account currency to measurement currency. Optional. |
| unrealized_pnl | decimal | Current unrealized profit and loss in measurement currency. Optional. |
| realized_pnl | decimal | Accumulative realized profit and loss in measurement currency. This contains a sum of all realized PnLs calculated from the beginning. Optional. |
| total_statistics | array of TotalStatisticsDto | List of total statistics per transaction type. |
| properties | array of PropertyDto | Account position type-specific fields. Optional. List of supported properties is implementation-specific. |
| name | data type | description |
|---|---|---|
| id | string | Implementation-specific user account identifier. |
| currency_id | string | Account currency. |
| status | AccountStatus | Account status. |
| name | string | Account name. |
DepositWalletAddresses instead. |
||
| withdrawal_wallet_addresses | array of WalletAddressDto | List of saved wallet addresses for withdrawals. Can be empty. |
| deposit_wallet_addresses | array of WalletAddressDto | List of saved wallet addresses for deposits. Can be empty. |
{
"id" : "...",
"currency_id" : "...",
"status" : "active",
"name" : "...",
"withdrawal_wallet_addresses" : [ {
"address" : "...",
"network" : "...",
"status" : "succeeded",
"reason" : "..."
}, {
"address" : "...",
"network" : "...",
"status" : "in_progress",
"reason" : "..."
} ],
"deposit_wallet_addresses" : [ {
"address" : "...",
"network" : "...",
"status" : "failed",
"reason" : "..."
}, {
"address" : "...",
"network" : "...",
"status" : "approved",
"reason" : "..."
} ],
"measurement_currency_id" : "...",
"balance" : "123.4",
"available_for_trading" : "123.4",
"available_for_withdrawal" : "123.4",
"enter_average_price" : "123.4",
"current_price" : "123.4",
"unrealized_pnl" : "123.4",
"realized_pnl" : "123.4",
"total_statistics" : [ {
"type" : "transfer_receive",
"total" : "123.4",
"total_this_day" : "123.4",
"total_this_week" : "123.4",
"total_this_month" : "123.4",
"total_this_year" : "123.4"
}, {
"type" : "rollover_commission",
"total" : "123.4",
"total_this_day" : "123.4",
"total_this_week" : "123.4",
"total_this_month" : "123.4",
"total_this_year" : "123.4"
} ],
"properties" : [ {
"key" : "...",
"value" : "..."
}, {
"key" : "...",
"value" : "..."
} ]
}
Class that defines a user account balance.
| name | data type | description |
|---|---|---|
| account_id | string | Implementation-specific user account identifier. |
| currency_id | string | Account currency. |
| measurement_currency_id | string | Currency in which all the statistics are recalculated. Optional. If missing - all statistics are nominated in account currency. |
| balance | decimal | Account’s balance. |
| available_for_trading | decimal | Free balance, available for trading. |
| available_for_withdrawal | decimal | Free balance, available for withdrawal. |
| enter_average_price | decimal | Average price of entering the position. Optional. |
| current_price | decimal | Current price used for converting statistics from account currency to measurement currency. Optional. |
| unrealized_pnl | decimal | Current unrealized profit and loss in measurement currency. Optional. |
| realized_pnl | decimal | Accumulative realized profit and loss in measurement currency. This contains a sum of all realized PnLs calculated from the beginning. Optional. |
| total_statistics | array of TotalStatisticsDto | List of total statistics per transaction type. |
| properties | array of PropertyDto | Account position type-specific fields. Optional. List of supported properties in implementation-specific. |
{
"account_id" : "...",
"currency_id" : "...",
"measurement_currency_id" : "...",
"balance" : "123.4",
"available_for_trading" : "123.4",
"available_for_withdrawal" : "123.4",
"enter_average_price" : "123.4",
"current_price" : "123.4",
"unrealized_pnl" : "123.4",
"realized_pnl" : "123.4",
"total_statistics" : [ {
"type" : "execution",
"total" : "123.4",
"total_this_day" : "123.4",
"total_this_week" : "123.4",
"total_this_month" : "123.4",
"total_this_year" : "123.4"
}, {
"type" : "balance_correction",
"total" : "123.4",
"total_this_day" : "123.4",
"total_this_week" : "123.4",
"total_this_month" : "123.4",
"total_this_year" : "123.4"
} ],
"properties" : [ {
"key" : "...",
"value" : "..."
}, {
"key" : "...",
"value" : "..."
} ]
}
Class that defines user account core fields.
Subtypes:
| name | data type | description |
|---|---|---|
| id | string | Implementation-specific user account identifier. |
| currency_id | string | Account currency. |
| status | AccountStatus | Account status. |
| name | string | Account name. |
DepositWalletAddresses instead. |
||
| withdrawal_wallet_addresses | array of WalletAddressDto | List of saved wallet addresses for withdrawals. Can be empty. |
| deposit_wallet_addresses | array of WalletAddressDto | List of saved wallet addresses for deposits. Can be empty. |
{
"id" : "...",
"currency_id" : "...",
"status" : "active",
"name" : "...",
"withdrawal_wallet_addresses" : [ {
"address" : "...",
"network" : "...",
"status" : "succeeded",
"reason" : "..."
}, {
"address" : "...",
"network" : "...",
"status" : "approved",
"reason" : "..."
} ],
"deposit_wallet_addresses" : [ {
"address" : "...",
"network" : "...",
"status" : "pending",
"reason" : "..."
}, {
"address" : "...",
"network" : "...",
"status" : "cancelled",
"reason" : "..."
} ]
}
Status of the account.
| value | description |
|---|---|
| active | Account is active. |
| suspended | Account is suspended. |
Class that contains current user’s commission plan for the security with the possible next plans.
| name | data type | description |
|---|---|---|
| security_id | string | Implementation-specific security identifier. |
| current | CommissionPlanDto | Current user’s commission plan for the security. |
| next | CommissionPlanDto | Next user’s commission plan for the security, if nothing happens. Can be missing. |
| next_by_volume | CommissionPlanDto | Next possible user’s commission plan for the security, if the user increases the total trade volume. Can be missing. |
| next_by_balance | CommissionPlanDto | Next possible user’s commission plan for the security, if the user increases the total balance. Can be missing. |
| next_by_invited_users_count | CommissionPlanDto | Next possible user’s commission plan for the security, if the user increases the total number of invited users. Can be missing. |
{
"security_id" : "...",
"current" : {
"average_balance" : "123.4",
"total_volume" : "123.4",
"invited_users_count" : 12345,
"buyer_taker_commission_flat" : "123.4",
"buyer_taker_commission_progressive" : "123.4",
"seller_taker_commission_flat" : "123.4",
"seller_taker_commission_progressive" : "123.4",
"buyer_maker_commission_flat" : "123.4",
"buyer_maker_commission_progressive" : "123.4",
"seller_maker_commission_flat" : "123.4",
"seller_maker_commission_progressive" : "123.4"
},
"next" : {
"average_balance" : "123.4",
"total_volume" : "123.4",
"invited_users_count" : 12345,
"buyer_taker_commission_flat" : "123.4",
"buyer_taker_commission_progressive" : "123.4",
"seller_taker_commission_flat" : "123.4",
"seller_taker_commission_progressive" : "123.4",
"buyer_maker_commission_flat" : "123.4",
"buyer_maker_commission_progressive" : "123.4",
"seller_maker_commission_flat" : "123.4",
"seller_maker_commission_progressive" : "123.4"
},
"next_by_volume" : {
"average_balance" : "123.4",
"total_volume" : "123.4",
"invited_users_count" : 12345,
"buyer_taker_commission_flat" : "123.4",
"buyer_taker_commission_progressive" : "123.4",
"seller_taker_commission_flat" : "123.4",
"seller_taker_commission_progressive" : "123.4",
"buyer_maker_commission_flat" : "123.4",
"buyer_maker_commission_progressive" : "123.4",
"seller_maker_commission_flat" : "123.4",
"seller_maker_commission_progressive" : "123.4"
},
"next_by_balance" : {
"average_balance" : "123.4",
"total_volume" : "123.4",
"invited_users_count" : 12345,
"buyer_taker_commission_flat" : "123.4",
"buyer_taker_commission_progressive" : "123.4",
"seller_taker_commission_flat" : "123.4",
"seller_taker_commission_progressive" : "123.4",
"buyer_maker_commission_flat" : "123.4",
"buyer_maker_commission_progressive" : "123.4",
"seller_maker_commission_flat" : "123.4",
"seller_maker_commission_progressive" : "123.4"
},
"next_by_invited_users_count" : {
"average_balance" : "123.4",
"total_volume" : "123.4",
"invited_users_count" : 12345,
"buyer_taker_commission_flat" : "123.4",
"buyer_taker_commission_progressive" : "123.4",
"seller_taker_commission_flat" : "123.4",
"seller_taker_commission_progressive" : "123.4",
"buyer_maker_commission_flat" : "123.4",
"buyer_maker_commission_progressive" : "123.4",
"seller_maker_commission_flat" : "123.4",
"seller_maker_commission_progressive" : "123.4"
}
}
Class that contains current user’s commission plan for the currency with the possible next plans.
| name | data type | description |
|---|---|---|
| currency_id | string | Implementation-specific currency identifier. |
| current | CurrencyCommissionPlanDto | Current user’s commission plan for the currency. |
| next | CurrencyCommissionPlanDto | Next user’s commission plan for the currency, if nothing happens. Can be missing. |
| next_by_volume | CurrencyCommissionPlanDto | Next possible user’s commission plan for the currency, if the user increases the total trade volume. Can be missing. |
| next_by_balance | CurrencyCommissionPlanDto | Next possible user’s commission plan for the currency, if the user increases the total balance. Can be missing. |
| next_by_invited_users_count | CurrencyCommissionPlanDto | Next possible user’s commission plan for the currency, if the user increases the total number of invited users. Can be missing. |
{
"currency_id" : "...",
"current" : {
"average_balance" : "123.4",
"total_volume" : "123.4",
"invited_users_count" : 12345,
"withdrawal_commission_progressive" : "123.4",
"withdrawal_commission_flat" : "123.4",
"deposit_commission_progressive" : "123.4",
"deposit_commission_flat" : "123.4"
},
"next" : {
"average_balance" : "123.4",
"total_volume" : "123.4",
"invited_users_count" : 12345,
"withdrawal_commission_progressive" : "123.4",
"withdrawal_commission_flat" : "123.4",
"deposit_commission_progressive" : "123.4",
"deposit_commission_flat" : "123.4"
},
"next_by_volume" : {
"average_balance" : "123.4",
"total_volume" : "123.4",
"invited_users_count" : 12345,
"withdrawal_commission_progressive" : "123.4",
"withdrawal_commission_flat" : "123.4",
"deposit_commission_progressive" : "123.4",
"deposit_commission_flat" : "123.4"
},
"next_by_balance" : {
"average_balance" : "123.4",
"total_volume" : "123.4",
"invited_users_count" : 12345,
"withdrawal_commission_progressive" : "123.4",
"withdrawal_commission_flat" : "123.4",
"deposit_commission_progressive" : "123.4",
"deposit_commission_flat" : "123.4"
},
"next_by_invited_users_count" : {
"average_balance" : "123.4",
"total_volume" : "123.4",
"invited_users_count" : 12345,
"withdrawal_commission_progressive" : "123.4",
"withdrawal_commission_flat" : "123.4",
"deposit_commission_progressive" : "123.4",
"deposit_commission_flat" : "123.4"
}
}
Class that defines authentication settings.
| name | data type | description |
|---|---|---|
| provider | string | Auth provider’s key name. |
| discovery_url | string | OAuth2 discovery URL. |
| client_id | string | OAuth2 ClientID. |
| audience | string | Audience request parameter if needed by the auth provider. |
| scopes | string | Space-separated list of scopes needed for the token request. |
{
"provider" : "...",
"discovery_url" : "...",
"client_id" : "...",
"audience" : "...",
"scopes" : "..."
}
Describes price movements for a set period of time.
| name | data type | description |
|---|---|---|
| timestamp | number | Bar timestamp - closing time of the interval. This is a number containing time in milliseconds since January 1, 1970 UTC. |
| open_ask | decimal | Opening ask price. Can be absent if no bars with the requested parameters found for the requested time interval. This is a string containing a decimal floating-point value. |
| high_ask | decimal | Maximum ask price. Can be absent if no bars with the requested parameters found for the requested time interval. This is a string containing a decimal floating-point value. |
| low_ask | decimal | Minimum ask price. Can be absent if no bars with the requested parameters found for the requested time interval. This is a string containing a decimal floating-point value. |
| close_ask | decimal | Closing ask price. Can be absent if no bars with the requested parameters found for the requested time interval. This is a string containing a decimal floating-point value. |
| open_bid | decimal | Opening bid price. Can be absent if no bars with the requested parameters found for the requested time interval. This is a string containing a decimal floating-point value. |
| high_bid | decimal | Maximum bid price. Can be absent if no bars with the requested parameters found for the requested time interval. This is a string containing a decimal floating-point value. |
| low_bid | decimal | Minimum bid price. Can be absent if no bars with the requested parameters found for the requested time interval. This is a string containing a decimal floating-point value. |
| close_bid | decimal | Closing bid price. Can be absent if no bars with the requested parameters found for the requested time interval. This is a string containing a decimal floating-point value. |
| volume | decimal | Trading volume for the time period described by this bar. Can be absent if no bars with the requested parameters found for the requested time interval. This is a string containing a decimal floating-point value. |
| exchange_id | string | Unique identifier of the exchange this bar is from. This field is absent for the aggregated bars. |
{
"timestamp" : 12345,
"open_ask" : "123.4",
"high_ask" : "123.4",
"low_ask" : "123.4",
"close_ask" : "123.4",
"open_bid" : "123.4",
"high_bid" : "123.4",
"low_bid" : "123.4",
"close_bid" : "123.4",
"volume" : "123.4",
"exchange_id" : "..."
}
Describes an aggregated bar with a list of bars per exchange.
| name | data type | description |
|---|---|---|
| timestamp | number | Time of all bars. This is a number containing time in milliseconds since January 1, 1970 UTC. |
| aggregated_bar | BarDto | Aggregated bar. Can be absent if no exchanges for aggregation were provided in the request. |
| exchange_bars | array of BarDto | List of bars for separate exchanges. Can be empty if no exchanges for separate results were provided in the request. |
{
"timestamp" : 12345,
"aggregated_bar" : {
"timestamp" : 12345,
"open_ask" : "123.4",
"high_ask" : "123.4",
"low_ask" : "123.4",
"close_ask" : "123.4",
"open_bid" : "123.4",
"high_bid" : "123.4",
"low_bid" : "123.4",
"close_bid" : "123.4",
"volume" : "123.4",
"exchange_id" : "..."
},
"exchange_bars" : [ {
"timestamp" : 12345,
"open_ask" : "123.4",
"high_ask" : "123.4",
"low_ask" : "123.4",
"close_ask" : "123.4",
"open_bid" : "123.4",
"high_bid" : "123.4",
"low_bid" : "123.4",
"close_bid" : "123.4",
"volume" : "123.4",
"exchange_id" : "..."
} ]
}
Defines a request for changing account properties.
| name | data type | description |
|---|---|---|
| account_id | string | Implementation-specific user account identifier. |
| property_changes | array of ChangePropertyDto |
List of changes that should be done to the account properties
in this exact order. Can only change properties with keys
defined in
CurrencyDto.allowed_account_properties.
|
{
"account_id" : "...",
"property_changes" : [ {
"type" : "insert",
"index" : 12345,
"key" : "...",
"value" : "..."
}, {
"type" : "update",
"index" : 12345,
"key" : "...",
"value" : "..."
} ]
}
Defines a change property request.
| name | data type | description |
|---|---|---|
| type | ChangePropertyType | Request type. |
| index | number | Zero-based index of the attribute inside attribute list. |
| key | string | Property key. For in insert request this will define a new property key. For update and delete requests it must be the same as the original property key. Can only change keys allowed for the user. |
| value | string | Property value. For insert and update requests this defines a new property value. For delete request this field is not used. |
{
"type" : "delete",
"index" : 12345,
"key" : "...",
"value" : "..."
}
Type of change property request.
| value | description |
|---|---|
| insert | Insert a new property. |
| update | Update an existing property. |
| delete | Delete an existing property. |
Time of flat commission charging.
| value | description |
|---|---|
| acknowledgment | Flat Commission will charge after order acknowledgment. |
| first_fill | Flat Commission will charge after the first order filling. |
Class that defines a commission plan.
| name | data type | description |
|---|---|---|
| average_balance | decimal | Minimum average user balance for this commission plan. |
| total_volume | decimal | Minimum total trade volume for this commission plan. |
| invited_users_count | number | Minimum total number of invited users, that have reached the target, for this commission plan. |
| buyer_taker_commission_flat | decimal | Fixed value to be taken as buyer taker trading commission for this commission plan. Zero means no commission. |
| buyer_taker_commission_progressive | decimal | Percent of order quantity to be taken as buyer taker trading commission for this commission plan. Zero means no commission. |
| seller_taker_commission_flat | decimal | Fixed value to be taken as seller taker trading commission for this commission plan. Zero means no commission. |
| seller_taker_commission_progressive | decimal | Percent of order quantity to be taken as seller taker trading commission for this commission plan. Zero means no commission. |
| buyer_maker_commission_flat | decimal | Fixed value to be taken as buyer maker trading commission for this commission plan. Zero means no commission. |
| buyer_maker_commission_progressive | decimal | Percent of order quantity to be taken as buyer maker trading commission for this commission plan. Zero means no commission. |
| seller_maker_commission_flat | decimal | Percent of order quantity to be taken as seller maker trading commission for this commission plan. Zero means no commission. |
| seller_maker_commission_progressive | decimal | Percent of order quantity to be taken as seller maker trading commission for this commission plan. Zero means no commission. |
{
"average_balance" : "123.4",
"total_volume" : "123.4",
"invited_users_count" : 12345,
"buyer_taker_commission_flat" : "123.4",
"buyer_taker_commission_progressive" : "123.4",
"seller_taker_commission_flat" : "123.4",
"seller_taker_commission_progressive" : "123.4",
"buyer_maker_commission_flat" : "123.4",
"buyer_maker_commission_progressive" : "123.4",
"seller_maker_commission_flat" : "123.4",
"seller_maker_commission_progressive" : "123.4"
}
Class that defines a currency.
| name | data type | description |
|---|---|---|
| id | string | Currency code as defined by ISO 4217. |
| name | string | Human-readable name of this currency. |
| type | string | Type of this currency. |
| precision | number | This currency precision. This defines the maximum number of decimal places for the quantities in this currency. |
| icon | binary | Currency icon, if exists. |
| icon_type | string | Currency icon content type, if icon exists. |
| sign | string | Currency sign (symbol). Optional. |
| daily_deposit_threshold | decimal | The amount of currency the user can deposit within a single day without manual confirmation from an operator. This is a string containing a decimal floating-point value. |
| daily_withdrawal_threshold | decimal | The amount of currency the user can withdraw within a single day without manual confirmation from an operator. This is a string containing a decimal floating-point value. |
| weekly_deposit_threshold | decimal | The amount of currency the user can deposit within a single week without manual confirmation from an operator. This is a string containing a decimal floating-point value. |
| weekly_withdrawal_threshold | decimal | the amount of currency the user can withdraw within a single week without manual confirmation from an operator. This is a string containing a decimal floating-point value. |
| monthly_deposit_threshold | decimal | The amount of currency the user can deposit within a single month without manual confirmation from an operator. This is a string containing a decimal floating-point value. |
| monthly_withdrawal_threshold | decimal | The amount of currency the user can withdraw within a single month without manual confirmation from an operator. This is a string containing a decimal floating-point value. |
| yearly_deposit_threshold | decimal | The amount of currency the user can deposit within a single year without manual confirmation from an operator. This is a string containing a decimal floating-point value. |
| yearly_withdrawal_threshold | decimal | The amount of currency the user can withdraw within a single year without manual confirmation from an operator. This is a string containing a decimal floating-point value. |
| daily_deposit_limit | decimal | The amount of currency the user can deposit within a single day. This is a string containing a decimal floating-point value. |
| daily_withdrawal_limit | decimal | The amount of currency the user can withdraw within a single day. This is a string containing a decimal floating-point value. |
| weekly_deposit_limit | decimal | The amount of currency the user can deposit within a single week. This is a string containing a decimal floating-point value. |
| weekly_withdrawal_limit | decimal | The amount of currency the user can withdraw within a single week. This is a string containing a decimal floating-point value. |
| monthly_deposit_limit | decimal | The amount of currency the user can deposit within a single month. This is a string containing a decimal floating-point value. |
| monthly_withdrawal_limit | decimal | The amount of currency the user can withdraw within a single month. This is a string containing a decimal floating-point value. |
| yearly_deposit_limit | decimal | The amount of currency the user can deposit within a single year. This is a string containing a decimal floating-point value. |
| yearly_withdrawal_limit | decimal | The amount of currency the user can withdraw within a single year. This is a string containing a decimal floating-point value. |
| limits_currency | string | Id of the currency in which limits are calculated. |
| withdrawal_commission_progressive | decimal | A percent of withdrawal to be taken as a commission. Zero means no progressive commission. This is a string containing a decimal floating-point value. |
| withdrawal_commission_flat | decimal | A fixed value to be taken as a commission. Zero means no flat commission. This is a string containing a decimal floating-point value. |
| deposit_commission_progressive | decimal | A percent of deposit to be taken as a commission. Zero means no progressive commission. This is a string containing a decimal floating-point value. |
| deposit_commission_flat | decimal | A fixed value to be taken as a commission. Zero means no flat commission. This is a string containing a decimal floating-point value. |
CurrencyLimitsDto. |
||
CurrencyLimitsDto. |
||
| minimal_withdrawal | decimal | Minimal withdrawal amount. |
| withdrawals_allowed | bool | Flag that defines if withdrawals are allowed for the account. |
| deposits_allowed | bool | Flag that defines if deposits are allowed for the account. |
| allowed_account_properties | array of string | Defines a list of keys for which the user is allowed to create, update and delete account properties of the accounts in the specified currency. |
| available_networks | array of string | List of networks available for external transactions. Can be empty. If non-empty, only networks from this list are allowed for deposit/withdrawal operations and one must be provided in the corresponding API. |
| use_abbreviations | bool | Indicates whether to show abbreviated quantity and amount or not. |
| custom_data | string | Custom data. |
| custom_data2 | string | Second field containing custom data. |
{
"id" : "...",
"name" : "...",
"type" : "...",
"precision" : 12345,
"icon" : "...",
"icon_type" : "...",
"sign" : "...",
"daily_deposit_threshold" : "123.4",
"daily_withdrawal_threshold" : "123.4",
"weekly_deposit_threshold" : "123.4",
"weekly_withdrawal_threshold" : "123.4",
"monthly_deposit_threshold" : "123.4",
"monthly_withdrawal_threshold" : "123.4",
"yearly_deposit_threshold" : "123.4",
"yearly_withdrawal_threshold" : "123.4",
"daily_deposit_limit" : "123.4",
"daily_withdrawal_limit" : "123.4",
"weekly_deposit_limit" : "123.4",
"weekly_withdrawal_limit" : "123.4",
"monthly_deposit_limit" : "123.4",
"monthly_withdrawal_limit" : "123.4",
"yearly_deposit_limit" : "123.4",
"yearly_withdrawal_limit" : "123.4",
"limits_currency" : "...",
"withdrawal_commission_progressive" : "123.4",
"withdrawal_commission_flat" : "123.4",
"deposit_commission_progressive" : "123.4",
"deposit_commission_flat" : "123.4",
"minimal_withdrawal" : "123.4",
"withdrawals_allowed" : true,
"deposits_allowed" : false,
"allowed_account_properties" : [ "...", "..." ],
"available_networks" : [ "...", "..." ],
"use_abbreviations" : true,
"custom_data" : "...",
"custom_data2" : "..."
}
Class that defines an action to a specific currency.
| name | data type | description |
|---|---|---|
| id | string | Implementation-specific currency identifier. |
| action | EntityAction | Action to do with a currency. |
| currency | CurrencyDto | A currency that is being added or changed. This field is missing, if the currency should be removed. |
{
"id" : "...",
"action" : "delete",
"currency" : {
"id" : "...",
"name" : "...",
"type" : "...",
"precision" : 12345,
"icon" : "...",
"icon_type" : "...",
"sign" : "...",
"daily_deposit_threshold" : "123.4",
"daily_withdrawal_threshold" : "123.4",
"weekly_deposit_threshold" : "123.4",
"weekly_withdrawal_threshold" : "123.4",
"monthly_deposit_threshold" : "123.4",
"monthly_withdrawal_threshold" : "123.4",
"yearly_deposit_threshold" : "123.4",
"yearly_withdrawal_threshold" : "123.4",
"daily_deposit_limit" : "123.4",
"daily_withdrawal_limit" : "123.4",
"weekly_deposit_limit" : "123.4",
"weekly_withdrawal_limit" : "123.4",
"monthly_deposit_limit" : "123.4",
"monthly_withdrawal_limit" : "123.4",
"yearly_deposit_limit" : "123.4",
"yearly_withdrawal_limit" : "123.4",
"limits_currency" : "...",
"withdrawal_commission_progressive" : "123.4",
"withdrawal_commission_flat" : "123.4",
"deposit_commission_progressive" : "123.4",
"deposit_commission_flat" : "123.4",
"minimal_withdrawal" : "123.4",
"withdrawals_allowed" : false,
"deposits_allowed" : true,
"allowed_account_properties" : [ "...", "..." ],
"available_networks" : [ "...", "..." ],
"use_abbreviations" : false,
"custom_data" : "...",
"custom_data2" : "..."
}
}
Class that defines a commission plan for deposits and withdrawals.
| name | data type | description |
|---|---|---|
| average_balance | decimal | Minimum average user balance for this commission plan. |
| total_volume | decimal | Minimum total trade volume for this commission plan. |
| invited_users_count | number | Minimum total number of invited users, that have reached the target, for this commission plan. |
| withdrawal_commission_progressive | decimal | A percent of withdrawal to be taken as a commission. Zero means no progressive commission. This is a string containing a decimal floating-point value. |
| withdrawal_commission_flat | decimal | A fixed value to be taken as a commission. Zero means no flat commission. This is a string containing a decimal floating-point value. |
| deposit_commission_progressive | decimal | A percent of deposit to be taken as a commission. Zero means no progressive commission. This is a string containing a decimal floating-point value. |
| deposit_commission_flat | decimal | A fixed value to be taken as a commission. Zero means no flat commission. This is a string containing a decimal floating-point value. |
{
"average_balance" : "123.4",
"total_volume" : "123.4",
"invited_users_count" : 12345,
"withdrawal_commission_progressive" : "123.4",
"withdrawal_commission_flat" : "123.4",
"deposit_commission_progressive" : "123.4",
"deposit_commission_flat" : "123.4"
}
Class that contains account’s withdrawal and deposit limits for the currency taking into account transactions already performed by the user.
| name | data type | description |
|---|---|---|
| id | string | Currency code as defined by ISO 4217. |
| withdrawal_limit | decimal | The amount of currency available for withdrawal by the limits in the limits currency. In order to receive the amount available for withdrawal, this number must be compared to the account balance converted to the corresponding currency. This is a string containing a decimal floating-point value. |
| deposit_limit | decimal | The amount of currency available for deposit right now. This is a string containing a decimal floating-point value. |
{
"id" : "...",
"withdrawal_limit" : "123.4",
"deposit_limit" : "123.4"
}
Class that defines trading statistics for current period for specified user.
| name | data type | description |
|---|---|---|
| current_volume | decimal | User volume for current period. |
| current_average_balance | decimal | Average balance for current period. |
| current_invited_users_count | number | Number of user invites for current period. |
| current_trading_commission | decimal | User trading commission amount for current period. |
| statistics_time | number |
{
"current_volume" : "123.4",
"current_average_balance" : "123.4",
"current_invited_users_count" : 12345,
"current_trading_commission" : "123.4",
"statistics_time" : 12345
}
Class that defines a custom service.
| name | data type | description |
|---|---|---|
| name | string | Custom service name. |
| source_id | number | SourceId of the custom service. |
{
"name" : "...",
"source_id" : 12345
}
Represents a user’s deal (position).
| name | data type | description |
|---|---|---|
| id | string | Implementation-specific deal identifier. |
| security_id | string | Implementation-specific security identifier. |
| side | DealSide | Deal’s side. |
| quantity | decimal | Deal’s quantity. This is a string containing a decimal floating-point value. |
| open_quantity_in_abc | decimal | Deal’s quantity converted to the account base currency. Can be missing. This is a string containing a decimal floating-point value. |
| open_quantity_in_urc | decimal | Deal’s quantity converted to the user report currency. Can be missing This is a string containing a decimal floating-point value. |
| good_till_date | number | Expiration timestamp for the deal in question. Can be missing. This is a number containing time in milliseconds since January 1, 1970 UTC. |
| sequence_number | number | Deals’ sequence number. Can be missing. |
| open_order_id | string | Implementation-specific identifier of the order that opened this deal. |
| open_price | decimal | Deal’s average opening price. This is a string containing a decimal floating-point value. |
| open_time | number | Time when this deal was opened. This is a number containing time in milliseconds since January 1, 1970 UTC. |
| open_reason | string | Textual reason for opening this deal. Can be missing. |
| rollover_commission | decimal | Rollover commission applied to the deal in question. Can be missing. This is a string containing a decimal floating-point value. |
| trading_commission | decimal | Trading commission applied to the deal in question. Can be missing. This is a string containing a decimal floating-point value. |
| unrealized_pnl | decimal | Unrealized PnL generated by the deal in question. Can be missing. This is a string containing a decimal floating-point value. |
| realized_pnl | decimal | Realized PnL generated by the deal in question. Can be missing. This is a string containing a decimal floating-point value. |
| margin_used | decimal | Margin used by the deal in question. Can be missing. This is a string containing a decimal floating-point value. |
| leverage | decimal | Leverage of the deal in question. Can be missing. This is a string containing a decimal floating-point value. |
| liquidation_price | decimal | Liquidation price of the deal in question. Can be missing. This is a string containing a decimal floating-point value. |
| take_profit_price | decimal | Take profit price of the deal in question. Can be missing. This is a string containing a decimal floating-point value. |
{
"id" : "...",
"security_id" : "...",
"side" : "short",
"quantity" : "123.4",
"open_quantity_in_abc" : "123.4",
"open_quantity_in_urc" : "123.4",
"good_till_date" : 12345,
"sequence_number" : 12345,
"open_order_id" : "...",
"open_price" : "123.4",
"open_time" : 12345,
"open_reason" : "...",
"rollover_commission" : "123.4",
"trading_commission" : "123.4",
"unrealized_pnl" : "123.4",
"realized_pnl" : "123.4",
"margin_used" : "123.4",
"leverage" : "123.4",
"liquidation_price" : "123.4",
"take_profit_price" : "123.4"
}
Side of the deal.
| value | description |
|---|---|
| long | Long position. Position was opened by buy order. |
| short | Short position. Position was opened by sell order. |
Represents a description text.
| name | data type | description |
|---|---|---|
| text | string | Custom text. |
{
"text" : "..."
}
Represents request for changing user settings.
| name | data type | description |
|---|---|---|
| token | string | Special token if password/MFA for changing settings is enabled. |
| name | data type | description |
|---|---|---|
| is_using_2fa_for_login | bool | Whether user is using two factor authentication for login. This may be missing depending on auth provider. |
| is_using_2fa_for_withdrawal | bool | Whether user is using two factor authentication for withdrawals. |
| is_allow_show_exchange_codes | bool | Allow showing Exchange codes. |
{
"is_using_2fa_for_login" : false,
"is_using_2fa_for_withdrawal" : true,
"is_allow_show_exchange_codes" : false,
"token" : "..."
}
Class that defines user settings that can be changed by the user.
Subtypes:
| name | data type | description |
|---|---|---|
| is_using_2fa_for_login | bool | Whether user is using two factor authentication for login. This may be missing depending on auth provider. |
| is_using_2fa_for_withdrawal | bool | Whether user is using two factor authentication for withdrawals. |
| is_allow_show_exchange_codes | bool | Allow showing Exchange codes. |
{
"is_using_2fa_for_login" : false,
"is_using_2fa_for_withdrawal" : false,
"is_allow_show_exchange_codes" : false
}
Arbitrary object action
| value | description |
|---|---|
| insert | Insert an object. |
| update | Update an object. |
| delete | Remove an object. |
Type of execution explanation.
| value | description |
|---|---|
| none | Frontend should not explain execution. |
| price | Frontend should be able to show execution price as sum of original price with external commission. |
| commission | Frontend should be able to show trade commission as sum of external commission and our trade commission. |
Class that defines an external commission taken by the specified exchange.
| name | data type | description |
|---|---|---|
| exchange_id | string | Vendor ID. Can be absent. |
| commission_currency | string | Commission currency for this instrument and Liquidity Provider in vendor notation. |
| maker_commission | decimal | Vendor maker commission in commission currency. This is a string containing a decimal floating-point value. |
| taker_commission | decimal | Vendor taker commission in commission currency. This is a string containing a decimal floating-point value. |
{
"exchange_id" : "...",
"commission_currency" : "...",
"maker_commission" : "123.4",
"taker_commission" : "123.4"
}
Approximate order fee. Note: fee depends on the book state at the calculation time so actual value may differ from the calculated one.
| name | data type | description |
|---|---|---|
| fee | decimal | Order fee value. |
| cost | decimal | Total cost. |
| average_price | decimal | Average price. |
| comment | string | Arbitrary comment indicating something bad has happened. |
{
"fee" : "123.4",
"cost" : "123.4",
"average_price" : "123.4",
"comment" : "..."
}
| name | data type | description |
|---|---|---|
| name | string | Filter’s name. |
| values | array of string | List of possible filter values. |
{
"name" : "...",
"values" : [ "...", "..." ]
}
Class that defines global application settings.
| name | data type | description |
|---|---|---|
| auth_settings | AuthSettingsDto | Authentication settings, if external auth provider is used. |
| keepalive_timeout | number | Keep-alive timeout, ms. |
|
|
||
true if login 2FA is enabled. This is
deprecated. Use UserSettingsDto instead. |
||
|
|
||
true if withdrawal 2FA is enabled. This is
deprecated. Use UserSettingsDto instead. |
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
|
{
"auth_settings" : {
"provider" : "...",
"discovery_url" : "...",
"client_id" : "...",
"audience" : "...",
"scopes" : "..."
},
"keepalive_timeout" : 12345
}
Class that defines a health status of the application.
| name | data type | description |
|---|---|---|
| timestamp | number | Server time when this status has been received. |
| application | string | Name of the application. |
| version | string | Application version. |
| is_alive | bool | Overall status of the application including connection status to it’s remote services. |
| users | number | Number of users logged in. Only present for the service that contains a user cache. |
| logins | number | Number of active login sessions. Can differ from the users count because each API key session is considered a different login session. Only present for the service that contains a user cache. |
{
"timestamp" : 12345,
"application" : "...",
"version" : "...",
"is_alive" : true,
"users" : 12345,
"logins" : 12345
}
Represents request for getting historical bars.
| name | data type | description |
|---|---|---|
| security_id | string | Bar instrument. |
| periodicity | Periodicity | Bar periodicity. |
| start_time | number | Start of time range. |
| end_time | number | End of time range. |
| aggregated_exchanges | array of string | List of exchanges to be aggregated. |
| separate_exchanges | array of string | List of exchanges that will be returned separatelly. |
{
"security_id" : "...",
"periodicity" : "hour",
"start_time" : 12345,
"end_time" : 12345,
"aggregated_exchanges" : [ "...", "..." ],
"separate_exchanges" : [ "...", "..." ]
}
Represents request for getting historical chart data.
| name | data type | description |
|---|---|---|
| line_id | string | Unique line identifier. |
| scale | number | Scale factor. Time duration that will be represented as one chart dot. |
| filters | array of string | List of filter values. |
| from | number | Historical interval start time. |
| count | number | Maximum number of historical chart dots. |
{
"line_id" : "...",
"scale" : 12345,
"filters" : [ "...", "..." ],
"from" : 12345,
"count" : 12345
}
Represents a request for the history of entries.
Subtypes:
| name | data type | description |
|---|---|---|
| start_time | number |
Start of time range. Set to 0 to get entries from
the beginning (or current time for reversed order).
|
| reversed | bool | Should the result entries be older than the time specified. If missing - treated as false. |
| count | number | Max number of entries expected to receive. Effective max number can be lower than this, depending on backend configuration. If missing or negative - treated as unlimited. |
{
"start_time" : 12345,
"reversed" : false,
"count" : 12345
}
Represents a request for the history of transactions.
| name | data type | description |
|---|---|---|
| transaction_types | array of TransactionType | Transaction types filter. If missing or empty - all types will be returned. |
| name | data type | description |
|---|---|---|
| start_time | number |
Start of time range. Set to 0 to get entries from
the beginning (or current time for reversed order).
|
| reversed | bool | Should the result entries be older than the time specified. If missing - treated as false. |
| count | number | Max number of entries expected to receive. Effective max number can be lower than this, depending on backend configuration. If missing or negative - treated as unlimited. |
{
"start_time" : 12345,
"reversed" : false,
"count" : 12345,
"transaction_types" : [ "deposit_commission", "debit" ]
}
L2 action. This is the type of action that the receiver of market data should perform to the book.
| value | description |
|---|---|
| update | Change the specified level. This cannot change the level price. |
| insert | Insert a new record to the specified level. All the levels below (with worse price) should be shifted one level down. |
| delete | Remove the specified level. All the levels below (with worse price) should be shifted one level up. |
| delete_from | Remove all levels from the specified and below (all the worst prices). |
| delete_through | Remove all levels from the specified and above (all the better prices). All the levels should be shifted up. |
| trade | This is an indicator of the occurred trade. No changes to the book are required. |
Represents L2 entry.
| name | data type | description |
|---|---|---|
| timestamp | number | Time of this entry. If missing, package time should be used. This is a number containing time in milliseconds since January 1, 1970 UTC. |
| price | decimal | Price of this entry. This is a string containing a decimal floating-point value. |
| quantity | decimal | Quantity of this entry. Only present for new, update and trade entries. This is a string containing a decimal floating-point value. |
| side | Side | Side of this entry. |
| action | L2Action | Action of this entry. |
| level | number | Level of this entry. This field is absent for trade entries. |
| number_of_orders | number | Number of active orders on this entry level for new and update entries. Number of orders participated in the trade for trade entries. Absent for other entry types. |
| exchange_id | string | Unique identifier of the exchange this entry is from. Absent if sending exchange id if forbidden for the user or disabled by the user. |
{
"timestamp" : 12345,
"price" : "123.4",
"quantity" : "123.4",
"side" : "sell",
"action" : "trade",
"level" : 12345,
"number_of_orders" : 12345,
"exchange_id" : "..."
}
Represents L2 package for the specified symbol.
| name | data type | description |
|---|---|---|
| timestamp | number | Time of this update. This is a number containing time in milliseconds since January 1, 1970 UTC. |
| security_id | string | Implementation-specific security identifier of the security this snapshot is for. |
| type | L2PackageType | Type of this package. |
| entries | array of L2EntryDto | Entries of this package. |
| sequence_number | number | Serial number of this package. |
{
"timestamp" : 12345,
"security_id" : "...",
"type" : "incremental_update",
"entries" : [ {
"timestamp" : 12345,
"price" : "123.4",
"quantity" : "123.4",
"side" : "buy",
"action" : "insert",
"level" : 12345,
"number_of_orders" : 12345,
"exchange_id" : "..."
}, {
"timestamp" : 12345,
"price" : "123.4",
"quantity" : "123.4",
"side" : "sell",
"action" : "update",
"level" : 12345,
"number_of_orders" : 12345,
"exchange_id" : "..."
} ],
"sequence_number" : 12345
}
Type of the L2 package.
| value | description |
|---|---|
| incremental_update | Incremental change in the available snapshot. |
| snapshot_full_refresh | Full refresh of the available snapshot. |
Class that defines a line dot.
| name | data type | description |
|---|---|---|
| time | number | Dot time. |
| value | decimal | Dot value. |
{
"time" : 12345,
"value" : "123.4"
}
Class that defines meta-information about chart line.
| name | data type | description |
|---|---|---|
| id | string | Line’s unique identifier. |
| name | string | Human-readable name. |
| min_time | number | Minimum available chart dot timestamp. May be lower than the actual user’s first dot. The only guarantee is that there is no data below this point. |
| filters | array of FilterInfoDto | List of filters. Filter values must be provided in the same order. |
{
"id" : "...",
"name" : "...",
"min_time" : 12345,
"filters" : [ {
"name" : "...",
"values" : [ "...", "..." ]
}, {
"name" : "...",
"values" : [ "...", "..." ]
} ]
}
Class that defines a line section.
| name | data type | description |
|---|---|---|
| dots | array of LineDotDto | List of line dots. |
{
"dots" : [ {
"time" : 12345,
"value" : "123.4"
}, {
"time" : 12345,
"value" : "123.4"
} ]
}
Represents a linked order schema.
| name | data type | description |
|---|---|---|
| type | string | Order type name. |
| view | string | Order view schema. Contains a json schema for displaying on UI. |
| send | string | Order send schema. Contains a json schema with list of orders to send to the bakend in that particular order. |
{
"type" : "...",
"view" : "...",
"send" : "..."
}
Class that defines a user to which the user can switch.
| name | data type | description |
|---|---|---|
| id | string | Implementation-specific user identifier. |
| username | string | User’s name. This is the name the user used during registration. |
| user_type | string | Implementation-specific user type. Can be used to explain a role of the particular linked user. Optional. |
| public_id | string |
Public user identifier. Can be provided to other users for
making internal operations, like tranfers. Optional. Can be
missing, if all internal operations are disabled. Format is
defined by the
GlobalSettingsDto.user_identifier parameter.
|
| is_main | bool | Is this the logged-in user, or a linked one. |
{
"id" : "...",
"username" : "...",
"user_type" : "...",
"public_id" : "...",
"is_main" : true
}
Represents request for collecting log message.
| name | data type | description |
|---|---|---|
| logger | string | This is a mandatory field. |
| message | string | Message to be logged. This is a mandatory field. |
| level | LogLevel | Severity of the log message . This is a mandatory field. |
{
"logger" : "...",
"message" : "...",
"level" : "info"
}
Log level.
| value | description |
|---|---|
| trace | Log level trace. |
| debug | Log level debug. |
| info | Log level info. |
| warn | Log level warn. |
| error | Log level error. |
| fatal | Log level fatal. |
Represents request for creating or modifying order.
Subtypes:
| name | data type | description |
|---|---|---|
| client_order_id | string | Client-specific order identifier. Optional. If missing, will be generated by the server. Depending on the underlying model implementation, some constraints may be put on this field. |
| security_id | string | Implementation-specific security identifier. This is a mandatory field. |
| quote_id | string | Quote identifier for orders that should match a specific quote. Optional. |
| type | string | String representation of the order type. This is a mandatory field. |
| side | Side | Side of this order. This is a mandatory field. |
| quantity | decimal | Quantity of this order. This is a mandatory field. This is a string containing a decimal floating-point value. |
| time_in_force | TimeInForce | Time-in-force for this order. This is a mandatory field. |
| limit_price | decimal | Limit price of this order. May be missing or required, depending on the type of the order. This is a string containing a decimal floating-point value. |
| stop_price | decimal | Stop price of this order. May be missing or required, depending on the type of the order. This is a string containing a decimal floating-point value. |
| peg_difference | decimal | Peg Difference for Pegged order types. Amount (signed) added to the price of the peg for a pegged order. Optional. |
| min_quantity | decimal | Minimum quantity allowed for execution, in fixed-point representation. Optional attribute supported by some execution venues. |
| display_quantity | decimal | “MaxShow/DisplaySize” order quantity in fixed-point representation. Can be used for iceberg orders. Optional. |
| leverage | decimal | Leverage. This is optional. This is a string containing a decimal floating-point value. |
| expire_time | number | Expiration time of this order. May be missing or required, depending on the time in force of the order and underlying implementation. This is a number containing time in milliseconds since January 1, 1970 UTC. |
| submission_time | number | Time of new order submission by the client. Optional. This is a number containing time in milliseconds since January 1, 1970 UTC. |
| destination | string | Destination where to send order. Must be one of security’s available destinations. This is a mandatory field. |
| exchange_id | string | Exchange identifier. Required by some destinations. Optional. |
| source | string | Source from where the order was sent. Must be alphanumeric-encodable. Optional. If missing, default source will be used. |
| currency | string | Currency in which quantity is provided. Optional. If missing, symbol’s base currency will be used as a default. Depending on the underlying implementation, some constraints may be put on this field. |
| text | string | Arbitrary text associated with this order by the client. Optional. |
| properties | array of PropertyDto | Order type-specific fields. Optional. List of supported properties in implementation-specific. |
{
"client_order_id" : "...",
"security_id" : "...",
"quote_id" : "...",
"type" : "...",
"side" : "buy",
"quantity" : "123.4",
"time_in_force" : "gtc",
"limit_price" : "123.4",
"stop_price" : "123.4",
"peg_difference" : "123.4",
"min_quantity" : "123.4",
"display_quantity" : "123.4",
"leverage" : "123.4",
"expire_time" : 12345,
"submission_time" : 12345,
"destination" : "...",
"exchange_id" : "...",
"source" : "...",
"currency" : "...",
"text" : "...",
"properties" : [ {
"key" : "...",
"value" : "..."
}, {
"key" : "...",
"value" : "..."
} ]
}
Specifies current status of any operation.
| value | description |
|---|---|
| pending | Request for operation sent. |
| approved | Operation was approved. |
| rejected | Operation was rejected. Final stage. |
| in_progress | Operation is in progress. |
| succeeded | Operation was successfully finished. Final stage. |
| failed | Operation failed. Final stage. |
| cancelled | Operation was cancelled by the user. Final stage. |
Represents user’s order as returned by the API.
| name | data type | description |
|---|---|---|
| id | string | Order identifier assigned by server. |
| correlation_id | string | Unique identifier of the order chain. |
| timestamp | number | Timestamp of the order event. This is used for filtering and sorting. |
| status | OrderStatus | Status of this order. |
| trader_name | string | Name of the user. |
| product_type | ProductType | Defines type of settlement for this order. |
| cumulative_quantity | decimal | Total executed quantity of this order. This is a string containing a decimal floating-point value. |
| remaining_quantity | decimal | Total quantity of this order remaining for execution. This is a string containing a decimal floating-point value. |
| average_price | decimal | Average execution price of this order. This is a string containing a decimal floating-point value. |
| receipt_time | number | Time when this order was received by the execution server. This is a number containing time in milliseconds since January 1, 1970 UTC. |
| close_time | number | Time when this order was closed by the execution server. This is a number containing time in milliseconds since January 1, 1970 UTC. |
| last_timestamp | number | Timestamp of the last meaning event. |
| last_trade_price | decimal | Price of last trade of this order. This is a string containing a decimal floating-point value. |
| counterparty_code | string | |
| settlement_date | number | |
| reason | string | Human-readable reason of closing the order if present. Can be missing. |
| name | data type | description |
|---|---|---|
| client_order_id | string | Client-specific order identifier. Optional. If missing, will be generated by the server. Depending on the underlying model implementation, some constraints may be put on this field. |
| security_id | string | Implementation-specific security identifier. This is a mandatory field. |
| quote_id | string | Quote identifier for orders that should match a specific quote. Optional. |
| type | string | String representation of the order type. This is a mandatory field. |
| side | Side | Side of this order. This is a mandatory field. |
| quantity | decimal | Quantity of this order. This is a mandatory field. This is a string containing a decimal floating-point value. |
| time_in_force | TimeInForce | Time-in-force for this order. This is a mandatory field. |
| limit_price | decimal | Limit price of this order. May be missing or required, depending on the type of the order. This is a string containing a decimal floating-point value. |
| stop_price | decimal | Stop price of this order. May be missing or required, depending on the type of the order. This is a string containing a decimal floating-point value. |
| peg_difference | decimal | Peg Difference for Pegged order types. Amount (signed) added to the price of the peg for a pegged order. Optional. |
| min_quantity | decimal | Minimum quantity allowed for execution, in fixed-point representation. Optional attribute supported by some execution venues. |
| display_quantity | decimal | “MaxShow/DisplaySize” order quantity in fixed-point representation. Can be used for iceberg orders. Optional. |
| leverage | decimal | Leverage. This is optional. This is a string containing a decimal floating-point value. |
| expire_time | number | Expiration time of this order. May be missing or required, depending on the time in force of the order and underlying implementation. This is a number containing time in milliseconds since January 1, 1970 UTC. |
| submission_time | number | Time of new order submission by the client. Optional. This is a number containing time in milliseconds since January 1, 1970 UTC. |
| destination | string | Destination where to send order. Must be one of security’s available destinations. This is a mandatory field. |
| exchange_id | string | Exchange identifier. Required by some destinations. Optional. |
| source | string | Source from where the order was sent. Must be alphanumeric-encodable. Optional. If missing, default source will be used. |
| currency | string | Currency in which quantity is provided. Optional. If missing, symbol’s base currency will be used as a default. Depending on the underlying implementation, some constraints may be put on this field. |
| text | string | Arbitrary text associated with this order by the client. Optional. |
| properties | array of PropertyDto | Order type-specific fields. Optional. List of supported properties in implementation-specific. |
{
"client_order_id" : "...",
"security_id" : "...",
"quote_id" : "...",
"type" : "...",
"side" : "buy",
"quantity" : "123.4",
"time_in_force" : "at_the_opening",
"limit_price" : "123.4",
"stop_price" : "123.4",
"peg_difference" : "123.4",
"min_quantity" : "123.4",
"display_quantity" : "123.4",
"leverage" : "123.4",
"expire_time" : 12345,
"submission_time" : 12345,
"destination" : "...",
"exchange_id" : "...",
"source" : "...",
"currency" : "...",
"text" : "...",
"properties" : [ {
"key" : "...",
"value" : "..."
}, {
"key" : "...",
"value" : "..."
} ],
"id" : "...",
"correlation_id" : "...",
"timestamp" : 12345,
"status" : "pending_cancel",
"trader_name" : "...",
"product_type" : "spot",
"cumulative_quantity" : "123.4",
"remaining_quantity" : "123.4",
"average_price" : "123.4",
"receipt_time" : 12345,
"close_time" : 12345,
"last_timestamp" : 12345,
"last_trade_price" : "123.4",
"counterparty_code" : "...",
"settlement_date" : 12345,
"reason" : "..."
}
Represents request for getting an order confirmation description text.
| name | data type | description |
|---|---|---|
| security_id | string | Order symbol. |
| side | string | Order side. |
{
"security_id" : "...",
"side" : "..."
}
Represents events related to the order like order creation, changing, execution, cancellation etc.
| name | data type | description |
|---|---|---|
| id | string | Human-readable event identifier assigned by server. |
| event_id | string | Unique event identifier assigned by server. |
| type | OrderEventType | Type of the event. |
| sequence_number | number | Sequential number of the event. Guaranteed to be increasing for the next event of the same order. No other guarantees are given. |
| timestamp | number | Event time. This is a number containing time in milliseconds since January 1, 1970 UTC. |
| reason | string | Human-readable event reason if present. Can be missing. |
| client_order_id | string | Client-specific order identifier. Can be missing. |
| security_id | string | Implementation-specific security identifier. |
| order_type | string | String representation of the order type. |
| order_side | Side | Side of the order. |
| quantity | decimal | Total quantity of the order. This is a string containing a decimal floating-point value. |
| time_in_force | TimeInForce | Time-in-force for the order. Can be missing. |
| limit_price | decimal | Limit price of the order. Can be absent depending on the type of the order. This is a string containing a decimal floating-point value. |
| stop_price | decimal | Stop price of the order. Can be absent depending on the type of the order. This is a string containing a decimal floating-point value. |
| average_price | decimal | Average execution price of the order. This is a string containing a decimal floating-point value. |
| leverage | decimal | Leverage. Can be absent. This is a string containing a decimal floating-point value. |
| expire_time | number | Expiration time of the order. Can be absent. This is a number containing time in milliseconds since January 1, 1970 UTC. |
| destination | string | Destination where order was sent. Can be missing. |
| currency | string | Currency in which quantity is provided. If absent, symbol’s base currency is used as a default. |
| exchange_id | string | Exchange where execution occurred. Can be missing. |
| text | string | Arbitrary text associated with the order by the client. Optional. |
| properties | array of PropertyDto | Order type-specific fields. |
| order_id | string | Order identifier assigned by server. |
| order_status | OrderStatus | Order status at the time this event occurred. |
| cumulative_quantity | decimal | Total executed quantity of the order. This is a string containing a decimal floating-point value. |
| remaining_quantity | decimal | Total quantity of the order remaining for execution. This is a string containing a decimal floating-point value. |
| original_client_order_id | string | Client-specific order identifier of the changed order if client order id was modified. Can be absent. |
| trade_quantity | decimal | Executed quantity of this event if this event is execution. Absent otherwise. This is a string containing a decimal floating-point value. |
| trade_price | decimal | Execution price of this event if this event is execution. Absent otherwise. This is a string containing a decimal floating-point value. |
| is_agressor | bool | Was execution passive or agressive (maker or taker) if this event is execution. Absent otherwise. |
| commission | decimal | Commission charged by execution venue for this transaction if this event is trade report. Absent otherwise. This is a string containing a decimal floating-point value. |
| commission_currency | string | Currency used for commission if this event is trade report. Absent otherwise. |
{
"id" : "...",
"event_id" : "...",
"type" : "reject",
"sequence_number" : 12345,
"timestamp" : 12345,
"reason" : "...",
"client_order_id" : "...",
"security_id" : "...",
"order_type" : "...",
"order_side" : "buy",
"quantity" : "123.4",
"time_in_force" : "gtc",
"limit_price" : "123.4",
"stop_price" : "123.4",
"average_price" : "123.4",
"leverage" : "123.4",
"expire_time" : 12345,
"destination" : "...",
"currency" : "...",
"exchange_id" : "...",
"text" : "...",
"properties" : [ {
"key" : "...",
"value" : "..."
}, {
"key" : "...",
"value" : "..."
} ],
"order_id" : "...",
"order_status" : "partially_filled",
"cumulative_quantity" : "123.4",
"remaining_quantity" : "123.4",
"original_client_order_id" : "...",
"trade_quantity" : "123.4",
"trade_price" : "123.4",
"is_agressor" : true,
"commission" : "123.4",
"commission_currency" : "..."
}
Type of the order event.
| value | description |
|---|---|
| submitted | Order has been created. |
| reject | Order has been rejected. |
| cancel | Order has been canceled. |
| cancel_reject | Order cancellation was rejected. |
| replace | Order has been replaced. |
| replace_reject | Order replacement was rejected. |
| trade | Order trade has happened. |
| trade_cancel | Order trade has been canceled. |
| trade_correct | Order trade has been corrected. |
Represents request for getting user’s order events.
| name | data type | description |
|---|---|---|
| start_time | number | Start of time range. |
| reversed | bool | Should the result entries be older than the time specified. If missing - treated as false. |
| current_session | bool | Should the result contain closed orders from current trading session only or not. If missing - treated as false. |
| skip_replaced | bool | Should the result contain orders with status replaced. If missing - treated as false. |
| count | number | Max number of order events expected to receive. Effective max number can be lower than this, depending on backend configuration. If missing or negative - treated as unlimited. |
{
"start_time" : 12345,
"reversed" : true,
"current_session" : false,
"skip_replaced" : true,
"count" : 12345
}
Status of the order.
| value | description |
|---|---|
| new | Order has been just created. |
| rejected | Order has been rejected. |
| canceled | Order has been canceled. |
| replaced | Order has been replaced. |
| partially_filled | Part of the order has been filled. |
| completely_filled | Order has been filled. |
| expired | Order was expired. |
| pending_new | Order creation was sent. |
| pending_cancel | Order cancellation was sent. |
| pending_replace | Order replacement was sent. |
| suspended | Order was suspended. |
Represents update for the order with the list of events, that has changed it from the previous state.
| name | data type | description |
|---|---|---|
| order | OrderDto | New order state. |
| events | array of OrderEventDto | List of events that has modified the order. |
{
"order" : {
"client_order_id" : "...",
"security_id" : "...",
"quote_id" : "...",
"type" : "...",
"side" : "buy",
"quantity" : "123.4",
"time_in_force" : "gtd",
"limit_price" : "123.4",
"stop_price" : "123.4",
"peg_difference" : "123.4",
"min_quantity" : "123.4",
"display_quantity" : "123.4",
"leverage" : "123.4",
"expire_time" : 12345,
"submission_time" : 12345,
"destination" : "...",
"exchange_id" : "...",
"source" : "...",
"currency" : "...",
"text" : "...",
"properties" : [ {
"key" : "...",
"value" : "..."
}, {
"key" : "...",
"value" : "..."
} ],
"id" : "...",
"correlation_id" : "...",
"timestamp" : 12345,
"status" : "suspended",
"trader_name" : "...",
"product_type" : "spot",
"cumulative_quantity" : "123.4",
"remaining_quantity" : "123.4",
"average_price" : "123.4",
"receipt_time" : 12345,
"close_time" : 12345,
"last_timestamp" : 12345,
"last_trade_price" : "123.4",
"counterparty_code" : "...",
"settlement_date" : 12345,
"reason" : "..."
},
"events" : [ {
"id" : "...",
"event_id" : "...",
"type" : "reject",
"sequence_number" : 12345,
"timestamp" : 12345,
"reason" : "...",
"client_order_id" : "...",
"security_id" : "...",
"order_type" : "...",
"order_side" : "buy",
"quantity" : "123.4",
"time_in_force" : "gtc",
"limit_price" : "123.4",
"stop_price" : "123.4",
"average_price" : "123.4",
"leverage" : "123.4",
"expire_time" : 12345,
"destination" : "...",
"currency" : "...",
"exchange_id" : "...",
"text" : "...",
"properties" : [ {
"key" : "...",
"value" : "..."
}, {
"key" : "...",
"value" : "..."
} ],
"order_id" : "...",
"order_status" : "suspended",
"cumulative_quantity" : "123.4",
"remaining_quantity" : "123.4",
"original_client_order_id" : "...",
"trade_quantity" : "123.4",
"trade_price" : "123.4",
"is_agressor" : true,
"commission" : "123.4",
"commission_currency" : "..."
} ]
}
Represents bar periodicity.
| value | description |
|---|---|
| minute | Bar for 1 minute. |
| minute5 | Bar for 5 minutes. |
| minute15 | Bar for 15 minutes. |
| minute30 | Bar for 30 minutes. |
| hour | Bar for 1 hour. |
| hour4 | Bar for 4 hours. |
| hour8 | Bar for 8 hours. |
| day | Bar for 1 day (24 hours). |
| week | Bar for 1 week (7 days). |
| month | Bar for 1 calendar month. |
| name | data type | description |
|---|---|---|
| id | string | Implementation-specific prime broker account identifier. |
| name | string | Human-readable name of this account. |
| custom_data | string | Custom data. |
{
"id" : "...",
"name" : "...",
"custom_data" : "..."
}
Defines type of settlement.
| value | description |
|---|---|
| spot | Settlement occurs on spot. This is the default product type. |
|
|
|
| forward | Settlement occurs after spot. |
Key-value pair.
| name | data type | description |
|---|---|---|
| key | string | Key. |
| value | string | String value. |
{
"key" : "...",
"value" : "..."
}
Class that defines a suggested quote.
| name | data type | description |
|---|---|---|
| request_id | string | Quote request identifier assigned by server. |
| id | string | Quote identifier assigned by server. |
| source | string | Quote source. Optional. Can be missing if quote source is unknown. Generally should be present. |
| bid_price | decimal | Bid price. NULL for one-sided quote where ask is provided. This is a string containing a decimal floating-point value. |
| bid_size | decimal | Bid quantity. NULL for one-sided quote where ask is provided. Zero value means lack of bids on the market or cancellation of previously sent bid. This is a string containing a decimal floating-point value. |
| ask_price | decimal | Ask price. NULL for one-sided quote where bid is provided. This is a string containing a decimal floating-point value. |
| ask_size | decimal | Ask quantity. NULL for one-sided quote where bid is provided. Zero value means lack of asks on the market or cancellation of previously sent ask. This is a string containing a decimal floating-point value. |
| currency_id | string | Identifier of quantity currency. |
| valid_until_time | number | Time when this quote will expire. |
{
"request_id" : "...",
"id" : "...",
"source" : "...",
"bid_price" : "123.4",
"bid_size" : "123.4",
"ask_price" : "123.4",
"ask_size" : "123.4",
"currency_id" : "...",
"valid_until_time" : 12345
}
Class that defines a request for quote.
Subtypes:
| name | data type | description |
|---|---|---|
| security_id | string | Requested quote instrument identifier. |
| side | Side | Requested quote side. |
| size | decimal | Requested quote size. This is a string containing a decimal floating-point value. |
| currency | string | Currency in which size is provided. Optional. If missing, symbol’s base currency will be used as a default. Depending on the underlying implementation, some constraints may be put on this field. |
| destination | string | Destination, if needed. |
| prime_broker_account | string | Prime broker account. |
| settlement_date | number | Trade settlement date. |
| tenor | string | Trade settlement type - tenor. |
| message | string | Optional text message that will be delivered to the quote provider. |
{
"security_id" : "...",
"side" : "buy",
"size" : "123.4",
"currency" : "...",
"destination" : "...",
"prime_broker_account" : "...",
"settlement_date" : 12345,
"tenor" : "...",
"message" : "..."
}
Class that defines a subscription for quotes.
| name | data type | description |
|---|---|---|
| request_id | string | Quote request identifier assigned by server. |
| expire_time | number | Time when the quote request expires. |
| last_quote | QuoteDto | Last quote arrived for this request. |
| name | data type | description |
|---|---|---|
| security_id | string | Requested quote instrument identifier. |
| side | Side | Requested quote side. |
| size | decimal | Requested quote size. This is a string containing a decimal floating-point value. |
| currency | string | Currency in which size is provided. Optional. If missing, symbol’s base currency will be used as a default. Depending on the underlying implementation, some constraints may be put on this field. |
| destination | string | Destination, if needed. |
| prime_broker_account | string | Prime broker account. |
| settlement_date | number | Trade settlement date. |
| tenor | string | Trade settlement type - tenor. |
| message | string | Optional text message that will be delivered to the quote provider. |
{
"security_id" : "...",
"side" : "buy",
"size" : "123.4",
"currency" : "...",
"destination" : "...",
"prime_broker_account" : "...",
"settlement_date" : 12345,
"tenor" : "...",
"message" : "...",
"request_id" : "...",
"expire_time" : 12345,
"last_quote" : {
"request_id" : "...",
"id" : "...",
"source" : "...",
"bid_price" : "123.4",
"bid_size" : "123.4",
"ask_price" : "123.4",
"ask_size" : "123.4",
"currency_id" : "...",
"valid_until_time" : 12345
}
}
Represents RFQ request identifier.
| name | data type | description |
|---|---|---|
| request_id | string | Request identifier. |
{
"request_id" : "..."
}
Class that defines a security with the user-specific settings.
| name | data type | description |
|---|---|---|
| id | string | Implementation-specific security identifier. |
| calendar_id | string | Implementation-specific identifier of the securities trading calendar. |
| name | string | Human-readable name of this security. |
| security_type | SecurityType | Standardized security type. |
| type | string | Type of this security. Arbitrary string - this is mostly used for grouping. |
| tick_size | decimal | Granularity of the price change. This is a string containing a decimal floating-point value. |
| multiplier | decimal | Granularity of the volume change. This is a string containing a decimal floating-point value. |
| base_currency | string | Base currency. |
| term_currency | string | Term currency. |
| trading_currency | TradingCurrency | Rule for determine what account is used for trading this security. |
| price_precision | number | Number of decimal digits for price values. |
| quantity_precision | number | Number of decimal digits for quantity values. |
| display_method | SecurityDisplayMethod | Security price display method. |
| pips_highlight_start | number | Valid only for DisplayMethod = PIPS_HIGHLIGHT. For other display method value is ignored. Pips highlight will start from this digit. PipsHighlightStart <= PipsHighlightEnd. Positive numbers stands for integer part and means distance from the decimal point. Example if you want to start highlight from hundreds it should be equal to 3. Negative numbers stands for decimal part and means distance from the decimal point. Example if you want to start highlight from hundredth it should be equal to -3. |
| pips_highlight_end | number | Valid only for DisplayMethod = PIPS_HIGHLIGHT. For other display method value is ignored. Pips highlight will end at this digit. PipsHighlightStart <= PipsHighlightEnd. Positive numbers stands for integer part and means distance from the decimal point. Example if you want to end highlight at hundreds it should be equal to 3. Negative numbers stands for decimal part and means distance from the decimal point. Example if you want to end highlight at hundredth it should be equal to -3. |
| main_fraction | number | Valid only for DisplayMethod = FRACTIONS. For other display method value is ignored. First denominator. |
| sub_fraction | number | Valid only for DisplayMethod = FRACTIONS. For other display method value is ignored. Second denominator. |
| number_of_fraction_decimals | number | Valid only for DisplayMethod = FRACTIONS. For other display method value is ignored. Number of decimals. |
| max_bars_count | number | Maximum number of historical bars web backend can send for this security. |
| first_bar_timestamp | number | Timestamp of the first minute bar available. Equals to zero if no minute bars are available. This is a number containing time in milliseconds since January 1, 1970 UTC. |
| last_bar_timestamp | number | Timestamp of the last minute bar available. Can be larger than current timestamp, if current bar is available. Equals to zero if no minute bars are available. This is a number containing time in milliseconds since January 1, 1970 UTC. |
| order_types | array of string | List of allowed order types. |
| linked_order_types | array of string | List of allowed linked order types. |
| time_in_forces | array of TimeInForce | List of TimeInForces allowed for all orders except market. |
| default_time_in_force | TimeInForce | Default TimeInForce for all orders except market. |
| market_time_in_forces | array of TimeInForce | List of TimeInForces allowed for market orders. |
| default_market_time_in_force | TimeInForce | Default TimeInForce for market orders. |
| pre_open_time_in_forces | array of TimeInForce | List of TimeInForces allowed for all orders except market during session pre-open. |
| default_pre_open_time_in_force | TimeInForce | Default TimeInForce for all orders except market during session pre-open. |
| minimum_quantity | decimal | Range of available order size for the security: minimum allowable quantity. This is a string containing a decimal floating-point value. |
| maximum_quantity | decimal | Range of available order size for the security: maximum allowable quantity. This is a string containing a decimal floating-point value. |
| default_quantity | decimal | Default quantity of available order size for the security. This is a string containing a decimal floating-point value. |
| quantity_increment | decimal | Range of available order size for the security: quantity increment. This is a string containing a decimal floating-point value. |
| target_price_minimum | decimal | Min order target price. This is a string containing a decimal floating-point value. |
| target_price_maximum | decimal | Max order target price. This is a string containing a decimal floating-point value. |
| target_price_increment | decimal | Increment of order target price. This is a string containing a decimal floating-point value. |
| show_exchange_id | bool | Should the user receive and see exchange ids in execution events, order book, trade history etc for this security. |
| adjust_book | bool | Should the frontend adjust order book using external commissions. |
| execution_explanation | ExecutionExplanation | Type of execution explanation. |
| available_book_exchanges | array of string |
List of book exchange ids available for the user. Will be
empty, if show_exchange_id = false.
|
| available_trade_exchanges | array of string |
List of trade exchange ids available for the user. Will be
empty, if show_exchange_id = false.
|
| available_destinations | array of string | List of available order destinations for this security. |
| default_destination | string | Default destination for this security. Will be used if order’s destination missing. |
| order_max_ttl | number | Maximal order time to live in milliseconds. |
| buyer_taker_commission_flat | decimal | Fixed value to be taken as buyer taker trading commission. Zero means no flat commission. This is a string containing a decimal floating-point value. |
| buyer_taker_commission_progressive | decimal | Percent of order quantity to be taken as buyer taker trading commission. Zero means no progressive commission. This is a string containing a decimal floating-point value. |
| seller_taker_commission_flat | decimal | Fixed value to be taken as seller taker trading commission. Zero means no flat commission. This is a string containing a decimal floating-point value. |
| seller_taker_commission_progressive | decimal | Percent of order quantity to be taken as seller taker trading commission. Zero means no progressive commission. This is a string containing a decimal floating-point value. |
| buyer_maker_commission_flat | decimal | Fixed value to be taken as buyer maker trading commission. Zero means no flat commission. This is a string containing a decimal floating-point value. |
| buyer_maker_commission_progressive | decimal | Percent of order quantity to be taken as buyer maker trading commission. Zero means no progressive commission. This is a string containing a decimal floating-point value. |
| buyer_flat_commission_method | TradingCommissionMethod | Method of computation of buyer flat commission. |
| buyer_progressive_commission_method | TradingCommissionMethod | Method of computation of buyer progressive commission. |
| buyer_commission_account | TradingCommissionAccount | Defines an account for taking buyer trading commission. |
| seller_maker_commission_flat | decimal | Fixed value to be taken as seller maker trading commission. Zero means no flat commission. This is a string containing a decimal floating-point value. |
| seller_maker_commission_progressive | decimal | Percent of order quantity to be taken as seller maker trading commission. Zero means no progressive commission. This is a string containing a decimal floating-point value. |
| seller_flat_commission_method | TradingCommissionMethod | Method of computation of seller flat commission. |
| seller_progressive_commission_method | TradingCommissionMethod | Method of computation of seller progressive commission. |
| seller_commission_account | TradingCommissionAccount | Defines an account for taking seller trading commission. |
| charge_flat_commission_at | ChargeFlatCommissionTime | Time of flat commission charging. |
| taker_reserve_multiplier | decimal | Taker reserve commission for a ticker. This is a string containing a decimal floating-point value. |
| external_commissions | array of ExternalCommissionDto | List of external commissions per exchange, if available. |
| prime_broker_accounts | array of string | List of available prime broker accounts. |
| is_rfq_allowed | bool | If request for quote allowed for the user for the specified security. |
| custom_data | string | Custom data. |
| custom_data2 | string | Second field containing custom data. |
| modification_time | number | Modification time of security. |
{
"id" : "...",
"calendar_id" : "...",
"name" : "...",
"security_type" : "option",
"type" : "...",
"tick_size" : "123.4",
"multiplier" : "123.4",
"base_currency" : "...",
"term_currency" : "...",
"trading_currency" : "base",
"price_precision" : 12345,
"quantity_precision" : 12345,
"display_method" : "pips_highlight",
"pips_highlight_start" : 12345,
"pips_highlight_end" : 12345,
"main_fraction" : 12345,
"sub_fraction" : 12345,
"number_of_fraction_decimals" : 12345,
"max_bars_count" : 12345,
"first_bar_timestamp" : 12345,
"last_bar_timestamp" : 12345,
"order_types" : [ "...", "..." ],
"linked_order_types" : [ "...", "..." ],
"time_in_forces" : [ "gtd", "ioc" ],
"default_time_in_force" : "day",
"market_time_in_forces" : [ "at_the_close", "at_the_close" ],
"default_market_time_in_force" : "fok",
"pre_open_time_in_forces" : [ "day", "at_the_opening" ],
"default_pre_open_time_in_force" : "ioc",
"minimum_quantity" : "123.4",
"maximum_quantity" : "123.4",
"default_quantity" : "123.4",
"quantity_increment" : "123.4",
"target_price_minimum" : "123.4",
"target_price_maximum" : "123.4",
"target_price_increment" : "123.4",
"show_exchange_id" : false,
"adjust_book" : false,
"execution_explanation" : "none",
"available_book_exchanges" : [ "...", "..." ],
"available_trade_exchanges" : [ "...", "..." ],
"available_destinations" : [ "...", "..." ],
"default_destination" : "...",
"order_max_ttl" : 12345,
"buyer_taker_commission_flat" : "123.4",
"buyer_taker_commission_progressive" : "123.4",
"seller_taker_commission_flat" : "123.4",
"seller_taker_commission_progressive" : "123.4",
"buyer_maker_commission_flat" : "123.4",
"buyer_maker_commission_progressive" : "123.4",
"buyer_flat_commission_method" : "term_ticks",
"buyer_progressive_commission_method" : "exact_value",
"buyer_commission_account" : "source_account",
"seller_maker_commission_flat" : "123.4",
"seller_maker_commission_progressive" : "123.4",
"seller_flat_commission_method" : "term_ticks",
"seller_progressive_commission_method" : "term_ticks",
"seller_commission_account" : "abc_account",
"charge_flat_commission_at" : "acknowledgment",
"taker_reserve_multiplier" : "123.4",
"external_commissions" : [ {
"exchange_id" : "...",
"commission_currency" : "...",
"maker_commission" : "123.4",
"taker_commission" : "123.4"
}, {
"exchange_id" : "...",
"commission_currency" : "...",
"maker_commission" : "123.4",
"taker_commission" : "123.4"
} ],
"prime_broker_accounts" : [ "...", "..." ],
"is_rfq_allowed" : false,
"custom_data" : "...",
"custom_data2" : "...",
"modification_time" : 12345
}
Class that defines an action to a specific security.
| name | data type | description |
|---|---|---|
| id | string | Implementation-specific security identifier. |
| action | EntityAction | Action to do with a security. |
| security | SecurityDto | A security that is being added or changed. This field is missing, if the security should be removed. |
{
"id" : "...",
"action" : "insert",
"security" : {
"id" : "...",
"calendar_id" : "...",
"name" : "...",
"security_type" : "unknown",
"type" : "...",
"tick_size" : "123.4",
"multiplier" : "123.4",
"base_currency" : "...",
"term_currency" : "...",
"trading_currency" : "side",
"price_precision" : 12345,
"quantity_precision" : 12345,
"display_method" : "pips_highlight",
"pips_highlight_start" : 12345,
"pips_highlight_end" : 12345,
"main_fraction" : 12345,
"sub_fraction" : 12345,
"number_of_fraction_decimals" : 12345,
"max_bars_count" : 12345,
"first_bar_timestamp" : 12345,
"last_bar_timestamp" : 12345,
"order_types" : [ "...", "..." ],
"linked_order_types" : [ "...", "..." ],
"time_in_forces" : [ "gtd", "ioc" ],
"default_time_in_force" : "fok",
"market_time_in_forces" : [ "gtc", "at_the_opening" ],
"default_market_time_in_force" : "gtc",
"pre_open_time_in_forces" : [ "gtc", "good_till_crossing" ],
"default_pre_open_time_in_force" : "at_the_opening",
"minimum_quantity" : "123.4",
"maximum_quantity" : "123.4",
"default_quantity" : "123.4",
"quantity_increment" : "123.4",
"target_price_minimum" : "123.4",
"target_price_maximum" : "123.4",
"target_price_increment" : "123.4",
"show_exchange_id" : true,
"adjust_book" : false,
"execution_explanation" : "price",
"available_book_exchanges" : [ "...", "..." ],
"available_trade_exchanges" : [ "...", "..." ],
"available_destinations" : [ "...", "..." ],
"default_destination" : "...",
"order_max_ttl" : 12345,
"buyer_taker_commission_flat" : "123.4",
"buyer_taker_commission_progressive" : "123.4",
"seller_taker_commission_flat" : "123.4",
"seller_taker_commission_progressive" : "123.4",
"buyer_maker_commission_flat" : "123.4",
"buyer_maker_commission_progressive" : "123.4",
"buyer_flat_commission_method" : "exact_value",
"buyer_progressive_commission_method" : "exact_value",
"buyer_commission_account" : "source_account",
"seller_maker_commission_flat" : "123.4",
"seller_maker_commission_progressive" : "123.4",
"seller_flat_commission_method" : "exact_value",
"seller_progressive_commission_method" : "term_ticks",
"seller_commission_account" : "destination_account",
"charge_flat_commission_at" : "acknowledgment",
"taker_reserve_multiplier" : "123.4",
"external_commissions" : [ {
"exchange_id" : "...",
"commission_currency" : "...",
"maker_commission" : "123.4",
"taker_commission" : "123.4"
}, {
"exchange_id" : "...",
"commission_currency" : "...",
"maker_commission" : "123.4",
"taker_commission" : "123.4"
} ],
"prime_broker_accounts" : [ "...", "..." ],
"is_rfq_allowed" : true,
"custom_data" : "...",
"custom_data2" : "...",
"modification_time" : 12345
}
}
Class that defines security bars.
| name | data type | description |
|---|---|---|
| max_bars_count | number | Maximum number of historical bars web backend can send for this security. |
| first_bar_timestamp | number | Timestamp of the first minute bar available. Equals to zero if no minute bars are available. This is a number containing time in milliseconds since January 1, 1970 UTC. |
| last_bar_timestamp | number | Timestamp of the last minute bar available. Can be larger than current timestamp, if current bar is available. Equals to zero if no minute bars are available. This is a number containing time in milliseconds since January 1, 1970 UTC. |
{
"max_bars_count" : 12345,
"first_bar_timestamp" : 12345,
"last_bar_timestamp" : 12345
}
Class that defines security commissions.
| name | data type | description |
|---|---|---|
| security_id | string | Implementation-specific security identifier. |
| buyer_flat_commission_method | TradingCommissionMethod | Method of computation of buyer flat commission. |
| buyer_progressive_commission_method | TradingCommissionMethod | Method of computation of buyer progressive commission. |
| buyer_commission_account | TradingCommissionAccount | Defines an account for taking buyer trading commission. |
| seller_flat_commission_method | TradingCommissionMethod | Method of computation of seller flat commission. |
| seller_progressive_commission_method | TradingCommissionMethod | Method of computation of seller progressive commission. |
| seller_commission_account | TradingCommissionAccount | Defines an account for taking seller trading commission. |
| charge_flat_commission_at | ChargeFlatCommissionTime | Time of flat commission charging. |
| taker_reserve_multiplier | decimal | Taker reserve commission for a ticker. This is a string containing a decimal floating-point value. |
| external_commissions | array of ExternalCommissionDto | List of external commissions per exchange, if available. |
| current_commission_plan | CommissionPlanDto | Current commission plan. |
{
"security_id" : "...",
"buyer_flat_commission_method" : "quantity_percent",
"buyer_progressive_commission_method" : "exact_value",
"buyer_commission_account" : "destination_account",
"seller_flat_commission_method" : "term_ticks",
"seller_progressive_commission_method" : "term_ticks",
"seller_commission_account" : "source_account",
"charge_flat_commission_at" : "first_fill",
"taker_reserve_multiplier" : "123.4",
"external_commissions" : [ {
"exchange_id" : "...",
"commission_currency" : "...",
"maker_commission" : "123.4",
"taker_commission" : "123.4"
}, {
"exchange_id" : "...",
"commission_currency" : "...",
"maker_commission" : "123.4",
"taker_commission" : "123.4"
} ],
"current_commission_plan" : {
"average_balance" : "123.4",
"total_volume" : "123.4",
"invited_users_count" : 12345,
"buyer_taker_commission_flat" : "123.4",
"buyer_taker_commission_progressive" : "123.4",
"seller_taker_commission_flat" : "123.4",
"seller_taker_commission_progressive" : "123.4",
"buyer_maker_commission_flat" : "123.4",
"buyer_maker_commission_progressive" : "123.4",
"seller_maker_commission_flat" : "123.4",
"seller_maker_commission_progressive" : "123.4"
}
}
Security price display method.
| value | description |
|---|---|
| plain_text | Display price as simple text. |
| fractions | Display price in fractions format. |
| pips_highlight | Highlight pips digits. |
Class that defines security current prices and statistics.
| name | data type | description |
|---|---|---|
| security_id | string | Implementation-specific security identifier. |
| bid | decimal | Bid price. Can be missing. This is a string containing a decimal floating-point value. |
| ask | decimal | Ask price. Can be missing. This is a string containing a decimal floating-point value. |
| price_24h_change | decimal | Mid price change since the beginning of hour that was 24 hours ago. For example, if current time is ‘2018-06-25 17:53:52’, price change will be calculated since ‘2018-06-24 17:00:00’. This is a string containing a decimal floating-point value. |
| volume_24h_change | decimal | Daily trade volume for current moment. This is a string containing a decimal floating-point value. |
| price_24h_max | decimal | Max price during 24 hours. For example, if current time is ‘2018-06-25 17:53:52’, price max will be calculated since ‘2018-06-24 17:00:00’. This is a string containing a decimal floating-point value. |
| price_24h_min | decimal | Min price during 24 hours. For example, if current time is ‘2018-06-25 17:53:52’, price change will be calculated since ‘2018-06-24 17:00:00’. This is a string containing a decimal floating-point value. |
| last_trade_price | decimal | Price of last trade for this security, if any occurred. Can be missing. This is a string containing a decimal floating-point value. |
{
"security_id" : "...",
"bid" : "123.4",
"ask" : "123.4",
"price_24h_change" : "123.4",
"volume_24h_change" : "123.4",
"price_24h_max" : "123.4",
"price_24h_min" : "123.4",
"last_trade_price" : "123.4"
}
Class that defines current security status.
| name | data type | description |
|---|---|---|
| session_status | SessionStatus | Trading session status. |
{
"session_status" : "trading"
}
Type of the instrument.
| value | description |
|---|---|
| unknown | Unknown. |
| currency | Currency (FX). |
| equity | Equity. |
| futures | Future contract. |
| etf | Exchange traded fund (ETF). |
| cfd | Contract for difference (CFD). |
| nft | Non-fungible token (NFT). |
| option | Option. |
| bond | Bond. |
| index | Index. |
| simple_option | Simple option. |
| synthetic | Synthetic. |
Class that defines a security with the user-specific settings.
| name | data type | description |
|---|---|---|
| id | string | Implementation-specific security identifier. |
| calendar_id | string | Implementation-specific identifier of the securities trading calendar. |
| name | string | Human-readable name of this security. |
| security_type | SecurityType | Standardized security type. |
| type | string | Type of this security. Arbitrary string - this is mostly used for grouping. |
| tick | decimal | Granularity of the price change. This is a string containing a decimal floating-point value. |
| mul | decimal | Granularity of the volume change. This is a string containing a decimal floating-point value. |
| base | string | Base currency. |
| term | string | Term currency. |
| trade_curr | TradingCurrency | Rule for determine what account is used for trading this security. |
| p_prec | number | Number of decimal digits for price values. |
| q_prec | number | Number of decimal digits for quantity values. |
| display | SecurityDisplayMethod | Security price display method. |
| pips | array of number | Valid only for DisplayMethod = PIPS_HIGHLIGHT. For other display method value is ignored. Pips highlight will start from this digit. PipsHighlightStart <= PipsHighlightEnd. Positive numbers stands for integer part and means distance from the decimal point. Example if you want to start highlight from hundreds it should be equal to 3. Negative numbers stands for decimal part and means distance from the decimal point. Example if you want to start highlight from hundredth it should be equal to -3. Contains exactly two values. First is PipsHighlightStart, second is PipsHighlightEnd. |
| fract | array of number | Valid only for DisplayMethod = FRACTIONS. For other display method value is ignored. Contains exactly three values. First is main fraction (first denominator), second is sub fraction (second denominator), third is number of decimals. |
| o_types | array of string | List of allowed order types. |
| lo_types | array of string | List of allowed linked order types. |
| tif | array of TimeInForce | List of TimeInForces allowed for all orders except market. |
| tif_def | TimeInForce | Default TimeInForce for all orders except market. |
| m_tif | array of TimeInForce | List of TimeInForces allowed for market orders. |
| m_tif_def | TimeInForce | Default TimeInForce for market orders. |
| po_tif | array of TimeInForce | List of TimeInForces allowed for all orders except market during session pre-open. |
| po_tif_def | TimeInForce | Default TimeInForce for all orders except market during session pre-open. |
| qty | array of decimal | Range of available order size for the security. Contains exactly four values: default quantity, minimum quantity, quantity increment and maximum quantity. Each array item is a string containing a decimal floating-point value. |
| price | array of decimal | Range of available target prices for the security. Contains exactly three values: minimum price, price increment and maximum price. Each array item is a string containing a decimal floating-point value. |
| show_exch | bool | Should the user receive and see exchange ids in execution events, order book, trade history etc for this security. |
| adjust_book | bool | Should the frontend adjust order book using external commissions. |
| explain | ExecutionExplanation | Type of execution explanation. |
| book_exch | array of string |
List of book exchange ids available for the user. Will be
empty, if show_exchange_id = false.
|
| trade_exch | array of string |
List of trade exchange ids available for the user. Will be
empty, if show_exchange_id = false.
|
| dest | array of string | List of available order destinations for this security. |
| dest_def | string | Default destination for this security. Will be used if order’s destination missing. |
| o_ttl | number | Maximal order time to live in milliseconds. |
| pb_acc | array of string | List of available prime broker accounts. |
| is_rfq | bool | If request for quote allowed for the user for the specified security. |
| custom | string | Custom data. |
| custom2 | string | Second field containing custom data. |
| time | number | Modification time of security. |
{
"id" : "...",
"calendar_id" : "...",
"name" : "...",
"security_type" : "option",
"type" : "...",
"tick" : "123.4",
"mul" : "123.4",
"base" : "...",
"term" : "...",
"trade_curr" : "side",
"p_prec" : 12345,
"q_prec" : 12345,
"display" : "fractions",
"pips" : [ 12345, 12345 ],
"fract" : [ 12345, 12345 ],
"o_types" : [ "...", "..." ],
"lo_types" : [ "...", "..." ],
"tif" : [ "ioc", "gtd" ],
"tif_def" : "at_the_opening",
"m_tif" : [ "gtc", "fok" ],
"m_tif_def" : "gtc",
"po_tif" : [ "ioc", "gtc" ],
"po_tif_def" : "fok",
"qty" : [ "123.4", "123.4" ],
"price" : [ "123.4", "123.4" ],
"show_exch" : false,
"adjust_book" : false,
"explain" : "commission",
"book_exch" : [ "...", "..." ],
"trade_exch" : [ "...", "..." ],
"dest" : [ "...", "..." ],
"dest_def" : "...",
"o_ttl" : 12345,
"pb_acc" : [ "...", "..." ],
"is_rfq" : true,
"custom" : "...",
"custom2" : "...",
"time" : 12345
}
| name | data type | description |
|---|---|---|
| id | string | Implementation-specific security identifier. |
| action | EntityAction | Action to do with a security. |
| security | SecurityV2Dto | A security that is being added or changed. This field is missing, if the security should be removed. |
{
"id" : "...",
"action" : "delete",
"security" : {
"id" : "...",
"calendar_id" : "...",
"name" : "...",
"security_type" : "futures",
"type" : "...",
"tick" : "123.4",
"mul" : "123.4",
"base" : "...",
"term" : "...",
"trade_curr" : "term",
"p_prec" : 12345,
"q_prec" : 12345,
"display" : "plain_text",
"pips" : [ 12345, 12345 ],
"fract" : [ 12345, 12345 ],
"o_types" : [ "...", "..." ],
"lo_types" : [ "...", "..." ],
"tif" : [ "ioc", "gtc" ],
"tif_def" : "gtc",
"m_tif" : [ "at_the_opening", "at_the_close" ],
"m_tif_def" : "day",
"po_tif" : [ "gtc", "gtc" ],
"po_tif_def" : "at_the_close",
"qty" : [ "123.4", "123.4" ],
"price" : [ "123.4", "123.4" ],
"show_exch" : false,
"adjust_book" : true,
"explain" : "none",
"book_exch" : [ "...", "..." ],
"trade_exch" : [ "...", "..." ],
"dest" : [ "...", "..." ],
"dest_def" : "...",
"o_ttl" : 12345,
"pb_acc" : [ "...", "..." ],
"is_rfq" : false,
"custom" : "...",
"custom2" : "...",
"time" : 12345
}
}
Trading session status.
| value | description |
|---|---|
| trading | Trading time. |
| non_trading | Non-trading time. |
| pre_trading | Pre-trading time. |
Side of the order.
| value | description |
|---|---|
| buy | Buy. |
| sell | Sell. |
Class that defines a staking.
| name | data type | description |
|---|---|---|
| id | string | Implementation-specific staking identifier. |
| staking_plan_id | string | Implementation-specific staking plan identifier. |
| currency | string | Staking currency. |
| account_id | string | Implementation-specific account identifier. |
period_ms instead. |
||
| period_ms | number | Staking period in milliseconds. |
| bonding_period | number | Duration between staking opening time and staking start time in milliseconds. |
| unbonding_period | number | Duration between staking close time and staking payout in milliseconds. |
| safe_period | number | Duration, during which it is allowed to cancel staking instantly with standard interest return, in milliseconds. |
annual_interest instead. |
||
| annual_interest | decimal | Annual interest in percent. |
| fee | decimal | Percent of interest to be taken as fee. |
| standard_cancellation_return | decimal | Percent of interest returned in case of standard cancellation. Optional. If missing, standard cancellation is disabled. |
| instant_cancellation_return | decimal | Percent of interest returned in case of instant cancellation. Optional. If missing, instant cancellation is disabled. |
| infinite | bool | Flag that determines if the staking is infinite or not. Infinite stakings are not cancelled on end time, but prolonged instead for the next period. Interest is payed on each staking end time as usual. Infinite stakings are always returnable. |
| returnable | bool | Flag that determines if the user can cancel the reservation fully in the middle of the period or not. Infinite stakings are always returnable. |
| partially_returnable | bool | Flag that determines if the user can cancel part of the the reservation in the middle of the period or not. |
| auto_stake | bool | Flag, indicating if auto-stake is turned on for the staking. |
| stake_more | bool | Flag that indicates if stake more is allowed for the staking. |
| minimum_amount | decimal | Minimal staking amount. The staking cannot be left with the amount less than this using partial cancellations. |
| description | string | Staking plan description string for using by the UI. |
| amount | decimal | Staking amount. |
| start_time | number | Staking start time. |
| end_time | number | Staking end time. |
| gainings | decimal | Gainings is the amount of money the user gets in the end of the period. Optional. Can be missing if were not calculated yet. |
| cumulative_gainings | decimal | Sum of all gainings for this staking. |
| fee_amount | decimal | The amount of fee to be taken from gainings in case of full staking period. Optional. Can be missing if gainings were not calculated yet. |
| cumulative_fee_amount | decimal | Sum of all fees for this staking. |
| is_unbonding | bool | Flag that indicates if there are any unstakes in progress. |
| cancellation_type | StakingCancellationType | Cancellation type, in case staking was cancelled by the user. Optional. Missing for active stakings. |
| reason | string | Human-readable staking reason if present. |
| status | OperationStatus | Staking status. |
| creation_time | number | Time when staking was initiated. |
| modification_time | number | Last staking operation modification time. |
{
"id" : "...",
"staking_plan_id" : "...",
"currency" : "...",
"account_id" : "...",
"period_ms" : 12345,
"bonding_period" : 12345,
"unbonding_period" : 12345,
"safe_period" : 12345,
"annual_interest" : "123.4",
"fee" : "123.4",
"standard_cancellation_return" : "123.4",
"instant_cancellation_return" : "123.4",
"infinite" : false,
"returnable" : false,
"partially_returnable" : false,
"auto_stake" : true,
"stake_more" : true,
"minimum_amount" : "123.4",
"description" : "...",
"amount" : "123.4",
"start_time" : 12345,
"end_time" : 12345,
"gainings" : "123.4",
"cumulative_gainings" : "123.4",
"fee_amount" : "123.4",
"cumulative_fee_amount" : "123.4",
"is_unbonding" : false,
"cancellation_type" : "standard",
"reason" : "...",
"status" : "pending",
"creation_time" : 12345,
"modification_time" : 12345
}
Defines type of staking cancellation.
| value | description |
|---|---|
| standard | Standard cancellation. |
| instant | Instant cancellation. |
| safe | Safe cancellation. Instant, but with standard interest return. |
| expired | Expired staking. Is used for finished stakings. |
Specifies how long the order remains in effect.
| value | description |
|---|---|
| gtc | Good till canceled. |
| gtd | Good till date. |
| ioc | Immediate or cancel. |
| fok | Fill or kill. |
| day | Day till canceled. |
| at_the_opening | At the opening. |
| at_the_close | At the close. |
| good_till_crossing | Good till crossing. |
Class that defines transaction statistics.
| name | data type | description |
|---|---|---|
| type | TransactionType | Transaction type. |
| total | decimal | Total amount for the transaction type specified. |
| total_this_day | decimal | Total amount for current day for the transaction type specified. Can be absent. |
| total_this_week | decimal | Total amount for current week for the transaction type specified. Can be absent. |
| total_this_month | decimal | Total amount for current month for the transaction type specified. Can be absent. |
| total_this_year | decimal | Total amount for current year for the transaction type specified. Can be absent. |
{
"type" : "interest",
"total" : "123.4",
"total_this_day" : "123.4",
"total_this_week" : "123.4",
"total_this_month" : "123.4",
"total_this_year" : "123.4"
}
Account from which trading commission will be taken.
| value | description |
|---|---|
| source_account | |
| destination_account | |
| abc_account |
Method of computation of trading commission.
| value | description |
|---|---|
| exact_value | Trading Commission value will be TradingCommission * Quantity TERM currency ticks, converted to Account Base Currency using current TERM/ABC rate. |
| term_ticks | Trading Commission value will be TradingCommission Quantity. |
| quantity_percent | Trading Commission value will be TradingCommission Quantity. |
Determines what account to use for trading.
| value | description |
|---|---|
| side | Account is determined by order side. |
| base | Account is determined by base currency of the security. |
| term | Account is determined by term currency of the security. |
Class that defines trading statistics.
| name | data type | description |
|---|---|---|
| currency_id | string | Currency code as defined by ISO 4217. |
| daily_volume_limit | decimal | Daily volume limit after which the user cannot trade. Optional. If missing - there are no daily trading limits. |
| weekly_volume_limit | decimal | Weekly volume limit after which the user cannot trade. Optional. If missing - there are no weekly trading limits. |
| monthly_volume_limit | decimal | Monthly volume limit after which the user cannot trade. Optional. If missing - there are no monthly trading limits. |
| yearly_volume_limit | decimal | Yearly volume limit after which the user cannot trade. Optional. If missing - there are no yearly trading limits. |
| daily_volume | decimal | Current user’s daily volume. |
| weekly_volume | decimal | Current user’s weekly volume. |
| monthly_volume | decimal | Current user’s monthly volume. |
| yearly_volume | decimal | Current user’s yearly volume. |
| total_volume | decimal | Current user’s total volume. |
{
"currency_id" : "...",
"daily_volume_limit" : "123.4",
"weekly_volume_limit" : "123.4",
"monthly_volume_limit" : "123.4",
"yearly_volume_limit" : "123.4",
"daily_volume" : "123.4",
"weekly_volume" : "123.4",
"monthly_volume" : "123.4",
"yearly_volume" : "123.4",
"total_volume" : "123.4"
}
Class that defines a trading session.
| name | data type | description |
|---|---|---|
| calendar_id | string | Implementation-specific identifier of the trading calendar. |
| pre_open | number | Time when session pre-open phase begins. Optional. This is a number containing time in milliseconds since January 1, 1970 UTC. |
| start | number | Time when session opens. This is a number containing time in milliseconds since January 1, 1970 UTC. |
| end | number | Time when session closes. This is a number containing time in milliseconds since January 1, 1970 UTC. |
| current_status | SessionStatus | Session status for the request time. |
{
"calendar_id" : "...",
"pre_open" : 12345,
"start" : 12345,
"end" : 12345,
"current_status" : "pre_trading"
}
Class that defines a transaction.
| name | data type | description |
|---|---|---|
| account_id | string | Implementation-specific user account identifier of the account this transaction is for. |
| currency_id | string | Transaction currency. |
| id | string | Implementation-specific transaction identifier. |
| type | TransactionType | Transaction type. |
| amount | decimal | Transaction amount. |
| post_balance | decimal | Account balance after applying the transaction. |
| status | OperationStatus | Transaction status. |
| reason | string | Human-readable transaction reason if present. |
|
|
||
| address | string | Blockchain address. |
| internal_transaction_id | string | Implementation-specific transaction identifier. Can be null, if transaction was not completed yet. |
| network | string | Transaction network. Optional. Only filled if was provided during the request. |
| transaction_id | string | ID of the transaction within the blockchain. |
| confirmations | number | Number of confirmations within the blockchain. |
| confirmations_needed | number | Number of blockchain confirmations needed for transaction approval. |
| external_currency_id | string | External account currency, if it differs from internal account currency. |
| external_conversion_price | decimal | Conversion price used for exchanging external account currency, if it differs from internal account currency. |
| creation_time | number | Time when transaction was initiated. |
| modification_time | number | Last transaction operation modification time. |
{
"account_id" : "...",
"currency_id" : "...",
"id" : "...",
"type" : "trading_commission",
"amount" : "123.4",
"post_balance" : "123.4",
"status" : "succeeded",
"reason" : "...",
"address" : "...",
"internal_transaction_id" : "...",
"network" : "...",
"transaction_id" : "...",
"confirmations" : 12345,
"confirmations_needed" : 12345,
"external_currency_id" : "...",
"external_conversion_price" : "123.4",
"creation_time" : 12345,
"modification_time" : 12345
}
Type of the transaction.
| value | description |
|---|---|
| execution | Profit or loss on trading. |
| deposit | Bank or credit card deposit. |
| credit | Bonus or other credit. |
| debit | Account debit. |
| balance_correction | Correction of balance. |
| withdrawal | Withdrawal of funds. |
| withdrawal_commission | Commission applied on withdrawal. |
| trading_commission | Commission applied on trading. |
| rollover_commission | Commission applied on deal rollover. |
| deposit_commission | Commission applied on deposit. |
| interest | Rewards that users receive from the system, for example for saving money there. |
| withdrawal_reservation | Balance reservation for withdrawal. |
| withdrawal_reservation_cancel | Balance reservation cancel for withdrawal. |
| transfer_send | Internal transfer sending. |
| transfer_receive | Internal transfer receiving. |
| interest_commission | Commission applied on interest. |
Class that defines an internal transfer.
| name | data type | description |
|---|---|---|
| account_id | string | Implementation-specific user account identifier of the account this transfer is for. |
| currency_id | string | Transfer currency. |
| id | string | Implementation-specific transfer identifier. |
| type | TransferType | Transfer type. |
| amount | decimal | Transfer amount. |
| counterparty_id | string | Identifier of the transfer counterparty user. |
| status | OperationStatus | Transfer status. |
| reason | string | Human-readable transfer reason if present. |
| creation_time | number | Time when transfer was initiated. |
| modification_time | number | Last transfer operation modification time. |
{
"account_id" : "...",
"currency_id" : "...",
"id" : "...",
"type" : "request_receive",
"amount" : "123.4",
"counterparty_id" : "...",
"status" : "succeeded",
"reason" : "...",
"creation_time" : 12345,
"modification_time" : 12345
}
Type of internal transfer.
| value | description |
|---|---|
| send | Send transfer. |
| receive | Receive transfer. |
| request_send | Sent request for transfer. |
| request_receive | Received request for transfer. |
Field that is used for user identification.
| value | description |
|---|---|
| user_id | User is identified by base64(UserId). |
| external_id | User is identified by ExternalId. |
| username | User is identified by Username. |
Class that defines user settings returned by the API.
| name | data type | description |
|---|---|---|
| client_user_id | string | Client-specific user identifier. Can be absent. |
| username | string | User’s name. This is the name the user used during registration. |
| measurement_currencies | array of string | List of currencyId in which account statistics can be calculated for the user. |
| trading_statistics_currency | string | CurrencyId of trading statistics for user. |
| login_2fa_enabled | bool | Is 2FA for user login enabled. |
| login_2fa_mandatory | bool |
Is 2FA for user login mandatory. Can only be
true if login 2FA is enabled.
|
| withdrawal_2fa_enabled | bool | Is 2FA for user withdrawal transfers enabled. |
| withdrawal_2fa_mandatory | bool |
Is 2FA for user withdrawal transfers mandatory. Can only be
true if withdrawal 2FA is enabled.
|
| basic_advanced_switcher_enabled | bool | Is switcher between basic and advanced view enabled. |
| password_for_user_settings_change_required | bool | Is password confirmation required for changing user settings. |
| password_for_api_key_change_required | bool | Is explicit password confirmation required for creating/deleting API keys. If set to false - password should be verified on auth provider side. |
| withdrawal_address_validation_required | bool | Is withdrawal forbidden for non-validated address. |
| user_identifier | UserIdentifier | Specifies a field used for identifying users when user transfers are enabled. Optional. When missing, user transfers are disabled. |
| name | data type | description |
|---|---|---|
| is_using_2fa_for_login | bool | Whether user is using two factor authentication for login. This may be missing depending on auth provider. |
| is_using_2fa_for_withdrawal | bool | Whether user is using two factor authentication for withdrawals. |
| is_allow_show_exchange_codes | bool | Allow showing Exchange codes. |
{
"is_using_2fa_for_login" : true,
"is_using_2fa_for_withdrawal" : true,
"is_allow_show_exchange_codes" : false,
"client_user_id" : "...",
"username" : "...",
"measurement_currencies" : [ "...", "..." ],
"trading_statistics_currency" : "...",
"login_2fa_enabled" : false,
"login_2fa_mandatory" : false,
"withdrawal_2fa_enabled" : true,
"withdrawal_2fa_mandatory" : true,
"basic_advanced_switcher_enabled" : true,
"password_for_user_settings_change_required" : true,
"password_for_api_key_change_required" : false,
"withdrawal_address_validation_required" : true,
"user_identifier" : "username"
}
Class that defines a saved wallet address.
| name | data type | description |
|---|---|---|
| address | string | Wallet address. Required. |
| network | string | Wallet network. Optional. Can be missing, if only one currency network is used. |
| status | OperationStatus | Wallet address status. Transactions are only allowed for succeeded status. Required. |
| reason | string | Human-readable reason for rejecting the address, if present. Optional. |
{
"address" : "...",
"network" : "...",
"status" : "approved",
"reason" : "..."
}
Copyright © 2018 - 2024 Deltix, http://deltixlab.com/.