Documentation ¶
Index ¶
- Constants
- Variables
- type BTCC
- func (b *BTCC) CancelIcebergOrder(orderID int64, market string)
- func (b *BTCC) CancelOrder(orderID int64, market string)
- func (b *BTCC) CancelStopOrder(orderID int64, market string)
- func (b *BTCC) GetAccountInfo(infoType string)
- func (b *BTCC) GetDeposits(currency string, pending bool)
- func (e *BTCC) GetExchangeAccountInfo() (exchange.ExchangeAccountInfo, error)
- func (b *BTCC) GetFee() float64
- func (b *BTCC) GetIcebergOrder(orderID int64, market string)
- func (b *BTCC) GetIcebergOrders(limit, offset int64, market string)
- func (b *BTCC) GetMarketDepth(market string, limit int64)
- func (b *BTCC) GetOrder(orderID int64, market string, detailed bool)
- func (b *BTCC) GetOrderBook(symbol string, limit int) (BTCCOrderbook, error)
- func (b *BTCC) GetOrderbookEx(p pair.CurrencyPair) (orderbook.OrderbookBase, error)
- func (b *BTCC) GetOrders(openonly bool, market string, limit, offset, since int64, detailed bool)
- func (b *BTCC) GetStopOrder(orderID int64, market string)
- func (b *BTCC) GetStopOrders(status, orderType string, stopPrice float64, limit, offset int64, ...)
- func (b *BTCC) GetTicker(symbol string) (BTCCTicker, error)
- func (b *BTCC) GetTickerPrice(p pair.CurrencyPair) (ticker.TickerPrice, error)
- func (b *BTCC) GetTradeHistory(symbol string, limit, sinceTid int64, time time.Time) bool
- func (b *BTCC) GetTradesLast24h(symbol string) bool
- func (b *BTCC) GetTransactions(transType string, limit, offset, since int64, sinceType string)
- func (b *BTCC) GetWithdrawal(withdrawalID int64, currency string)
- func (b *BTCC) GetWithdrawals(currency string, pending bool)
- func (b *BTCC) IcebergOrder(buyOrder bool, price, amount, discAmount, variance float64, market string)
- func (b *BTCC) OnConnect(output chan socketio.Message)
- func (b *BTCC) OnDisconnect(output chan socketio.Message)
- func (b *BTCC) OnError()
- func (b *BTCC) OnGroupOrder(message []byte, output chan socketio.Message)
- func (b *BTCC) OnMessage(message []byte, output chan socketio.Message)
- func (b *BTCC) OnTicker(message []byte, output chan socketio.Message)
- func (b *BTCC) OnTrade(message []byte, output chan socketio.Message)
- func (b *BTCC) PlaceOrder(buyOrder bool, price, amount float64, market string)
- func (b *BTCC) PlaceStopOrder(buyOder bool, stopPrice, price, amount, trailingAmt, trailingPct float64, ...)
- func (b *BTCC) RequestWithdrawal(currency string, amount float64)
- func (b *BTCC) Run()
- func (b *BTCC) SendAuthenticatedHTTPRequest(method string, params []interface{}) (err error)
- func (b *BTCC) SetDefaults()
- func (b *BTCC) Setup(exch config.ExchangeConfig)
- func (b *BTCC) Start()
- func (b *BTCC) WebsocketClient()
- type BTCCBidAsk
- type BTCCCurrencyGeneric
- type BTCCDeposit
- type BTCCDepth
- type BTCCIcebergOrder
- type BTCCOrder
- type BTCCOrderDetail
- type BTCCOrderbook
- type BTCCProfile
- type BTCCStopOrder
- type BTCCTicker
- type BTCCTransaction
- type BTCCWebsocketGroupOrder
- type BTCCWebsocketOrder
- type BTCCWebsocketTicker
- type BTCCWebsocketTrade
- type BTCCWithdrawal
Constants ¶
View Source
const ( BTCC_API_URL = "https://api.btcc.com/" BTCC_API_AUTHENTICATED_METHOD = "api_trade_v1.php" BTCC_API_VER = "2.0.1.3" BTCC_ORDER_BUY = "buyOrder2" BTCC_ORDER_SELL = "sellOrder2" BTCC_ORDER_CANCEL = "cancelOrder" BTCC_ICEBERG_BUY = "buyIcebergOrder" BTCC_ICEBERG_SELL = "sellIcebergOrder" BTCC_ICEBERG_ORDER = "getIcebergOrder" BTCC_ICEBERG_ORDERS = "getIcebergOrders" BTCC_ICEBERG_CANCEL = "cancelIcebergOrder" BTCC_ACCOUNT_INFO = "getAccountInfo" BTCC_DEPOSITS = "getDeposits" BTCC_MARKETDEPTH = "getMarketDepth2" BTCC_ORDER = "getOrder" BTCC_ORDERS = "getOrders" BTCC_TRANSACTIONS = "getTransactions" BTCC_WITHDRAWAL = "getWithdrawal" BTCC_WITHDRAWALS = "getWithdrawals" BTCC_WITHDRAWAL_REQUEST = "requestWithdrawal" BTCC_STOPORDER_BUY = "buyStopOrder" BTCC_STOPORDER_SELL = "sellStopOrder" BTCC_STOPORDER_CANCEL = "cancelStopOrder" BTCC_STOPORDER = "getStopOrder" BTCC_STOPORDERS = "getStopOrders" )
View Source
const (
BTCC_SOCKETIO_ADDRESS = "https://websocket.btcc.com"
)
Variables ¶
View Source
var BTCCSocket *socketio.SocketIO
Functions ¶
This section is empty.
Types ¶
type BTCC ¶
type BTCC struct {
exchange.ExchangeBase
}
func (*BTCC) CancelIcebergOrder ¶
func (*BTCC) CancelOrder ¶
func (*BTCC) CancelStopOrder ¶
func (*BTCC) GetAccountInfo ¶
func (*BTCC) GetDeposits ¶
func (*BTCC) GetExchangeAccountInfo ¶
TODO: Retrieve BTCC info GetExchangeAccountInfo : Retrieves balances for all enabled currencies for the Kraken exchange
func (*BTCC) GetIcebergOrder ¶
func (*BTCC) GetIcebergOrders ¶
func (*BTCC) GetMarketDepth ¶
func (*BTCC) GetOrderBook ¶
func (b *BTCC) GetOrderBook(symbol string, limit int) (BTCCOrderbook, error)
func (*BTCC) GetOrderbookEx ¶
func (b *BTCC) GetOrderbookEx(p pair.CurrencyPair) (orderbook.OrderbookBase, error)
func (*BTCC) GetStopOrder ¶
func (*BTCC) GetStopOrders ¶
func (*BTCC) GetTickerPrice ¶
func (b *BTCC) GetTickerPrice(p pair.CurrencyPair) (ticker.TickerPrice, error)
func (*BTCC) GetTradeHistory ¶
func (*BTCC) GetTradesLast24h ¶
func (*BTCC) GetTransactions ¶
func (*BTCC) GetWithdrawal ¶
func (*BTCC) GetWithdrawals ¶
func (*BTCC) IcebergOrder ¶
func (*BTCC) OnDisconnect ¶
func (*BTCC) OnGroupOrder ¶
func (*BTCC) PlaceOrder ¶
func (*BTCC) PlaceStopOrder ¶
func (*BTCC) RequestWithdrawal ¶
func (*BTCC) SendAuthenticatedHTTPRequest ¶
func (*BTCC) SetDefaults ¶
func (b *BTCC) SetDefaults()
func (*BTCC) Setup ¶
func (b *BTCC) Setup(exch config.ExchangeConfig)
Setup is run on startup to setup exchange with config values
func (*BTCC) WebsocketClient ¶
func (b *BTCC) WebsocketClient()
type BTCCBidAsk ¶
type BTCCCurrencyGeneric ¶
type BTCCDeposit ¶
type BTCCDepth ¶
type BTCCDepth struct { Bid []BTCCBidAsk Ask []BTCCBidAsk }
type BTCCIcebergOrder ¶
type BTCCOrderDetail ¶
type BTCCOrderbook ¶
type BTCCProfile ¶
type BTCCProfile struct { Username string TradePasswordEnabled bool `json:"trade_password_enabled,bool"` OTPEnabled bool `json:"otp_enabled,bool"` TradeFee float64 `json:"trade_fee"` TradeFeeCNYLTC float64 `json:"trade_fee_cnyltc"` TradeFeeBTCLTC float64 `json:"trade_fee_btcltc"` DailyBTCLimit float64 `json:"daily_btc_limit"` DailyLTCLimit float64 `json:"daily_ltc_limit"` BTCDespoitAddress string `json:"btc_despoit_address"` BTCWithdrawalAddress string `json:"btc_withdrawal_address"` LTCDepositAddress string `json:"ltc_deposit_address"` LTCWithdrawalAddress string `json:"ltc_withdrawal_request"` APIKeyPermission int64 `json:"api_key_permission"` }
type BTCCStopOrder ¶
type BTCCTicker ¶
type BTCCTicker struct { High float64 `json:",string"` Low float64 `json:",string"` Buy float64 `json:",string"` Sell float64 `json:",string"` Last float64 `json:",string"` Vol float64 `json:",string"` Date int64 Vwap float64 `json:",string"` Prev_close float64 `json:",string"` Open float64 `json:",string"` }
type BTCCTransaction ¶
type BTCCWebsocketGroupOrder ¶
type BTCCWebsocketGroupOrder struct { Asks []BTCCWebsocketOrder `json:"ask"` Bids []BTCCWebsocketOrder `json:"bid"` Market string `json:"market"` }
type BTCCWebsocketOrder ¶
type BTCCWebsocketTicker ¶
type BTCCWebsocketTicker struct { Buy float64 `json:"buy"` Date float64 `json:"date"` High float64 `json:"high"` Last float64 `json:"last"` Low float64 `json:"low"` Market string `json:"market"` Open float64 `json:"open"` PrevClose float64 `json:"prev_close"` Sell float64 `json:"sell"` Volume float64 `json:"vol"` Vwap float64 `json:"vwap"` }
type BTCCWebsocketTrade ¶
Click to show internal directories.
Click to hide internal directories.