Documentation ¶
Index ¶
- type ActionType
- type ActionsResp
- type Args
- type BalancesResp
- type GetApplicableFeesResp
- type GetMaxTradeAmountsResp
- type GetMinTradeAmountsResp
- type GetSymbolsResp
- type GetTickSizesResp
- type NewOrderReq
- type Newton
- func (n *Newton) Actions(actionType ActionType, limit int, offset int, startDate int64, endDate int64) (*ActionsResp, error)
- func (n *Newton) Balances(asset string) (*BalancesResp, error)
- func (n *Newton) GetApplicableFees() (*GetApplicableFeesResp, error)
- func (n *Newton) GetMaximumTradeAmounts() (*GetMaxTradeAmountsResp, error)
- func (n *Newton) GetMinimumTradeAmount() (*GetMinTradeAmountsResp, error)
- func (n *Newton) GetSymbols(baseAsset, quoteAsset string) (*GetSymbolsResp, error)
- func (n *Newton) GetTickSizes() (*GetTickSizesResp, error)
- func (n *Newton) HealthCheck() error
- func (n *Newton) NewOrder(orderType string, timeInForce string, side string, symbol string, ...) (*OpenOrdersResp, error)
- func (n *Newton) OpenOrders(limit int, offset int, symbol string, timeInForce string) (*OpenOrdersResp, error)
- func (n *Newton) OrdersHistory(limit int, offset int, startDate int64, endDate int64, symbol string, ...) (*OrdersHistoryResp, error)
- type OpenOrdersResp
- type OrdersHistoryResp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionType ¶ added in v0.0.2
type ActionType string
const ( DEPOSIT ActionType = "DEPOSIT" WITHDRAWAL ActionType = "WITHDRAWAL" TRANSACT ActionType = "TRANSACT" )
type ActionsResp ¶
type BalancesResp ¶
type GetApplicableFeesResp ¶ added in v0.0.2
type GetMaxTradeAmountsResp ¶ added in v0.0.2
type GetMinTradeAmountsResp ¶ added in v0.0.2
type GetMinTradeAmountsResp GetMaxTradeAmountsResp
type GetSymbolsResp ¶ added in v0.0.2
type GetSymbolsResp struct {
Symbols []string
}
type GetTickSizesResp ¶ added in v0.0.2
type NewOrderReq ¶
type Newton ¶
type Newton struct {
// contains filtered or unexported fields
}
func (*Newton) Actions ¶
func (n *Newton) Actions(actionType ActionType, limit int, offset int, startDate int64, endDate int64) (*ActionsResp, error)
func (*Newton) GetApplicableFees ¶ added in v0.0.2
func (n *Newton) GetApplicableFees() (*GetApplicableFeesResp, error)
func (*Newton) GetMaximumTradeAmounts ¶ added in v0.0.2
func (n *Newton) GetMaximumTradeAmounts() (*GetMaxTradeAmountsResp, error)
func (*Newton) GetMinimumTradeAmount ¶ added in v0.0.2
func (n *Newton) GetMinimumTradeAmount() (*GetMinTradeAmountsResp, error)
func (*Newton) GetSymbols ¶ added in v0.0.2
func (n *Newton) GetSymbols(baseAsset, quoteAsset string) (*GetSymbolsResp, error)
func (*Newton) GetTickSizes ¶ added in v0.0.2
func (n *Newton) GetTickSizes() (*GetTickSizesResp, error)
func (*Newton) HealthCheck ¶ added in v0.0.2
func (*Newton) OpenOrders ¶
type OpenOrdersResp ¶
type OpenOrdersResp struct { OpenOrders []struct { OrderID string `json:"order_id"` Symbol string `json:"symbol"` Quantity int `json:"quantity"` Price float64 `json:"price"` DateCreated time.Time `json:"date_created"` OrderType string `json:"order_type"` TimeInForce string `json:"time_in_force"` Side string `json:"side"` QuantityLeft float64 `json:"quantity_left"` ExpiryTime time.Time `json:"expiry_time"` } }
type OrdersHistoryResp ¶
type OrdersHistoryResp struct { OrdersHistory []struct { OrderID string `json:"order_id"` Symbol string `json:"symbol"` Quantity int `json:"quantity"` Price float64 `json:"price"` Status string `json:"status"` DateCreated time.Time `json:"date_created"` DateExecuted string `json:"date_executed"` OrderType string `json:"order_type"` TimeInForce string `json:"time_in_force"` Side string `json:"side"` ExpiryTime time.Time `json:"expiry_time,omitempty"` } }
Click to show internal directories.
Click to hide internal directories.