Deribit · Schema

Trade Trigger

Contains information about the trade trigger state

DerivativesCryptocurrencyBitcoinEthereumOptionsFuturesPerpetualsTradingMarket DataBlock TradingWebSocketFinancial

Properties

Name Type Description
state object
price number Price of the trade trigger
direction string Direction of the trade trigger
cancel_reason string Reason for cancellation, present only when state is cancelled
View JSON Schema on GitHub

JSON Schema

trade_trigger.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://api-evangelist.github.io/deribit/json-schema/trade_trigger.json",
  "title": "Trade Trigger",
  "properties": {
    "state": {
      "$ref": "#/components/schemas/trade_trigger_state"
    },
    "price": {
      "type": "number",
      "description": "Price of the trade trigger"
    },
    "direction": {
      "type": "string",
      "enum": [
        "buy",
        "sell"
      ],
      "description": "Direction of the trade trigger"
    },
    "cancel_reason": {
      "type": "string",
      "description": "Reason for cancellation, present only when state is cancelled"
    }
  },
  "required": [
    "state",
    "price",
    "direction"
  ],
  "type": "object",
  "description": "Contains information about the trade trigger state"
}