Backpack · Schema

Backpack Trade

JSON Schema for the Backpack Exchange Trade resource, extracted from the Backpack Exchange OpenAPI 3.0 specification.

CryptoExchangeWalletTradingPerpetualsSolanaWeb3DeFixNFTAnchorCoralCentralized ExchangeSelf-Custody

Properties

Name Type Description
id integer Id of the trade.
price string Price of the trade.
quantity string Quantity of the trade in the base asset.
quoteQuantity string Quantity of the trade in the quote asset.
timestamp integer Timestamp of the trade (server time).
isBuyerMaker boolean Whether the buyer was the maker order.
View JSON Schema on GitHub

JSON Schema

backpack-trade-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/backpack/main/json-schema/backpack-trade-schema.json",
  "title": "Backpack Trade",
  "description": "JSON Schema for the Backpack Exchange Trade resource, extracted from the Backpack Exchange OpenAPI 3.0 specification.",
  "type": "object",
  "required": [
    "price",
    "quantity",
    "quoteQuantity",
    "timestamp",
    "isBuyerMaker"
  ],
  "properties": {
    "id": {
      "type": "integer",
      "format": "int64",
      "description": "Id of the trade."
    },
    "price": {
      "type": "string",
      "format": "decimal",
      "description": "Price of the trade."
    },
    "quantity": {
      "type": "string",
      "format": "decimal",
      "description": "Quantity of the trade in the base asset."
    },
    "quoteQuantity": {
      "type": "string",
      "format": "decimal",
      "description": "Quantity of the trade in the quote asset."
    },
    "timestamp": {
      "type": "integer",
      "format": "int64",
      "description": "Timestamp of the trade (server time)."
    },
    "isBuyerMaker": {
      "type": "boolean",
      "description": "Whether the buyer was the maker order."
    }
  }
}