Documentation ¶
Index ¶
- type PrvApi
- func (s *PrvApi) CancelOrder(pair CurrencyPair, id string, opt ...OptionParameter) ([]byte, error)
- func (s *PrvApi) CreateOrder(pair CurrencyPair, qty, price float64, side OrderSide, orderTy OrderType, ...) (*Order, []byte, error)
- func (s *PrvApi) DoAuthRequest(method, reqUrl string, params *url.Values, header map[string]string) ([]byte, error)
- func (s *PrvApi) GetAccount(coin string) (map[string]Account, []byte, error)
- func (s *PrvApi) GetHistoryOrders(pair CurrencyPair, opt ...OptionParameter) ([]Order, []byte, error)
- func (s *PrvApi) GetOrderInfo(pair CurrencyPair, id string, opt ...OptionParameter) (*Order, []byte, error)
- func (s *PrvApi) GetPendingOrders(pair CurrencyPair, opt ...OptionParameter) ([]Order, []byte, error)
- type RespUnmarshaler
- func (u *RespUnmarshaler) UnmarshalCancelOrderResponse(data []byte) error
- func (u *RespUnmarshaler) UnmarshalCreateOrderResponse(data []byte) (*Order, error)
- func (u *RespUnmarshaler) UnmarshalGetDepthResponse(data []byte) (*Depth, error)
- func (u *RespUnmarshaler) UnmarshalGetKlineResponse(data []byte) ([]Kline, error)
- func (u *RespUnmarshaler) UnmarshalGetPendingOrdersResponse(data []byte) ([]Order, error)
- func (u *RespUnmarshaler) UnmarshalGetTickerResponse(data []byte) (*Ticker, error)
- func (u *RespUnmarshaler) UnmarshalResponse(data []byte, res interface{}) error
- type Spot
- func (s *Spot) DoNoAuthRequest(method, reqUrl string, params *url.Values, headers map[string]string) ([]byte, error)
- func (s *Spot) GetDepth(pair CurrencyPair, size int, opts ...OptionParameter) (*Depth, []byte, error)
- func (s *Spot) GetExchangeInfo() (map[string]CurrencyPair, []byte, error)
- func (s *Spot) GetKline(pair CurrencyPair, period KlinePeriod, opts ...OptionParameter) ([]Kline, []byte, error)
- func (s *Spot) GetName() string
- func (s *Spot) GetTicker(pair CurrencyPair, opt ...OptionParameter) (*Ticker, []byte, error)
- func (s *Spot) NewPrvApi(apiOpts ...ApiOption) *PrvApi
- func (s *Spot) WithUnmarshalerOptions(opts ...UnmarshalerOption) *Spot
- func (s *Spot) WithUriOption(uriOpts ...UriOption)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PrvApi ¶
type PrvApi struct { *Spot // contains filtered or unexported fields }
func (*PrvApi) CancelOrder ¶
func (*PrvApi) CreateOrder ¶
func (*PrvApi) DoAuthRequest ¶
func (*PrvApi) GetAccount ¶
func (*PrvApi) GetHistoryOrders ¶
func (*PrvApi) GetOrderInfo ¶
func (*PrvApi) GetPendingOrders ¶
type RespUnmarshaler ¶
type RespUnmarshaler struct { }
func (*RespUnmarshaler) UnmarshalCancelOrderResponse ¶
func (u *RespUnmarshaler) UnmarshalCancelOrderResponse(data []byte) error
func (*RespUnmarshaler) UnmarshalCreateOrderResponse ¶
func (u *RespUnmarshaler) UnmarshalCreateOrderResponse(data []byte) (*Order, error)
func (*RespUnmarshaler) UnmarshalGetDepthResponse ¶
func (u *RespUnmarshaler) UnmarshalGetDepthResponse(data []byte) (*Depth, error)
func (*RespUnmarshaler) UnmarshalGetKlineResponse ¶
func (u *RespUnmarshaler) UnmarshalGetKlineResponse(data []byte) ([]Kline, error)
func (*RespUnmarshaler) UnmarshalGetPendingOrdersResponse ¶
func (u *RespUnmarshaler) UnmarshalGetPendingOrdersResponse(data []byte) ([]Order, error)
func (*RespUnmarshaler) UnmarshalGetTickerResponse ¶
func (u *RespUnmarshaler) UnmarshalGetTickerResponse(data []byte) (*Ticker, error)
func (*RespUnmarshaler) UnmarshalResponse ¶
func (u *RespUnmarshaler) UnmarshalResponse(data []byte, res interface{}) error
type Spot ¶
type Spot struct { UnmarshalerOpts UnmarshalerOptions UriOpts UriOptions }
func (*Spot) DoNoAuthRequest ¶
func (*Spot) GetExchangeInfo ¶
func (*Spot) WithUnmarshalerOptions ¶
func (*Spot) WithUriOption ¶
func (s *Spot) WithUriOption(uriOpts ...UriOption)
Click to show internal directories.
Click to hide internal directories.