Documentation ¶
Overview ¶
Package dax provides a trading api sdk and subscribe websocket
Index ¶
- Constants
- type Dax
- func (d *Dax) CancelOrder(currencyPair, oid string) (*HttpResponse, error)
- func (d *Dax) GetAccountInfo() (*HttpResponse, error)
- func (d *Dax) GetMyOrders(currencyPair string) (*HttpResponse, error)
- func (d *Dax) PlaceOrder(order Order) (*HttpResponse, error)
- func (d *Dax) SubscribeExchange(market string, dataCh chan<- []byte, stop <-chan struct{})
- type HttpResponse
- type Order
- type SubscribeCmd
Constants ¶
View Source
const (
API_BASE = "https://api-dax.btcc.com/tradeapi/" // Dax API endpoint
)
View Source
const (
DAX_WSS_API = "wss://ws-dax.btcc.com/ws/pub"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dax ¶
type Dax struct { ApiBase string Credentials *aws.Credentials Client *http.Client }
func (*Dax) CancelOrder ¶
func (d *Dax) CancelOrder(currencyPair, oid string) (*HttpResponse, error)
func (*Dax) GetAccountInfo ¶
func (d *Dax) GetAccountInfo() (*HttpResponse, error)
func (*Dax) GetMyOrders ¶
func (d *Dax) GetMyOrders(currencyPair string) (*HttpResponse, error)
for open orders go to subscribe websocket api
func (*Dax) PlaceOrder ¶
func (d *Dax) PlaceOrder(order Order) (*HttpResponse, error)
func (*Dax) SubscribeExchange ¶
type HttpResponse ¶
Click to show internal directories.
Click to hide internal directories.