bitmex

package
v0.0.0-...-2a0cda8 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bitmex

type Bitmex struct {
	// contains filtered or unexported fields
}

func New

func New(client *http.Client, accesskey, secretkey string) *Bitmex

func (*Bitmex) CancelOrder

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

func (*Bitmex) GetAccount

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

func (*Bitmex) GetDepth

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

func (*Bitmex) GetExchangeName

func (Bitmex *Bitmex) GetExchangeName() string

func (*Bitmex) GetKlineRecords

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

func (*Bitmex) GetOneOrder

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

func (*Bitmex) GetOrderHistorys

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

func (*Bitmex) GetTicker

func (Bitmex *Bitmex) GetTicker(currency CurrencyPair) (*Ticker, error)

func (*Bitmex) GetTrades

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

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

func (*Bitmex) GetUnfinishOrders

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

func (*Bitmex) LimitBuy

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

func (*Bitmex) LimitSell

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

func (*Bitmex) MarketBuy

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

func (*Bitmex) MarketSell

func (Bitmex *Bitmex) 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