Documentation ¶
Index ¶
- func New(base *url.URL, httpClient Doer) *publicClient
- func NewAuthenticatedClient(base *url.URL, s *signer, publicClient *publicClient, doer Doer) *authClient
- func NewSigner(clientId string, apiKey string, secret []byte) *signer
- type ActiveOrder
- type ActiveOrders
- type Asks
- type Balance
- type Balances
- type Bids
- type CreateOrderRequest
- type CreateOrderResponse
- type CreateWithdrawalRequest
- type CreateWithdrawalResponse
- type Doer
- type HistoricOrder
- type HistoricTrade
- type HistoricTrades
- type Market
- type MarketID
- type MarketTicker
- type MarketTickers
- type Markets
- type Order
- type OrderType
- type Orderbook
- type SignedData
- type TradeHistory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAuthenticatedClient ¶
Types ¶
type ActiveOrder ¶
type ActiveOrder struct { Id int64 `json:"id"` Market string `json:"market"` Type OrderType `json:"type"` Price float64 `json:"price,string"` Amount float64 `json:"amount,string"` Remaining float64 `json:"remaining,string"` Matched float64 `json:"matched,string"` Cancelled float64 `json:"cancelled,string"` CreatedAt time.Time `json:"created_at"` }
type ActiveOrders ¶
type ActiveOrders []ActiveOrder
type CreateOrderRequest ¶
type CreateOrderResponse ¶
type CreateOrderResponse struct {
Id int64 `json:"id"`
}
type CreateWithdrawalRequest ¶
type CreateWithdrawalResponse ¶
type CreateWithdrawalResponse struct{}
type HistoricOrder ¶
type HistoricTrade ¶
type HistoricTrade struct { Id string `json:"id"` Market string `json:"market"` Price float64 `json:"price,string"` PriceCurrency string `json:"price_currency"` Amount float64 `json:"amount,string"` AmountCurrency string `json:"amount_currency"` Cost float64 `json:"cost,string"` CostCurrency string `json:"cost_currency"` Side string `json:"side"` IsMaker bool `json:"isMaker"` Date time.Time `json:"date"` }
type HistoricTrades ¶
type HistoricTrades []HistoricTrade
type MarketTicker ¶
type MarketTickers ¶
type MarketTickers []MarketTicker
type OrderType ¶
type OrderType string
func (OrderType) MarshalJSON ¶
func (*OrderType) UnmarshalJSON ¶
type SignedData ¶
type TradeHistory ¶
type TradeHistory []HistoricOrder
Click to show internal directories.
Click to hide internal directories.