GET /public/get_last_trades_by_currency
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/deribit/public/get_last_trades_by_currencyCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing freeMost recent public trades for a currency and kind.
Parameters
| name | in | type | description | |
|---|---|---|---|---|
currency | query | str | required | Currency, e.g. BTC. example: BTC |
kind | query | strfuture | option | spot | future_combo | option_combo | required | Instrument kind. Required in practice: omitting it makes the live method reject the call with not_supported_for_coinbase_routed_spot. example: future |
count | query | int | optional | Number of trades (max 1000). example: 2 |
sorting | query | strasc | desc | default | optional | asc, desc or default. example: desc |
Response
type: object
pagination: none
sample: {
"jsonrpc": "str",
"result": "object",
"usIn": "int",
"usOut": "int",
"usDiff": "int",
"testnet": "bool"
}
Safe request
Reads the credential from API_HUB_KEY; it never appears in the URL.
curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/deribit/public/get_last_trades_by_currency?currency=BTC&kind=future&count=2&sorting=desc"