Skip to content

Latest commit

 

History

History
49 lines (42 loc) · 2.98 KB

model.md

File metadata and controls

49 lines (42 loc) · 2.98 KB

Data Model Detailed Explanation

Order Model Relationship

Order Model Explanation

key type description
id string uniqe id
pair string order's trading pair which is format by {BASE}_{QUOTE}
avgExecutionPrice string the average execution price of the order. The order remains untraded, signified by a zero-average execution price.
action string BUY or SELL
type string order type LIMIT or MARKET or STOP_LIMIT, refer to order type
status int order status, refer to order status
originalAmount string original order amount at the time of placement.
remainingAmount string remaining order amount.
executedAmount string executed order amount.
fee string amount of transaction fees.
feeSymbol string currency of transaction fees.
bitoFee string amount of transaction fees paid on BITO
total string total order transaction value.
seq string order sequnence number
stopPrice string trigger price for a stop-limit order.
condition string price trigger condition for a stop-limit order.
timeInForce string the time in force for an order defines the length of time over which an order will continue working before it is canceled. refer to tif explanation
createdTimestamp string order creation time in msec unit.
updatedTimestamp string order updated time in msec unit.

Order Status Enum

  • -1: Not Triggered
  • 0: In progress
  • 1: In progress (Partial deal)
  • 2: Completed
  • 3: Completed (Partial deal)
  • 4: Cancelled
  • 6: Post-only Cancelled

Order Type Enum

  • LIMIT: limit price order.
  • STOP_LIMIT: limit price order with trigger price and trigger condition.
  • MARKET: market order.
  • SP_OCO_STOPLIMIT: take-profit order is a combination of a stop-loss order with OCO (One Cancels the Other) properties, which only allows placing orders from the web interface.
  • SL_OCO_STOPLIMIT: stop-loss order is a combination of a stop-loss order with OCO (One Cancels the Other) properties, which only allows placing orders from the web interface.