Documentation ¶
Index ¶
- Constants
- type Allcoin
- func (ac *Allcoin) CancelOrder(orderId string, currencyPair CurrencyPair) (bool, error)
- func (ac *Allcoin) GetAccount() (*Account, error)
- func (ac *Allcoin) GetDepth(size int, currencyPair CurrencyPair) (*Depth, error)
- func (ac *Allcoin) GetExchangeName() string
- func (ac *Allcoin) GetKlineRecords(currency CurrencyPair, period, size, since int) ([]Kline, error)
- func (ac *Allcoin) GetOneOrder(orderId string, currencyPair CurrencyPair) (*Order, error)
- func (ac *Allcoin) GetOrderHistorys(currency CurrencyPair, opt ...OptionalParameter) ([]Order, error)
- func (ac *Allcoin) GetTicker(currency CurrencyPair) (*Ticker, error)
- func (ac *Allcoin) GetTrades(currencyPair CurrencyPair, since int64) ([]Trade, error)
- func (ac *Allcoin) GetUnfinishOrders(currencyPair CurrencyPair) ([]Order, error)
- func (ac *Allcoin) LimitBuy(amount, price string, currencyPair CurrencyPair, ...) (*Order, error)
- func (ac *Allcoin) LimitSell(amount, price string, currencyPair CurrencyPair, ...) (*Order, error)
- func (ac *Allcoin) MarketBuy(amount, price string, currencyPair CurrencyPair) (*Order, error)
- func (ac *Allcoin) MarketSell(amount, price string, currencyPair CurrencyPair) (*Order, error)
Constants ¶
View Source
const ( API_BASE_URL = "https://www.allcoin.ca/" TICKER_URI = "Api_Market/getCoinTrade" TICKER_URI_2 = "Api_Order/ticker" TICKERS_URI = "ticker/allBookTickers" DEPTH_URI = "Api_Order/depth" ACCOUNT_URI = "Api_User/userBalance" ORDER_URI = "Api_Order/coinTrust" ORDER_CANCEL_URI = "Api_Order/cancel" ORDER_INFO_URI = "Api_Order/orderInfo" UNFINISHED_ORDERS_INFO = "Api_Order/trustList" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Allcoin ¶
type Allcoin struct {
// contains filtered or unexported fields
}
func (*Allcoin) CancelOrder ¶
func (*Allcoin) GetAccount ¶
func (*Allcoin) GetExchangeName ¶
func (*Allcoin) GetKlineRecords ¶
func (*Allcoin) GetOneOrder ¶
func (*Allcoin) GetOrderHistorys ¶
func (*Allcoin) GetUnfinishOrders ¶
func (*Allcoin) MarketSell ¶
Click to show internal directories.
Click to hide internal directories.