Documentation ¶
Index ¶
- Constants
- type Cpk
- func (c *Cpk) CancelOrder(orderId string, currency CurrencyPair) (bool, error)
- func (c *Cpk) GetAccount() (*Account, error)
- func (c *Cpk) GetDepth(size int, currency CurrencyPair) (*Depth, error)
- func (c *Cpk) GetExchangeName() string
- func (c *Cpk) GetKlineRecords(currency CurrencyPair, period, size, since int) ([]Kline, error)
- func (c *Cpk) GetOneOrder(orderId string, currency CurrencyPair) (*Order, error)
- func (c *Cpk) GetOrderHistorys(currency CurrencyPair, currentPage, pageSize int) ([]Order, error)
- func (c *Cpk) GetOrdersList()
- func (c *Cpk) GetPairList() ([]CurrencyPair, error)
- func (c *Cpk) GetServerTime() error
- func (c *Cpk) GetTicker(currencyPair CurrencyPair) (*Ticker, error)
- func (c *Cpk) GetTrades(currencyPair CurrencyPair, since int64) ([]Trade, error)
- func (c *Cpk) GetUnfinishOrders(currency CurrencyPair) ([]Order, error)
- func (c *Cpk) LimitBuy(amount, price string, currency CurrencyPair) (*Order, error)
- func (c *Cpk) LimitSell(amount, price string, currency CurrencyPair) (*Order, error)
- func (c *Cpk) MarketBuy(amount, price string, currency CurrencyPair) (*Order, error)
- func (c *Cpk) MarketSell(amount, price string, currency CurrencyPair) (*Order, error)
Constants ¶
View Source
const ( API_BASE_URL = "https://api.coinpark.cc/" V1 = "v1/" API_URL = API_BASE_URL + V1 TICKER_API = "mdata?cmd=ticker&pair=%s" ALL_TICKERs = "mdata?cmd=marketAll" Pair_List = "mdata?cmd=pairList" DEPTH_API = "mdata?cmd=depth&pair=%s&size=%d" TRADE_URL = "orderpending" GET_ACCOUNT_API = "transfer" GET_ORDER_API = "orders/%s" //GET_ORDERS_LIST_API = "" GET_UNFINISHED_ORDERS_API = "getUnfinishedOrdersIgnoreTradeType" CANCEL_ORDER_API = TRADE_URL + "/%s/submit-cancel" PLACE_ORDER_API = "order" WITHDRAW_API = "withdraw" CANCELWITHDRAW_API = "cancelWithdraw" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cpk ¶
type Cpk struct {
// contains filtered or unexported fields
}
func (*Cpk) CancelOrder ¶
func (*Cpk) GetAccount ¶
func (*Cpk) GetExchangeName ¶
func (*Cpk) GetKlineRecords ¶
func (*Cpk) GetOneOrder ¶
func (*Cpk) GetOrderHistorys ¶
func (*Cpk) GetOrdersList ¶
func (c *Cpk) GetOrdersList()
func (*Cpk) GetPairList ¶
func (*Cpk) GetServerTime ¶
func (*Cpk) GetUnfinishOrders ¶
func (*Cpk) MarketSell ¶
Click to show internal directories.
Click to hide internal directories.