Documentation
¶
Index ¶
- Constants
- type BTCE
- func (b *BTCE) CancelOrder(OrderID int64) (bool, error)
- func (b *BTCE) CreateCoupon(currency string, amount float64) (BTCECreateCoupon, error)
- func (b *BTCE) GetAccountInfo() (BTCEAccountInfo, error)
- func (b *BTCE) GetActiveOrders(pair string) (map[string]BTCEActiveOrders, error)
- func (b *BTCE) GetDepth(symbol string) (BTCEOrderbook, error)
- func (e *BTCE) GetExchangeAccountInfo() (exchange.ExchangeAccountInfo, error)
- func (b *BTCE) GetFee() float64
- func (b *BTCE) GetInfo() (BTCEInfo, error)
- func (b *BTCE) GetOrderInfo(OrderID int64) (map[string]BTCEOrderInfo, error)
- func (b *BTCE) GetOrderbookEx(p pair.CurrencyPair) (orderbook.OrderbookBase, error)
- func (b *BTCE) GetTicker(symbol string) (map[string]BTCeTicker, error)
- func (b *BTCE) GetTickerPrice(p pair.CurrencyPair) (ticker.TickerPrice, error)
- func (b *BTCE) GetTradeHistory(TIDFrom, Count, TIDEnd int64, order, since, end, pair string) (map[string]BTCETradeHistory, error)
- func (b *BTCE) GetTrades(symbol string) ([]BTCETrades, error)
- func (b *BTCE) GetTransactionHistory(TIDFrom, Count, TIDEnd int64, order, since, end string) (map[string]BTCETransHistory, error)
- func (b *BTCE) RedeemCoupon(coupon string) (BTCERedeemCoupon, error)
- func (b *BTCE) Run()
- func (b *BTCE) SendAuthenticatedHTTPRequest(method string, values url.Values, result interface{}) (err error)
- func (b *BTCE) SetDefaults()
- func (b *BTCE) Setup(exch config.ExchangeConfig)
- func (b *BTCE) Start()
- func (b *BTCE) Trade(pair, orderType string, amount, price float64) (float64, error)
- func (b *BTCE) WithdrawCoins(coin string, amount float64, address string) (BTCEWithdrawCoins, error)
- type BTCEAccountInfo
- type BTCEActiveOrders
- type BTCECancelOrder
- type BTCECreateCoupon
- type BTCEInfo
- type BTCEOrderInfo
- type BTCEOrderbook
- type BTCEPair
- type BTCERedeemCoupon
- type BTCEResponse
- type BTCETrade
- type BTCETradeHistory
- type BTCETrades
- type BTCETransHistory
- type BTCEWithdrawCoins
- type BTCeTicker
Constants ¶
View Source
const ( BTCE_API_PUBLIC_URL = "https://btc-e.com/api" BTCE_API_PRIVATE_URL = "https://btc-e.com/tapi" BTCE_API_PUBLIC_VERSION = "3" BTCE_API_PRIVATE_VERSION = "1" BTCE_INFO = "info" BTCE_TICKER = "ticker" BTCE_DEPTH = "depth" BTCE_TRADES = "trades" BTCE_ACCOUNT_INFO = "getInfo" BTCE_TRADE = "Trade" BTCE_ACTIVE_ORDERS = "ActiveOrders" BTCE_ORDER_INFO = "OrderInfo" BTCE_CANCEL_ORDER = "CancelOrder" BTCE_TRADE_HISTORY = "TradeHistory" BTCE_TRANSACTION_HISTORY = "TransHistory" BTCE_WITHDRAW_COIN = "WithdrawCoin" BTCE_CREATE_COUPON = "CreateCoupon" BTCE_REDEEM_COUPON = "RedeemCoupon" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BTCE ¶
type BTCE struct { exchange.ExchangeBase Ticker map[string]BTCeTicker }
func (*BTCE) CreateCoupon ¶
func (b *BTCE) CreateCoupon(currency string, amount float64) (BTCECreateCoupon, error)
func (*BTCE) GetAccountInfo ¶
func (b *BTCE) GetAccountInfo() (BTCEAccountInfo, error)
func (*BTCE) GetActiveOrders ¶
func (b *BTCE) GetActiveOrders(pair string) (map[string]BTCEActiveOrders, error)
func (*BTCE) GetExchangeAccountInfo ¶
GetExchangeAccountInfo : Retrieves balances for all enabled currencies for the BTCE exchange
func (*BTCE) GetOrderInfo ¶
func (b *BTCE) GetOrderInfo(OrderID int64) (map[string]BTCEOrderInfo, error)
func (*BTCE) GetOrderbookEx ¶
func (b *BTCE) GetOrderbookEx(p pair.CurrencyPair) (orderbook.OrderbookBase, error)
func (*BTCE) GetTickerPrice ¶
func (b *BTCE) GetTickerPrice(p pair.CurrencyPair) (ticker.TickerPrice, error)
func (*BTCE) GetTradeHistory ¶
func (*BTCE) GetTransactionHistory ¶
func (*BTCE) RedeemCoupon ¶
func (b *BTCE) RedeemCoupon(coupon string) (BTCERedeemCoupon, error)
func (*BTCE) SendAuthenticatedHTTPRequest ¶
func (*BTCE) SetDefaults ¶
func (b *BTCE) SetDefaults()
func (*BTCE) Setup ¶
func (b *BTCE) Setup(exch config.ExchangeConfig)
func (*BTCE) WithdrawCoins ¶
type BTCEAccountInfo ¶
type BTCEAccountInfo struct { Funds map[string]float64 `json:"funds"` OpenOrders int `json:"open_orders"` Rights struct { Info int `json:"info"` Trade int `json:"trade"` Withdraw int `json:"withdraw"` } `json:"rights"` ServerTime float64 `json:"server_time"` TransactionCount int `json:"transaction_count"` }
type BTCEActiveOrders ¶
type BTCECancelOrder ¶
type BTCECreateCoupon ¶
type BTCEOrderInfo ¶
type BTCEOrderbook ¶
type BTCERedeemCoupon ¶
type BTCEResponse ¶
type BTCETradeHistory ¶
type BTCETrades ¶
type BTCETransHistory ¶
type BTCEWithdrawCoins ¶
Click to show internal directories.
Click to hide internal directories.