{
  "$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."
    }
  }
}