Deribit Account Management API is one of 19 APIs that Deribit publishes on the APIs.io network, described by a machine-readable OpenAPI specification.
Tagged areas include Account Management. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, authentication docs, and rate-limit docs.
This API exposes
37 operations
across 37 paths,
and defines 103 schemas.
It is described by OpenAPI 3.0.0, at version 2.1.1.
Requests are made against a single base URL, https://test.deribit.com/api/v2.
The identity and technical contract details declared by the specification.
fee_balance
number
The account's fee balance (it can be used to pay for fees)
PrivateSimulatePortfolioResponse
object
3 properties
2 required
currency_amount
number
Amount of funds in given currency
trigger_offset
number
The maximum deviation from the price peak beyond which the order will be triggered (Only for trailing trigger orders)
api
boolean
true if created with API
trigger
string
Trigger type (only for trigger orders). Allowed values: "indexprice", "markprice", "lastprice".
kind_without_spot
string
Instrument kind: "future", "option", "futurecombo", "optioncombo" (spot is excluded as spot trades are settled immediately and have no open positions)
key_id
integer
Key identifier
PrivateGetAccessLogResponse
object
3 properties
2 required
api_key
object
11 properties
6 required
contracts
number
It represents the order size in contract units. (Optional, may be absent in historical data).
api_key_features
array
List of enabled advanced on-key features. Available options: - restrictedblocktrades : Limit the blocktrade read the scope of the API key to block trades that…
order_type
string
Order type: "limit", "market", "stoplimit", "stopmarket", "takelimit", "takemarket", "trailingstop"
reduce_only
boolean
Optional (not added for spot). 'true for reduce-only orders only'
access_log
object
7 properties
6 required
additional_reserve
number
The account's balance reserved in other orders
fee_role
string
Fee role of the user: maker or taker. Can be different from trade role of the user when iceberg order was involved in matching.
trigger_reference_price
number
The price of the given trigger at the time when the order was placed (Only for trailing trigger orders)
display_amount
number
The actual display amount of iceberg order. Absent for other types of orders.
custody_account
object
Custody account
11 properties
3 required
position_direction
string
Direction: buy, sell or zero
PublicGetAnnouncementsResponse
object
3 properties
2 required
position
object
23 properties
14 required
filled_amount
number
Filled amount of the order. For perpetual and futures the filledamount is in USD units, for options - in units or corresponding cryptocurrency contracts, e.g.,…
is_secondary_oto
boolean
true if the order is an order that can be triggered by another order, otherwise not present.
PrivateCreateSubaccountResponse
object
3 properties
2 required
trade_id
string
Unique (per currency) trade identifier
cancel_reason
string
Enumerated reason behind cancel "userrequest", "autoliquidation", "cancelondisconnect", "riskmitigation", "pmeriskreduction" (portfolio margining risk reductio…
timestamp
integer
The timestamp (milliseconds since the Unix epoch)
currency_portfolio
object
10 properties
10 required
currency
string
Currency, i.e "BTC", "ETH", "USDC"
PrivateGetEmailLanguageResponse
object
3 properties
2 required
order
object
52 properties
12 required
amount
number
It represents the requested order size. For perpetual and inverse futures the amount is in USD units. For options and linear futures it is the underlying base…
projected_initial_margin
number
Projected initial margin. When cross collateral is enabled, this aggregated value is calculated by converting the sum of each cross collateral currency's value…
user_id
integer
Unique user identifier
id
integer
Unique identifier
direction
string
Direction: buy, or sell
currency_with_any
string
Currency name or "any" if don't care
advanced
string
advanced type: "usd" or "implv" (Only for options; field is omitted if not applicable).
wallet_currency
string
Currency, i.e "BTC", "ETH", "USDC"
web
boolean
true if created via Deribit frontend (optional)
instrument_name
string
Unique instrument identifier
PrivateGetSubaccountsDetailsResponse
object
3 properties
2 required
PrivateGetTransactionLogResponse
object
3 properties
2 required
block_trade_order
boolean
true if order made from blocktrade trade, added only in that case.
delta_total
number
The sum of position deltas. DeltaTotal = Net Transaction Delta of options + BTC Position of Futures The DeltaTotal uses the Net Transaction Delta (or price adj…
GetlistCustodyAccounts200response
public_key
string
PEM encoded public key (Ed25519/RSA) used for asymmetric signatures (optional)
portfolio
object
1 property
original_order_type
string
Original order type. Optional field
api_key_name
string
Api key name that can be displayed in transaction log
api_limits
object
Returned object is described in [separate document](https://support.deribit.com/hc/en-us/articles/25944617523357-Rate-Limits).
upl
number
Session unrealized profit and loss
PrivateAccountSummariesResponse
object
3 properties
2 required
average_price
number
Average fill price of the order
usd
number
Option price in USD (Only if advanced="usd")
PrivateGetUserLocksResponse
object
3 properties
2 required
PrivateAccountResponse
object
3 properties
2 required
implv
number
Implied volatility in percent. (Only if advanced="implv")
transaction_log
object
34 properties
10 required
max_scope
array
Describes maximal access for tokens generated with given key. If scope is not provided, its value is set as none. 📖 Related Article: [Access Scope](https://doc…
PrivateGetPositionResponse
object
3 properties
2 required
PrivateGetPositionsResponse
object
3 properties
2 required
trigger_price
number
Trigger price (Only for future trigger orders)
ErrorResponse
object
Generic error response for broken references
2 properties
2 required
reject_post_only
boolean
true if order has rejectpostonly flag (field is present only when postonly is true)
PrivateGetSubaccountsResponse
object
3 properties
2 required
oco_ref
string
Unique reference that identifies a onecancelsothers (OCO) pair.
projected_delta_total
number
The sum of position deltas without positions that will expire during closest expiration
PrivateApiKeyResponse
object
3 properties
2 required
continuation_with_null
integer
Continuation token for pagination. NULL when no continuation.
api_key_default
boolean
Informs whether this api key is default (field is deprecated and will be removed in the future)
ErrorMessageResponse
object
4 properties
3 required
mobile
boolean
Optional field with value true added only when created with Mobile Application
PrivatePmeSimulateResponse
object
3 properties
2 required
order_id
string
Unique order identifier
PrivateGetAffiliateProgramInfoResponse
object
3 properties
2 required
trigger_fill_condition
string
The fill condition of the linked order (Only for linked order types), default: firsthit. "firsthit" - any execution of the primary order will fully cancel/plac…
client_secret
string
Client secret or MD5 fingerprint of public key used for authentication
username
string
System name or user defined subaccount alias
external_id
string
User ID in external systems
time_in_force
string
Order time in force: "goodtilcancelled", "goodtilday", "fillorkill" or "immediateorcancel"
projected_maintenance_margin
number
Projected maintenance margin. When cross collateral is enabled, this aggregated value is calculated by converting the sum of each cross collateral currency's v…
api_key_enabled
boolean
Informs whether api key is enabled and can be used for authentication
PrivateChangeMarginModelResponse
object
3 properties
2 required
refresh_amount
number
The initial display amount of iceberg order. Iceberg order display amount will be refreshed to that value after match consuming actual display amount. Absent f…
kind
string
Instrument kind: "future", "option", "spot", "futurecombo", "optioncombo"
PublicListApiKeysResponse
object
3 properties
2 required
OkResponse
object
3 properties
2 required
client_id
string
Client identifier used for authentication
post_only
boolean
true for post-only orders only
estimated_liquidation_ratio
number
Estimated Liquidation Ratio is returned only for users without portfolio margining enabled. Multiplying it by future position's market price returns its estima…
label
string
User defined label (up to 64 characters)
role
string
Trade role of the user: maker or taker
custody_name
string
Custody name
rpl
number
Session realized profit and loss
commission
number
Commission paid so far (in base currency)
open_order_price
Price in base currency or "marketprice" in case of open trigger market orders
order_state
string
Order state: "open", "filled", "rejected", "cancelled", "untriggered"
pme_currency
string
The currency for which the Extended Risk Matrix will be calculated. Use CROSS for Cross Collateral simulation.
triggered
boolean
Whether the trigger order has been triggered
The full machine-readable OpenAPI contract behind this narrative.
Other APIs Deribit publishes across the network.