Documentation
¶
Index ¶
- Variables
- type Conn
- func (c *Conn) Close() error
- func (c *Conn) GetOrderBook(currencyPair string) (*response.OrderBook, error)
- func (c *Conn) GetTicker(currencyPair string) (*response.Ticker, error)
- func (c *Conn) GetTickerHour(currencyPair string) (*response.Ticker, error)
- func (c *Conn) GetTradingPairsInfo() (*[]response.TradingPairInfo, error)
- func (c *Conn) GetTransactions(currencyPair string, time string) (*[]response.Transaction, error)
- func (c *Conn) PostBalance(currencyPair string) (*response.Balance, error)
- func (c *Conn) PostBalanceAll() (*response.Balance, error)
- func (c *Conn) PostBuyLimitOrder(currencyPair string, amount float64, price float64, limitPrice float64, ...) (*response.BuyLimitOrder, error)
- func (c *Conn) PostBuyMarketOrder(currencyPair string, amount float64) (*response.BuyMarketOrder, error)
- func (c *Conn) PostCancelOrder(id int64) (*response.CancelOrder, error)
- func (c *Conn) PostOpenOrders(currencyPair string) (*[]response.OpenOrder, error)
- func (c *Conn) PostOpenOrdersAll() (*[]response.OpenOrder, error)
- func (c *Conn) PostOrderStatus(id int64) (*response.OrderStatus, error)
- func (c *Conn) PostSellLimitOrder(currencyPair string, amount float64, price float64, limitPrice float64, ...) (*response.SellLimitOrder, error)
- func (c *Conn) PostSellMarketOrder(currencyPair string, amount float64) (*response.SellMarketOrder, error)
- func (c *Conn) PostUserTransactions(currencyPair string, offset int, limit int, sort string) (*[]response.UserTransaction, error)
- func (c *Conn) PostUserTransactionsAll(offset int, limit int, sort string) (*[]response.UserTransaction, error)
- func (c *Conn) PostWithdrawalRequests(timedelta int) (*[]response.WithdrawalRequest, error)
- func (c *Conn) SetAuth(apiKey, apiSecret, customerID string)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotFound = errors.New("Not Found") ErrAuthRequired = errors.New("Authentication Required") )
View Source
var CurrencyPairs = []string{
"btcusd",
"btceur",
"eurusd",
"xrpusd",
"xrpeur",
"xrpbtc",
"ltcusd",
"ltceur",
"ltcbtc",
"ethusd",
"etheur",
"ethbtc",
}
Functions ¶
This section is empty.
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
func NewAuthConn ¶
NewConn returns a new Conn with authentication parameters. Customer ID: https://www.bitstamp.net/account/balance/ API key & secret: https://www.bitstamp.net/account/security/api/
func (*Conn) GetOrderBook ¶
func (*Conn) GetTickerHour ¶
func (*Conn) GetTradingPairsInfo ¶
func (c *Conn) GetTradingPairsInfo() (*[]response.TradingPairInfo, error)
func (*Conn) GetTransactions ¶
func (*Conn) PostBalance ¶
func (*Conn) PostBuyLimitOrder ¶
func (*Conn) PostBuyMarketOrder ¶
func (*Conn) PostCancelOrder ¶
func (c *Conn) PostCancelOrder(id int64) (*response.CancelOrder, error)
func (*Conn) PostOpenOrders ¶
func (*Conn) PostOrderStatus ¶
func (c *Conn) PostOrderStatus(id int64) (*response.OrderStatus, error)
func (*Conn) PostSellLimitOrder ¶
func (*Conn) PostSellMarketOrder ¶
func (*Conn) PostUserTransactions ¶
func (*Conn) PostUserTransactionsAll ¶
func (*Conn) PostWithdrawalRequests ¶
func (c *Conn) PostWithdrawalRequests(timedelta int) (*[]response.WithdrawalRequest, error)
Click to show internal directories.
Click to hide internal directories.