GET /public/get_contract_size
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/deribit/public/get_contract_sizeCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing freeContract size for one instrument.
Parameters
| name | in | type | description | |
|---|---|---|---|---|
instrument_name | query | str | required | Instrument name. example: BTC-PERPETUAL |
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_contract_size?instrument_name=BTC-PERPETUAL"