Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllOrderSide = []OrderSide{ OrderSideBid, OrderSideAsk, }
View Source
var AllOrderType = []OrderType{ OrderTypeInstant, OrderTypeMarket, OrderTypeLimit, OrderTypeStop, OrderTypeTrailingStop, }
View Source
var AllOutboxStatus = []OutboxStatus{ OutboxStatusPending, OutboxStatusSucceeded, OutboxStatusFailed, }
Functions ¶
This section is empty.
Types ¶
type CancelOrderInput ¶
type CurrencyInput ¶
type ExchangeInput ¶
type ExchangeInput struct {
ID string `json:"id"`
}
type OrderDetailsInput ¶
type OrderDetailsInput struct { BaseCurrency *CurrencyInput `json:"baseCurrency"` CounterCurrency *CurrencyInput `json:"counterCurrency"` Type OrderType `json:"type"` Side OrderSide `json:"side"` Quantity *QuantityInput `json:"quantity"` Price *QuantityInput `json:"price"` }
type OrderPayload ¶
type OrderSide ¶
type OrderSide string
func (OrderSide) MarshalGQL ¶
func (*OrderSide) UnmarshalGQL ¶
type OrderType ¶
type OrderType string
func (OrderType) MarshalGQL ¶
func (*OrderType) UnmarshalGQL ¶
type OutboxStatus ¶
type OutboxStatus string
const ( OutboxStatusPending OutboxStatus = "PENDING" OutboxStatusSucceeded OutboxStatus = "SUCCEEDED" OutboxStatusFailed OutboxStatus = "FAILED" )
func (OutboxStatus) IsValid ¶
func (e OutboxStatus) IsValid() bool
func (OutboxStatus) MarshalGQL ¶
func (e OutboxStatus) MarshalGQL(w io.Writer)
func (OutboxStatus) String ¶
func (e OutboxStatus) String() string
func (*OutboxStatus) UnmarshalGQL ¶
func (e *OutboxStatus) UnmarshalGQL(v interface{}) error
type QuantityInput ¶
type SubmitOrderInput ¶
type SubmitOrderInput struct { ClientMutationID *string `json:"clientMutationId"` OrderDetails *OrderDetailsInput `json:"orderDetails"` PreferredExchanges []*ExchangeInput `json:"preferredExchanges"` }
Click to show internal directories.
Click to hide internal directories.