Documentation ¶
Index ¶
- Constants
- func NewClient(public string, secret string, hmac bool) *clientTLS
- func NewPrivate(public string, private string) *btcePrivate
- func NewPublic() *btcePublic
- type ActiveOrders
- type ActiveOrdersOrder
- type ActiveOrdersReturn
- type Btce
- func (this *Btce) ActiveOrders(Pair string) (*ActiveOrders, error)
- func (this *Btce) Balances(Pair string) ([]float64, error)
- func (this *Btce) CancelOrder(OrderID int) (*CancelOrder, error)
- func (this *Btce) Depth(Pair string) (*Depth, error)
- func (this *Btce) GetInfo() (*PrivateInfo, error)
- func (this *Btce) Info() (*PublicInfo, error)
- func (this *Btce) LastTrade(Pair string) (*TradeHistoryTrade, error)
- func (this *Btce) OrderedActiveOrders(Pair string) (*ActiveOrders, error)
- func (this *Btce) OrderedTradeHistory(From int, Count int, FromID int, EndID int, Order string, Since string, ...) (*TradeHistory, error)
- func (this *Btce) Ticker(Pair string) (*Ticker, error)
- func (this *Btce) Trade(Pair string, Type string, Rate float64, Amount float64) (*Trade, error)
- func (this *Btce) TradeHistory(From int, Count int, FromID int, EndID int, Order string, Since string, ...) (*TradeHistory, error)
- func (this *Btce) Trades(Pair string) (*Trades, error)
- func (this *Btce) TransHistory(From int, Count int, FromID int, EndID int, Order string, Since string, ...) (*TransHistory, error)
- type ByActiveOrdersTimestampCreated
- type ByTradeTimestamp
- type CancelOrder
- type CancelOrderReturn
- type Depth
- type DepthPair
- type InfoFunds
- type InfoPair
- type InfoReturn
- type InfoRights
- type PrivateInfo
- type PublicInfo
- type Ticker
- type TickerPair
- type Trade
- type TradeHistory
- type TradeHistoryReturn
- type TradeHistoryTrade
- type TradeReturn
- type Trades
- type TradesPair
- type TradesPairTrade
- type TransHistory
- type TransHistoryReturn
- type TransHistoryTransaction
Constants ¶
View Source
const (
PRIVATE_API_ENDPOINT = "https://btc-e.com/tapi"
)
View Source
const (
PUBLIC_API_ENDPOINT = "https://btc-e.com/api/3/"
)
Variables ¶
This section is empty.
Functions ¶
func NewPrivate ¶
Types ¶
type ActiveOrders ¶
type ActiveOrders struct { Success int `json:"success"` Return ActiveOrdersReturn `json:"return"` Error string `json:"error"` }
type ActiveOrdersOrder ¶
type ActiveOrdersReturn ¶
type ActiveOrdersReturn map[string]ActiveOrdersOrder
type Btce ¶
type Btce struct { Public *btcePublic Private *btcePrivate }
func (*Btce) ActiveOrders ¶
func (this *Btce) ActiveOrders(Pair string) (*ActiveOrders, error)
func (*Btce) CancelOrder ¶
func (this *Btce) CancelOrder(OrderID int) (*CancelOrder, error)
func (*Btce) GetInfo ¶
func (this *Btce) GetInfo() (*PrivateInfo, error)
func (*Btce) Info ¶
func (this *Btce) Info() (*PublicInfo, error)
func (*Btce) OrderedActiveOrders ¶
func (this *Btce) OrderedActiveOrders(Pair string) (*ActiveOrders, error)
func (*Btce) OrderedTradeHistory ¶
func (*Btce) TradeHistory ¶
type ByActiveOrdersTimestampCreated ¶
type ByActiveOrdersTimestampCreated []ActiveOrdersOrder
func (ByActiveOrdersTimestampCreated) Len ¶
func (this ByActiveOrdersTimestampCreated) Len() int
func (ByActiveOrdersTimestampCreated) Less ¶
func (this ByActiveOrdersTimestampCreated) Less(i, j int) bool
func (ByActiveOrdersTimestampCreated) Swap ¶
func (this ByActiveOrdersTimestampCreated) Swap(i, j int)
type ByTradeTimestamp ¶
type ByTradeTimestamp []TradeHistoryTrade
func (ByTradeTimestamp) Len ¶
func (this ByTradeTimestamp) Len() int
func (ByTradeTimestamp) Less ¶
func (this ByTradeTimestamp) Less(i, j int) bool
func (ByTradeTimestamp) Swap ¶
func (this ByTradeTimestamp) Swap(i, j int)
type CancelOrder ¶
type CancelOrder struct { Success int `json:"success"` Return CancelOrderReturn `json:"return"` Error string `json:"error"` }
type CancelOrderReturn ¶
type InfoFunds ¶
type InfoFunds struct { USD float64 `json:"usd"` BTC float64 `json:"btc"` LTC float64 `json:"ltc"` NMC float64 `json:"nmc"` RUR float64 `json:"rur"` EUR float64 `json:"eur"` NVC float64 `json:"nvc"` TRC float64 `json:"trc"` PPC float64 `json:"ppc"` FTC float64 `json:"ftc"` XPM float64 `json:"xpm"` }
type InfoReturn ¶
type InfoReturn struct { Funds InfoFunds `json:"funds"` Rights InfoRights `json:"rights"` TransactionsCount int `json:"Transaction_count"` OpenOrders int `json:"open_orders"` Time int `json:"server_time"` }
type InfoRights ¶
type PrivateInfo ¶
type PrivateInfo struct { Success int `json:"success"` Return InfoReturn `json:"return"` Error string `json:"error"` }
type PublicInfo ¶
type Ticker ¶
type Ticker map[string]TickerPair
type TickerPair ¶
type Trade ¶
type Trade struct { Success int `json:"success"` Return TradeReturn `json:"return"` Error string `json:"error"` }
type TradeHistory ¶
type TradeHistory struct { Success int `json:"success"` Return TradeHistoryReturn `json:"return"` Error string `json:"error"` }
type TradeHistoryReturn ¶
type TradeHistoryReturn map[string]TradeHistoryTrade
type TradeHistoryTrade ¶
type TradeReturn ¶
type Trades ¶
type Trades map[string]TradesPair
type TradesPair ¶
type TradesPair []TradesPairTrade
type TradesPairTrade ¶
type TransHistory ¶
type TransHistory struct { Success int `json:"success"` Return TransHistoryReturn `json:"return"` Error string `json:"error"` }
type TransHistoryReturn ¶
type TransHistoryReturn map[string]TransHistoryTransaction
Click to show internal directories.
Click to hide internal directories.