Versions in this module Expand all Collapse all v0 v0.1.2 Jan 9, 2020 Changes in this version + type Client struct + func NewHuobiClient(signer Signer, interf EndpointsInterface) *Client + func (ep *Client) CancelOrder(symbol string, id uint64) (exchange.HuobiCancel, error) + func (ep *Client) DepositHistory(tokens []common.Token) (exchange.HuobiDeposits, error) + func (ep *Client) GetAccountTradeHistory(base, quote common.Token) (exchange.HuobiTradeHistory, error) + func (ep *Client) GetAccounts() (exchange.HuobiAccounts, error) + func (ep *Client) GetDepositAddress(asset string) (exchange.HuobiDepositAddress, error) + func (ep *Client) GetDepthOnePair(baseID, quoteID string) (exchange.HuobiDepth, error) + func (ep *Client) GetExchangeInfo() (exchange.HuobiExchangeInfo, error) + func (ep *Client) GetInfo() (exchange.HuobiInfo, error) + func (ep *Client) GetResponse(method string, reqURL string, params map[string]string, signNeeded bool) ([]byte, error) + func (ep *Client) OrderStatus(symbol string, id uint64) (exchange.HuobiOrder, error) + func (ep *Client) Trade(tradeType string, base, quote common.Token, rate, amount float64, ...) (exchange.HuobiTrade, error) + func (ep *Client) Withdraw(token common.Token, amount *big.Int, address ethereum.Address) (string, error) + func (ep *Client) WithdrawHistory(tokens []common.Token) (exchange.HuobiWithdraws, error) + type Endpoints struct + func (r *Endpoints) AuthenticatedEndpoint() string + func (r *Endpoints) PublicEndpoint() string + type EndpointsInterface interface + AuthenticatedEndpoint func() string + PublicEndpoint func() string + func NewEndpoints(baseURL string) EndpointsInterface v0.1.1 Sep 3, 2019 Changes in this version + type BoltStorage struct + func NewBoltStorage(path string) (*BoltStorage, error) + func (bs *BoltStorage) GetIntermedatorTx(id common.ActivityID) (common.TXEntry, error) + func (bs *BoltStorage) GetPendingIntermediateTXs() (map[common.ActivityID]common.TXEntry, error) + func (bs *BoltStorage) GetTradeHistory(fromTime, toTime uint64) (common.ExchangeTradeHistory, error) + func (bs *BoltStorage) StoreIntermediateTx(id common.ActivityID, data common.TXEntry) error + func (bs *BoltStorage) StorePendingIntermediateTx(id common.ActivityID, data common.TXEntry) error + func (bs *BoltStorage) StoreTradeHistory(data common.ExchangeTradeHistory) error + type DevInterface struct + func NewDevInterface() *DevInterface + func (d *DevInterface) AuthenticatedEndpoint() string + func (d *DevInterface) PublicEndpoint() string + type Endpoint struct + func NewHuobiEndpoint(signer Signer, interf Interface) *Endpoint + func (ep *Endpoint) CancelOrder(symbol string, id uint64) (exchange.HuobiCancel, error) + func (ep *Endpoint) DepositHistory(tokens []common.Token) (exchange.HuobiDeposits, error) + func (ep *Endpoint) GetAccountTradeHistory(base, quote common.Token) (exchange.HuobiTradeHistory, error) + func (ep *Endpoint) GetAccounts() (exchange.HuobiAccounts, error) + func (ep *Endpoint) GetDepositAddress(asset string) (exchange.HuobiDepositAddress, error) + func (ep *Endpoint) GetDepthOnePair(baseID, quoteID string) (exchange.HuobiDepth, error) + func (ep *Endpoint) GetExchangeInfo() (exchange.HuobiExchangeInfo, error) + func (ep *Endpoint) GetInfo() (exchange.HuobiInfo, error) + func (ep *Endpoint) GetResponse(method string, reqURL string, params map[string]string, signNeeded bool) ([]byte, error) + func (ep *Endpoint) OrderStatus(symbol string, id uint64) (exchange.HuobiOrder, error) + func (ep *Endpoint) Trade(tradeType string, base, quote common.Token, rate, amount float64, ...) (exchange.HuobiTrade, error) + func (ep *Endpoint) Withdraw(token common.Token, amount *big.Int, address ethereum.Address) (string, error) + func (ep *Endpoint) WithdrawHistory(tokens []common.Token) (exchange.HuobiWithdraws, error) + type Interface interface + AuthenticatedEndpoint func() string + PublicEndpoint func() string + type KovanInterface struct + func NewKovanInterface(flagVariable string) *KovanInterface + func (ki *KovanInterface) AuthenticatedEndpoint() string + func (ki *KovanInterface) PublicEndpoint() string + type RealInterface struct + func NewRealInterface() *RealInterface + func (r *RealInterface) AuthenticatedEndpoint() string + func (r *RealInterface) PublicEndpoint() string + type RopstenInterface struct + func NewRopstenInterface(flagVariable string) *RopstenInterface + func (r *RopstenInterface) AuthenticatedEndpoint() string + func (r *RopstenInterface) PublicEndpoint() string + type Signer struct + Key string + Secret string + func NewSigner(key, secret string) *Signer + func NewSignerFromFile(path string) Signer + func (s Signer) GetKey() string + func (s Signer) Sign(msg string) string + type SimulatedInterface struct + func NewSimulatedInterface(flagVariable string) *SimulatedInterface + func (s *SimulatedInterface) AuthenticatedEndpoint() string + func (s *SimulatedInterface) PublicEndpoint() string