Binance.Structs.OrderResponse (binance v2.0.1)

Response tructure for POST /api/v3/order endpoint. All prices and quantities are string representation of floats with 8 decimals (eg: "orig_qty": "10.00000000")

Summary

Types

side: "BUY" | "SELL"

status: "NEW" | "PARTIALLY_FILLED" | "FILLED" | "CANCELED" | "PENDING_CANCEL" | "REJECTED" | "EXPIRED"

t()

type: "LIMIT" | "MARKET" | "STOP" | "STOP_MARKET" | "TAKE_PROFIT" | "TAKE_PROFIT_MARKET" | "LIMIT_MAKER"

Types

@type side() :: String.t()

side: "BUY" | "SELL"

@type status() :: String.t()

status: "NEW" | "PARTIALLY_FILLED" | "FILLED" | "CANCELED" | "PENDING_CANCEL" | "REJECTED" | "EXPIRED"

@type t() :: %Binance.Structs.OrderResponse{
  client_order_id: String.t(),
  executed_qty: String.t(),
  order_id: non_neg_integer(),
  orig_qty: String.t(),
  price: String.t(),
  side: side(),
  status: status(),
  symbol: String.t(),
  time_in_force: non_neg_integer(),
  transact_time: non_neg_integer(),
  type: type()
}
@type type() :: String.t()

type: "LIMIT" | "MARKET" | "STOP" | "STOP_MARKET" | "TAKE_PROFIT" | "TAKE_PROFIT_MARKET" | "LIMIT_MAKER"

Functions

Link to this function

new(map_or_kwlist, opts \\ [])

@spec new(ExConstructor.map_or_kwlist(), Keyword.t()) ::
  %Binance.Structs.OrderResponse{
    client_order_id: term(),
    executed_qty: term(),
    order_id: term(),
    orig_qty: term(),
    price: term(),
    side: term(),
    status: term(),
    symbol: term(),
    time_in_force: term(),
    transact_time: term(),
    type: term()
  }