Documentation ¶
Index ¶
- Variables
- type Address
- type Balance
- type Client
- func (c *Client) CancelTradeByID(market, tradeID string) error
- func (c *Client) CreateTrade(market string, direction types.TradeDirection, quantity float64) (string, error)
- func (c *Client) CreateWithdrawal(chain, address string, quantity float64) (string, error)
- func (c *Client) GenerateTradePath(fromChain, toChain string) ([]*types.Trade, error)
- func (c *Client) GetAccountStatus() error
- func (c *Client) GetDepositAddress(chain string) (string, error)
- func (c *Client) GetDepositByID(chain, depositID string) (*types.Deposit, error)
- func (c *Client) GetDepositByTxID(chain, txid string) (*types.Deposit, error)
- func (c *Client) GetHistoricalRates(market string, startTime, endTime time.Time, invert bool) (map[time.Time]float64, error)
- func (c *Client) GetOutputThresholds() map[string]*big.Int
- func (c *Client) GetPrices(inputPaths map[string]map[string]*big.Int) (map[string]map[string]float64, error)
- func (c *Client) GetRate(market string) (float64, error)
- func (c *Client) GetTradeByID(market, tradeID string, inputValue float64) (*types.Trade, error)
- func (c *Client) GetTradeTimeout() time.Duration
- func (c *Client) GetWalletBalance(chain string) (float64, float64, error)
- func (c *Client) GetWalletStatus(chain string) (bool, bool, error)
- func (c *Client) GetWithdrawalByID(chain, withdrawalID string) (*types.Withdrawal, error)
- func (c *Client) ID() types.ExchangeID
- func (c *Client) NeedsWithdrawalFeeSubtraction() bool
- func (c *Client) TransferToMainAccount(chain string, value float64) error
- func (c *Client) TransferToTradeAccount(chain string, value float64) error
- type Currency
- type Deposit
- type HistoricalRateResponse
- type Order
- type RateResponse
- type Withdrawal
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrEmptyTarget = fmt.Errorf("nil target after marshalling")
)
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CancelTradeByID ¶
func (*Client) CreateTrade ¶
func (*Client) CreateWithdrawal ¶
func (*Client) GenerateTradePath ¶
func (*Client) GetAccountStatus ¶
func (*Client) GetDepositByID ¶
func (*Client) GetDepositByTxID ¶
func (*Client) GetHistoricalRates ¶
func (*Client) GetTradeByID ¶
func (*Client) GetTradeTimeout ¶
func (*Client) GetWalletBalance ¶
func (*Client) GetWithdrawalByID ¶
func (c *Client) GetWithdrawalByID(chain, withdrawalID string) (*types.Withdrawal, error)
func (*Client) ID ¶
func (c *Client) ID() types.ExchangeID
func (*Client) NeedsWithdrawalFeeSubtraction ¶
func (*Client) TransferToMainAccount ¶
type Currency ¶
type Currency struct { Symbol string `json:"symbol"` Name string `json:"name"` CoinType string `json:"coinType"` Status string `json:"status"` MinConfirmations int `json:"minConfirmations"` Notice string `json:"notice"` TxFee string `json:"txFee"` LogoURL string `json:"logoUrl,omitempty"` ProhibitedIn []interface{} `json:"prohibitedIn"` BaseAddress string `json:"baseAddress,omitempty"` AssociatedTermsOfService []interface{} `json:"associatedTermsOfService"` }
type Deposit ¶
type Deposit struct { ID string `json:"id"` CurrencySymbol string `json:"currencySymbol"` Quantity string `json:"quantity"` CryptoAddress string `json:"cryptoAddress"` CryptoAddressTag string `json:"cryptoAddressTag"` TxID string `json:"txId"` Confirmations int32 `json:"confirmations"` UpdatedAt string `json:"updatedAt"` CompletedAt string `json:"completedAt"` Status string `json:"status"` Source string `json:"source"` }
type HistoricalRateResponse ¶
type Order ¶
type Order struct { ID string `json:"id"` MarketSymbol string `json:"marketSymbol"` Direction string `json:"direction"` Type string `json:"type"` Quantity string `json:"quantity"` Limit string `json:"limit"` Ceiling string `json:"ceiling"` TimeInForce string `json:"timeInForce"` ClientOrderID string `json:"clientOrderId"` FillQuantity string `json:"fillQuantity"` Commission string `json:"commission"` Proceeds string `json:"proceeds"` Status string `json:"status"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` ClosedAt time.Time `json:"closedAt"` OrderToCancel interface{} `json:"orderToCancel"` }
type RateResponse ¶
type Withdrawal ¶
type Withdrawal struct { ID string `json:"id"` CurrencySymbol string `json:"currencySymbol"` Quantity string `json:"quantity"` CryptoAddress string `json:"cryptoAddress"` CryptoAddressTag string `json:"cryptoAddressTag"` TxCost string `json:"txCost"` TxID string `json:"txId"` Status string `json:"status"` CreatedAt time.Time `json:"createdAt"` CompletedAt time.Time `json:"completedAt"` }
Click to show internal directories.
Click to hide internal directories.