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) GetKlineRecords ¶
func (*Cpk) GetOneOrder ¶
func (*Cpk) GetOrderHistorys ¶
func (*Cpk) GetTrades ¶
非个人,整个交易所的交易记录
func (*Cpk) GetUnfinishOrders ¶
func (*Cpk) LimitBuy ¶
func (*Cpk) LimitSell ¶
func (*Cpk) MarketBuy ¶
Click to show internal directories.
Click to hide internal directories.