Tradehub.Tx.CreateOrder (Tradehub v0.1.13) View Source
The payload message of the order/CreateOrder
private endpoint.
Link to this section Summary
Types
Order types supported by the Tradehub
The shopping side of the order.
Payload message
Time in force
Link to this section Types
Specs
order_type() :: :limit
Order types supported by the Tradehub
Specs
side() :: :buy | :sell
The shopping side of the order.
Specs
t() :: %Tradehub.Tx.CreateOrder{ is_post_only: boolean(), is_reduce_only: boolean(), market: String.t(), originator: Tradehub.Wallet.address(), price: String.t(), quantity: integer(), side: side(), stop_price: String.t(), time_in_force: time_in_force(), trigger_type: String.t(), type: order_type() }
Payload message
Specs
time_in_force() :: :gtc | :fok | :ioc
Time in force
Link to this section Functions
Specs
Specs
type() :: String.t()
Callback implementation for c:Tradehub.Tx.Validator.type/0
.
Specs
Validate the payload.