Get Order Info
info
- Need authentication. Up to 10 requests per second.
- Query your Dual Assets order history. Requires Earn permission on the API key.
HTTP Request
GET /v5/earn/advance/order
Request Parameters
| Parameter | Required | Type | Comments |
|---|---|---|---|
| category | true | string | Product type, e.g. DualAssets |
| productId | false | string | Product ID |
| orderId | false | string | OrderId |
| orderLinkId | false | string | User customised order ID |
| startTime | false | string | Start time (order creation time), unix timestamp in milliseconds |
| endTime | false | string | End time, unix timestamp in milliseconds |
| limit | false | int | Number of items per page. Default: 20, Max: 20 |
| cursor | false | string | Pagination cursor. Use nextPageCursor from previous response |
Response Parameters
| Parameter | Type | Comments |
|---|---|---|
| category | string | DualAssets |
| nextPageCursor | string | Next page cursor, empty means no more data |
| list | array | Order list |
| > orderId | string | Order ID |
| > orderLinkId | string | User customised order ID |
| > productId | string | Product ID |
| > category | string | Product category,'DualAssets' |
| > orderType | string | Stake: Subscribe |
| > amount | string | Order amount |
| > coin | string | Coin name |
| > baseCoin | string | Base coin |
| > quoteCoin | string | Quote coin |
| > status | string | Pending: Order confirming, Success: Order successful, position created, Settled: Position settled, Fail: Order failed |
| > createdTime | string | Created time, unix timestamp in ms |
| > updatedTime | string | Updated time, unix timestamp in ms |
| > direction | string | BuyLow, SellHigh |
| > targetPrice | string | Target price in USDT |
| > settlementTime | int64 | Settlement time, unix timestamp in ms |
| > estimateApyE8 | int64 | Estimated annualized yield, e8 precision |
| > duration | string | Product term, e.g. 8h, 1d, 2d, 3d |
| > accountType | string | Account type |
| > toAccountType | string | Settlement destination account |
| > selectApyE8 | int64 | APY selected by user at order time, e8 precision |
| > isVip | bool | Whether it is a VIP product |
| > settlementCoin | string | Settlement coin, Only available when status=Settled |
| > settlementAmount | string | Settlement amount, Only available when status=Settled |
| > orderMode | string | Order mode: Normal, RFQ |
| > settlementPrice | string | Settlement price in USDT, Only available when status=Settled |
| > refundStatus | string | Refund status. Only valid when status=Fail, Processing, Processed |
| > trialBonusAmount | string | Trial bonus amount |
| > trialBonusPnl | string | Trial bonus P&L |
Request Example
- HTTP
GET /v5/earn/advance/position?category=DualAssets&limit=2 HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-SIGN: XXXXX
X-BAPI-API-KEY: xxxxxxxxxxxxxxxxxx
X-BAPI-TIMESTAMP: 1672280218882
X-BAPI-RECV-WINDOW: 5000
Response Example
{
"retCode": 0,
"retMsg": "",
"result": {
"category": "DualAssets",
"list": [
{
"orderId": "ef9644c2-0c98-40e5-ae33-8aa5b6d85058",
"orderLinkId": "54b3589b-da55-4b17-acdd-aa75912c9eb9",
"productId": "36320",
"category": "DualAssets",
"orderType": "Stake",
"amount": "20",
"coin": "USDT",
"baseCoin": "ETH",
"quoteCoin": "USDT",
"status": "Success",
"createdTime": "1773815357000",
"updatedTime": "1773815357000",
"direction": "BuyLow",
"targetPrice": "2325",
"settlementTime": "0",
"estimateApyE8": "771808500",
"duration": "3d",
"accountType": "UNIFIED",
"toAccountType": "",
"selectApyE8": "857565000",
"isVip": false,
"settlementCoin": "ETH",
"settlementAmount": "0",
"orderMode": "Normal",
"settlementPrice": "",
"refundStatus": "",
"trialBonusAmount": "",
"trialBonusPnl": ""
}
],
"nextPageCursor": ""
},
"retExtInfo": {},
"time": 1773815392318
}