bitstamp

package
v1.1.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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 NewBitstamp(client *http.Client, accessKey, secertkey, clientId string) *Bitstamp

func (*Bitstamp) CancelOrder

func (bitstamp *Bitstamp) CancelOrder(orderId string, currency CurrencyPair) (bool, error)

func (*Bitstamp) GetAccount

func (bitstamp *Bitstamp) GetAccount() (*Account, error)

func (*Bitstamp) GetDepth

func (bitstamp *Bitstamp) GetDepth(size int, currency CurrencyPair) (*Depth, error)

func (*Bitstamp) GetExchangeName

func (bitstamp *Bitstamp) GetExchangeName() string

func (*Bitstamp) GetKlineRecords

func (bitstamp *Bitstamp) GetKlineRecords(currency CurrencyPair, period, size, since int) ([]Kline, error)

func (*Bitstamp) GetOneOrder

func (bitstamp *Bitstamp) GetOneOrder(orderId string, currency CurrencyPair) (*Order, error)

func (*Bitstamp) GetOrderHistorys

func (bitstamp *Bitstamp) GetOrderHistorys(currency CurrencyPair, currentPage, pageSize int) ([]Order, error)

func (*Bitstamp) GetTicker

func (bitstamp *Bitstamp) GetTicker(currency CurrencyPair) (*Ticker, error)

func (*Bitstamp) GetTrades

func (bitstamp *Bitstamp) GetTrades(currencyPair CurrencyPair, since int64) ([]Trade, error)

//非个人,整个交易所的交易记录

func (*Bitstamp) GetUnfinishOrders

func (bitstamp *Bitstamp) GetUnfinishOrders(currency CurrencyPair) ([]Order, error)

func (*Bitstamp) LimitBuy

func (bitstamp *Bitstamp) LimitBuy(amount, price string, currency CurrencyPair) (*Order, error)

func (*Bitstamp) LimitSell

func (bitstamp *Bitstamp) LimitSell(amount, price string, currency CurrencyPair) (*Order, error)

func (*Bitstamp) MarketBuy

func (bitstamp *Bitstamp) MarketBuy(amount, price string, currency CurrencyPair) (*Order, error)

func (*Bitstamp) MarketSell

func (bitstamp *Bitstamp) MarketSell(amount, price string, currency CurrencyPair) (*Order, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL