bitmex

package
v0.9.13 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2020 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
}

BitMEX the BitMEX broker

func New

func New(addr string, accessKey string, secretKey string) *BitMEX

func (*BitMEX) AmendOrder

func (b *BitMEX) AmendOrder(symbol string, id string, price float64, size float64) (result Order, err error)

func (*BitMEX) CancelAllOrders

func (b *BitMEX) CancelAllOrders(symbol string) (err error)

func (*BitMEX) CancelOrder

func (b *BitMEX) CancelOrder(symbol string, id string) (result Order, err error)

func (*BitMEX) GetAccountSummary

func (b *BitMEX) GetAccountSummary(currency string) (result AccountSummary, err error)

func (*BitMEX) GetContractID

func (b *BitMEX) GetContractID() (symbol string, err error)

func (*BitMEX) GetName

func (b *BitMEX) GetName() (name string)

func (*BitMEX) GetOpenOrders

func (b *BitMEX) GetOpenOrders(symbol string) (result []Order, err error)

func (*BitMEX) GetOrder

func (b *BitMEX) GetOrder(symbol string, id string) (result Order, err error)

func (*BitMEX) GetOrderBook

func (b *BitMEX) GetOrderBook(symbol string, depth int) (result OrderBook, err error)

func (*BitMEX) GetPosition

func (b *BitMEX) GetPosition(symbol string) (result Position, err error)

func (*BitMEX) GetRecords

func (b *BitMEX) GetRecords(symbol string, period string, from int64, end int64, limit int) (records []Record, err error)

func (*BitMEX) PlaceOrder

func (b *BitMEX) PlaceOrder(symbol string, direction Direction, orderType OrderType, price float64,
	stopPx float64, size float64, postOnly bool, reduceOnly bool, params map[string]interface{}) (result Order, err error)

func (*BitMEX) RunEventLoopOnce

func (b *BitMEX) RunEventLoopOnce() (err error)

func (*BitMEX) SetContractType

func (b *BitMEX) SetContractType(currencyPair string, contractType string) (err error)

func (*BitMEX) SetLeverRate

func (b *BitMEX) SetLeverRate(value float64) (err error)

Jump to

Keyboard shortcuts

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