Documentation ¶
Index ¶
- Variables
- type Bitstamp
- func (bitstamp *Bitstamp) CancelOrder(orderId string, currency CurrencyPair) (bool, error)
- func (bitstamp *Bitstamp) GetAccount() (*Account, error)
- func (bitstamp *Bitstamp) GetDepth(size int, currency CurrencyPair) (*Depth, error)
- func (bitstamp *Bitstamp) GetExchangeName() string
- func (bitstamp *Bitstamp) GetKlineRecords(currency CurrencyPair, period, size, since int) ([]Kline, error)
- func (bitstamp *Bitstamp) GetOneOrder(orderId string, currency CurrencyPair) (*Order, error)
- func (bitstamp *Bitstamp) GetOrderHistorys(currency CurrencyPair, currentPage, pageSize int) ([]Order, error)
- func (bitstamp *Bitstamp) GetTicker(currency CurrencyPair) (*Ticker, error)
- func (bitstamp *Bitstamp) GetTrades(currencyPair CurrencyPair, since int64) ([]Trade, error)
- func (bitstamp *Bitstamp) GetUnfinishOrders(currency CurrencyPair) ([]Order, error)
- func (bitstamp *Bitstamp) LimitBuy(amount, price string, currency CurrencyPair) (*Order, error)
- func (bitstamp *Bitstamp) LimitSell(amount, price string, currency CurrencyPair) (*Order, error)
- func (bitstamp *Bitstamp) MarketBuy(amount, price string, currency CurrencyPair) (*Order, error)
- func (bitstamp *Bitstamp) MarketSell(amount, price string, currency CurrencyPair) (*Order, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
BASE_URL = "https://www.bitstamp.net/api/"
)
Functions ¶
This section is empty.
Types ¶
type Bitstamp ¶
type Bitstamp struct {
// contains filtered or unexported fields
}
func NewBitstamp ¶
func (*Bitstamp) CancelOrder ¶
func (*Bitstamp) GetDepth ¶
func (*Bitstamp) GetKlineRecords ¶
func (*Bitstamp) GetOneOrder ¶
func (*Bitstamp) GetOrderHistorys ¶
func (*Bitstamp) GetTicker ¶
func (*Bitstamp) GetTrades ¶
//非个人,整个交易所的交易记录
func (*Bitstamp) GetUnfinishOrders ¶
func (*Bitstamp) LimitBuy ¶
func (*Bitstamp) LimitSell ¶
func (*Bitstamp) MarketBuy ¶
Click to show internal directories.
Click to hide internal directories.