Versions in this module Expand all Collapse all v1 v1.0.0 May 3, 2020 Changes in this version + type CancelOrderOpts struct + Order *OrderPost + PrivateKey string + type DepositEthOpts struct + Auth *bind.TransactOpts + type GetOrderBookOpts struct + TokenAddress string + UserAddress string + type GetTokenBalanceOpts struct + TokenAddress string + UserAddress string + type GetTokenPriceOpts struct + TokenSymbol string + type GetTokenTickerOpts struct + TokenSymbol string + type MakeOrderOpts struct + Amount *decimal.Decimal + EthCost *decimal.Decimal + PrivateKey string + TokenAddress string + UserAddress string + type MakeTradeOpts struct + Auth *bind.TransactOpts + EthCost *big.Int + Order *OrderPost + type Options struct + ProviderURI string + type Order struct + Amount string + AmountFilled string + AmountGet string + AmountGive string + AvailableVolume string + AvailableVolumeBase string + EthAvailableVolume string + Expires string + Id string + Nonce string + Price string + R string + S string + TokenGet string + TokenGive string + Updated string + User string + V int + type OrderBook struct + Buys []Order + Sells []Order + type OrderPost struct + AmountGet string + AmountGive string + ContractAddress string + Expires int + Nonce int + R string + S string + TokenGet string + TokenGive string + User string + V int + type PostOrderOpts struct + Order *OrderPost + TokenAddress string + UserAddress string + type Service struct + func New(opts *Options) *Service + func NewForkDelta(opts *Options) *Service + func (s *Service) CancelOrder(opts *CancelOrderOpts) ([]byte, error) + func (s *Service) DepositEth(opts *DepositEthOpts) ([]byte, error) + func (s *Service) GetJSON(url string) (string, error) + func (s *Service) GetOrderBook(opts *GetOrderBookOpts) (*OrderBook, error) + func (s *Service) GetTokenBalance(opts *GetTokenBalanceOpts) (*big.Int, error) + func (s *Service) GetTokenPrice(opts *GetTokenPriceOpts) (*decimal.Decimal, error) + func (s *Service) GetTokenTicker(opts *GetTokenTickerOpts) (*TokenTicker, error) + func (s *Service) MakeOrder(opts *MakeOrderOpts) (string, error) + func (s *Service) MakeTrade(opts *MakeTradeOpts) ([]byte, error) + func (s *Service) ParseStringExpNotation(str string) string + func (s *Service) PostOrder(opts *PostOrderOpts) (string, error) + func (s *Service) WithdrawToken(opts *WithdrawTokenOpts) ([]byte, error) + type TokenTicker struct + Ask *decimal.Decimal + BaseVolume *decimal.Decimal + Bid *decimal.Decimal + Last *decimal.Decimal + PercentChange *decimal.Decimal + QuoteVolume *decimal.Decimal + TokenAddress string + type WithdrawTokenOpts struct + Auth *bind.TransactOpts + TokenAddress string + TokenAmount *big.Int