Documentation ¶
Index ¶
- Constants
- type ANX
- func (a *ANX) CreateNewSubAccount(currency, name string) (string, error)
- func (a *ANX) GetAPIKey(username, password, otp, deviceID string) (string, string, error)
- func (a *ANX) GetDataToken() (string, error)
- func (a *ANX) GetDepositAddress(currency, name string, new bool) (string, error)
- func (a *ANX) GetExchangeAccountInfo() (exchange.AccountInfo, error)
- func (a *ANX) GetFee(maker bool) float64
- func (a *ANX) GetOrderbookEx(p pair.CurrencyPair, assetType string) (orderbook.Base, error)
- func (a *ANX) GetTicker(currency string) (ANXTicker, error)
- func (a *ANX) GetTickerPrice(p pair.CurrencyPair, assetType string) (ticker.Price, error)
- func (a *ANX) NewOrder(orderType string, buy bool, ...) error
- func (a *ANX) OrderInfo(orderID string) (ANXOrderResponse, error)
- func (a *ANX) Run()
- func (a *ANX) Send(currency, address, otp, amount string) (string, error)
- func (a *ANX) SendAuthenticatedHTTPRequest(path string, params map[string]interface{}, result interface{}) error
- func (a *ANX) SetDefaults()
- func (a *ANX) Setup(exch config.ExchangeConfig)
- func (a *ANX) Start()
- func (a *ANX) UpdateOrderbook(p pair.CurrencyPair, assetType string) (orderbook.Base, error)
- func (a *ANX) UpdateTicker(p pair.CurrencyPair, assetType string) (ticker.Price, error)
- type ANXOrder
- type ANXOrderResponse
- type ANXTicker
- type ANXTickerComponent
Constants ¶
View Source
const ( ANX_API_URL = "https://anxpro.com/" ANX_API_VERSION = "3" ANX_APIKEY = "apiKey" ANX_DATA_TOKEN = "dataToken" ANX_ORDER_NEW = "order/new" ANX_ORDER_INFO = "order/info" ANX_SEND = "send" ANX_SUBACCOUNT_NEW = "subaccount/new" ANX_RECEIVE_ADDRESS = "receive" ANX_CREATE_ADDRESS = "receive/create" ANX_TICKER = "money/ticker" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ANX ¶
type ANX struct {
exchange.Base
}
func (*ANX) CreateNewSubAccount ¶
func (*ANX) GetDataToken ¶
func (*ANX) GetDepositAddress ¶
func (*ANX) GetExchangeAccountInfo ¶
GetExchangeAccountInfo : Retrieves balances for all enabled currencies for the ANX exchange
func (*ANX) GetOrderbookEx ¶
GetOrderbookEx returns the orderbook for a currency pair
func (*ANX) GetTickerPrice ¶
GetTickerPrice returns the ticker for a currency pair
func (*ANX) SendAuthenticatedHTTPRequest ¶
func (*ANX) SetDefaults ¶
func (a *ANX) SetDefaults()
func (*ANX) Setup ¶
func (a *ANX) Setup(exch config.ExchangeConfig)
Setup is run on startup to setup exchange with config values
func (*ANX) UpdateOrderbook ¶
UpdateOrderbook updates and returns the orderbook for a currency pair
func (*ANX) UpdateTicker ¶
UpdateTicker updates and returns the ticker for a currency pair
type ANXOrder ¶
type ANXOrder struct { OrderType string `json:"orderType"` BuyTradedCurrency bool `json:"buyTradedCurrency"` TradedCurrency string `json:"tradedCurrency"` SettlementCurrency string `json:"settlementCurrency"` TradedCurrencyAmount string `json:"tradedCurrencyAmount"` SettlementCurrencyAmount string `json:"settlementCurrencyAmount"` LimitPriceInSettlementCurrency string `json:"limitPriceInSettlementCurrency"` ReplaceExistingOrderUUID string `json:"replaceExistingOrderUuid"` ReplaceOnlyIfActive bool `json:"replaceOnlyIfActive"` }
type ANXOrderResponse ¶
type ANXOrderResponse struct { BuyTradedCurrency bool `json:"buyTradedCurrency"` ExecutedAverageRate string `json:"executedAverageRate"` LimitPriceInSettlementCurrency string `json:"limitPriceInSettlementCurrency"` OrderID string `json:"orderId"` OrderStatus string `json:"orderStatus"` OrderType string `json:"orderType"` ReplaceExistingOrderUUID string `json:"replaceExistingOrderId"` SettlementCurrency string `json:"settlementCurrency"` SettlementCurrencyAmount string `json:"settlementCurrencyAmount"` SettlementCurrencyOutstanding string `json:"settlementCurrencyOutstanding"` Timestamp int64 `json:"timestamp"` TradedCurrency string `json:"tradedCurrency"` TradedCurrencyAmount string `json:"tradedCurrencyAmount"` TradedCurrencyOutstanding string `json:"tradedCurrencyOutstanding"` }
type ANXTicker ¶
type ANXTicker struct { Result string `json:"result"` Data struct { High ANXTickerComponent `json:"high"` Low ANXTickerComponent `json:"low"` Avg ANXTickerComponent `json:"avg"` Vwap ANXTickerComponent `json:"vwap"` Vol ANXTickerComponent `json:"vol"` Last ANXTickerComponent `json:"last"` Buy ANXTickerComponent `json:"buy"` Sell ANXTickerComponent `json:"sell"` Now string `json:"now"` UpdateTime string `json:"dataUpdateTime"` } `json:"data"` }
Click to show internal directories.
Click to hide internal directories.