bitstamp

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BASE_URL = "https://www.bitstamp.net/api/"
)

Functions

func Sym2duo

func Sym2duo(pair string) q.D

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) AllTicker

func (Bitstamp *Bitstamp) AllTicker(SymPair map[string]q.D) (mdt *sync.Map, err error)

func (*Bitstamp) Balances

func (Bitstamp *Bitstamp) Balances() (availables, frozens *sync.Map, err error)

func (*Bitstamp) CancelOrder

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

func (*Bitstamp) Fee

func (Bitstamp *Bitstamp) Fee() float64

func (*Bitstamp) GetAccount

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

func (*Bitstamp) GetAttr

func (Bitstamp *Bitstamp) GetAttr() (a q.Attr)

func (*Bitstamp) GetDepth

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

func (*Bitstamp) GetKlineRecords

func (Bitstamp *Bitstamp) GetKlineRecords(currency CurrencyPair, period KlinePeriod, size int, optional ...OptionalParameter) ([]Kline, error)

func (*Bitstamp) GetOneOrder

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

func (*Bitstamp) GetOrderHistorys

func (Bitstamp *Bitstamp) GetOrderHistorys(currency CurrencyPair, optional ...OptionalParameter) ([]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) GetUnfinishedOrders

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

func (*Bitstamp) LimitBuy

func (Bitstamp *Bitstamp) LimitBuy(amount, price string, currency CurrencyPair, opt ...LimitOrderOptionalParameter) (*Order, error)

func (*Bitstamp) LimitSell

func (Bitstamp *Bitstamp) LimitSell(amount, price string, currency CurrencyPair, opt ...LimitOrderOptionalParameter) (*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)

func (*Bitstamp) OneTicker

func (Bitstamp *Bitstamp) OneTicker(d q.D) (ticker q.Bbo, err error)

func (*Bitstamp) PairArray

func (Bitstamp *Bitstamp) PairArray() (map[string]q.D, map[q.D]q.P, error)

func (*Bitstamp) PlaceOrders

func (Bitstamp *Bitstamp) PlaceOrders(places [3]q.Order) (orders [3]q.Order, err error)

func (*Bitstamp) String

func (Bitstamp *Bitstamp) String() string

func (*Bitstamp) Test

func (Bitstamp *Bitstamp) Test() bool

func (*Bitstamp) TradeFee

func (Bitstamp *Bitstamp) TradeFee() (map[string]q.TradeFee, error)

func (*Bitstamp) WithdrawFee

func (Bitstamp *Bitstamp) WithdrawFee() (sf []q.NetworkWithdraw, err error)

Jump to

Keyboard shortcuts

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