Documentation ¶
Index ¶
Constants ¶
View Source
const ( URL = "https://api.bitso.com/v2/" BTCMXN = "btc_mxn" ETHMXN = "eth_mxn" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct {
// contains filtered or unexported fields
}
Account allows you to access to the Bitso API
func Authenticate ¶
Authenticate receives a Keys used to authenticate into the private endpoints.
func (*Account) OpenOrders ¶
type Balance ¶
type Balance struct { Fee string `json:"fee,omitempty"` MXNBalance string `json:"mxn_balance,omitempty"` BTCBalance string `json:"btc_balance,omitempty"` MXNReserved string `json:"mxn_reserved,omitempty"` BTCReserved string `json:"btc_reserved,omitempty"` MXNAvailable string `json:"mxn_available,omitempty"` BTCAvailable string `json:"btc_available,omitempty"` // contains filtered or unexported fields }
type Error ¶
type Order ¶
type Order struct { Id string `json:"id,omitempty"` Type string `json:"type,omitempty"` Price string `json:"price,omitempty"` Amount string `json:"amount,omitempty"` Datetime string `json:"datetime,omitempty"` Status string `json:"status,omitempty"` Book string `json:"book,omitempty"` // contains filtered or unexported fields }
type OrderBookInfo ¶
type TickerInfo ¶
type TickerInfo struct { High string Last string Timestamp string Volume string Vwap string Low string Ask string Bid string }
func Ticker ¶
func Ticker(book string) (*TickerInfo, error)
type Transaction ¶
func Transactions ¶
func Transactions(book string, time string) ([]*Transaction, error)
GetTransactions returns a list of recent trades from the specified book and the specified time frame.
Valid time frames are hour and minute. Leaving time blank will set hour as the default frame.
Click to show internal directories.
Click to hide internal directories.