Query Current Plan
Address: /openApi/contract/currentTactics
Parameters Accepted
require
Submission Method: get
Submission Parameters
Parameter Name | Required | Mandatory | Example | Description |
---|---|---|---|---|
symbol | No | string | EOS-USDT | Trading pair (if not provided, all pairs) |
from | No | int | 122 | Starting query order_id |
direct | No | string | prev | Query direction (default prev), prev is backward, time (or ID) in descending order; next is forward, time (or ID) in ascending order. (Example of a list: 1, 2, 3, 4, 5. from=4, prev has 3, 2, 1; next only has 5) |
limit | No | int | 20 | Number of results returned per page, default is 20, maximum is 100 (refer to the description in the pagination section for details) |
is_full | No | int | 1 | 1 Position by Position 2 All Positions |
Return Parameters
Parameter Name | Required | Type | Example | Description |
---|---|---|---|---|
errno | Yes | int | 0 | Return status code |
errmsg | Yes | string | Success | Return message |
result | Yes | object | See example | Return data |
result parameters
Parameter Name | Required | Type | Example | Description |
---|---|---|---|---|
order_id | Yes | string | BG5000181583375122413SZXEIX | Order Number |
ctime | Yes | int | 1576746253 | Order time |
symbol | Yes | string | ETH-USDT | Trading pair |
price | Yes | string | 1 | Entrusted Price |
lever_rate | Yes | int | 10 | Leverage multiplier |
amount | Yes | string | 10 | Order quantity |
type | Yes | string | buy-limit | Order Type |
trigger_status | Yes | int | 0 | Trigger status (0 not triggered/1 triggered) |
trigger_sign | Yes | string | 0 | Trigger condition (1 greater than or equal to / 2 less than or equal to) |
trigger_price | Yes | string | 10 | Trigger price |
stop_profit_price | Yes | string | 15 | Stop profit price |
stop_loss_price | Yes | string | 10 | Stop Loss Price |
Return Example
JSON
{
"errno": 0,
"errmsg": "success",
"result": [
{
"order_id": "BG5000181583375122413SZXEIX", //Order ID
"ctime": 1576746253, //Order creation time
"symbol": "ETH-USDT", //Trading pair
"price": "1", //Order price
"lever_rate": 10, //Leverage multiplier
"amount": "10", // Entrusted amount
"type": "buy-limit", //Order Type
"trigger_status": 0, //Trigger status 0 not triggered 1 triggered
"trigger_sign": "0", //Trigger condition 1 greater than or equal to 2 less than or equal to
"trigger_price": "10", //Trigger Price
"stop_profit_price": "15", //Stop profit price
"stop_loss_price": "10" //Stop loss price
}
]
}