Skip to main content

Get Move Position History

You can query moved position data by master UID api key

Unified account covers: USDT perpetual / USDC contract / Spot / Option

HTTP Request

GET /v5/position/move-history

Request Parameters

ParameterRequiredTypeComments
categoryfalsestringProduct type. linear, spot, option
symbolfalsestringSymbol name
startTimefalsenumberThe order creation start timestamp. The interval is 7 days
endTimefalsenumberThe order creation end timestamp. The interval is 7 days
statusfalsestringOrder status. Processing, Filled, Rejected
blockTradeIdfalsestringBlock trade ID
limitfalsestringLimit for data size per page. [1, 200]. Default: 20
cursorfalsestringCursor. Use the nextPageCursor token from the response to retrieve the next page of the result set

Response Parameters

ParameterTypeComments
listarrayObject
> blockTradeIdstringBlock trade ID
> categorystringProduct type. linear, spot, option
> orderIdstringBybit order ID
> userIdintegerUser ID
> symbolstringSymbol name
> sidestringOrder side from taker's perspective. Buy, Sell
> pricestringOrder price
> qtystringOrder quantity
> execFeestringThe fee for taker or maker in the base currency paid to the Exchange executing the block trade
> statusstringBlock trade status. Processing, Filled, Rejected
> execIdstringThe unique trade ID from the exchange
> resultCodeintegerThe result code of the order. 0 means success
> resultMessagestringThe error message. "" when resultCode=0
> createdAtnumberThe timestamp (ms) when the order is created
> updatedAtnumberThe timestamp (ms) when the order is updated
> rejectPartystring
  • "" means the status=Filled
  • Taker, Maker when status=Rejected
  • bybit means error is occurred on the Bybit side
nextPageCursorstringUsed to get the next page data

Request Example

GET /v5/position/move-history?limit=1&status=Filled HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-SIGN: XXXXXX
X-BAPI-API-KEY: XXXXXX
X-BAPI-TIMESTAMP: 1697523024244
X-BAPI-RECV-WINDOW: 5000

Response Example

{
"retCode": 0,
"retMsg": "OK",
"result": {
"list": [
{
"blockTradeId": "1a82e5801af74b67b7ad71ba00a7391a",
"category": "option",
"orderId": "8e09c5b8-f651-4cec-968d-52764cac11ec",
"userId": 592324,
"symbol": "BTC-14OCT23-27000-C",
"side": "Buy",
"price": "6",
"qty": "0.99",
"execFee": "0",
"status": "Filled",
"execId": "677ad344-6bb4-4ace-baca-128fcffcaca7",
"resultCode": 0,
"resultMessage": "",
"createdAt": 1697186522865,
"updatedAt": 1697186523289,
"rejectParty": ""
}
],
"nextPageCursor": "page_token%3D1241742%26"
},
"retExtInfo": {},
"time": 1697523024386
}