Skip to main content

Get Event Contract Trade History

Query Event Contract trade (execution) records. Returns records in the past 2 years.

info
  • Only Event Contract maker accounts are allowed to access this endpoint.
  • Default query window: 7 days if startTime/endTime are not specified.

HTTP Request

GET/v5/event/trades

Request Parameters

ParameterRequiredTypeComments
symboltruestringSymbol name, e.g. ETHUSDT-28AUG26-2450-2570-OUT
orderIdfalsestringOrder ID filter
orderLinkIdfalsestringUser-defined order ID
startTimefalseintegerStart time in milliseconds. Default: 7 days ago
endTimefalseintegerEnd time in milliseconds. Default: now
limitfalseintegerNumber of items per page. Default: 50, Range: [1, 100]
cursorfalsestringPagination cursor

Response Parameters

ParameterTypeComments
listarrayEvent Contract trade record list
> orderIdstringOrder ID
> orderLinkIdstringUser-defined order ID
> execIdstringExecution ID
> symbolstringSymbol name
> baseCoinstringBase coin
> settleCoinstringSettle coin
> sidestringSide: Buy or Sell
> execTypestringExecution type: Trade, Settle
> execPricestringExecution price (payout ratio)
> execValuestringExecution value
> execFeestringExecution fee
> execFeeRatestringExecution fee rate
> orderPricestringOrder price
> feeCoinstringFee coin
> transTimestringTransaction time in milliseconds
> timeInForcestringTime in force, e.g. GTC, IOC, FOK
> crossSeqstringCross sequence number
> ecPayoutstringEvent Contract payout (settlement payout for this execution)
> ecDurationWindowstringDuration window in seconds
> settleTimeMsstringSettlement time in milliseconds
> ecOrderValuestringEvent Contract order value
> ecContractTypestringEvent contract type: UpDown, Target, Range
> ecDirectionstringDirection: UP/DOWN (UpDown type), ABOVE/BELOW (Target type), RANGE_IN/RANGE_OUT (Range type)
> ecTargetPricestringTarget price. Target type only.
> ecLowerBoundstringLower bound. Range type only.
> ecUpperBoundstringUpper bound. Range type only.
> extraFeesstringExtra fees (JSON string if applicable)
cursorstringCursor for next page pagination

Request Example

GET /v5/event/trades?symbol=ETHUSDT-28AUG26-2450-2570-OUT&limit=50 HTTP/1.1
Host: api.bybit.com
X-BAPI-SIGN: XXXXX
X-BAPI-API-KEY: xxxxxxxxxxxxxxxxxx
X-BAPI-TIMESTAMP: 1694402559000
X-BAPI-RECV-WINDOW: 5000

Response Example

{
"retCode": 0,
"retMsg": "OK",
"result": {
"list": [
{
"orderId": "1234567890",
"orderLinkId": "my-order-001",
"execId": "exec-001",
"symbol": "ETHUSDT-28AUG26-2450-2570-OUT",
"baseCoin": "BTC",
"settleCoin": "USDT",
"side": "Buy",
"execType": "Trade",
"execPrice": "1.95",
"execValue": "50",
"execFee": "0.5",
"execFeeRate": "0.01",
"orderPrice": "1.95",
"feeCoin": "USDT",
"transTime": "1694402559843",
"timeInForce": "GTC",
"crossSeq": "31413030",
"ecPayout": "0",
"ecDurationWindow": "300",
"settleTimeMs": "1694515498753",
"ecOrderValue": "50",
"ecContractType": "UpDown",
"ecDirection": "UP",
"ecTargetPrice": "",
"ecLowerBound": "",
"ecUpperBound": "",
"extraFees": ""
}
],
"cursor": ""
},
"retExtInfo": {},
"time": 1694402560000
}