bittrex

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 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 Bittrex

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

func New

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

func (*Bittrex) CancelOrder

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

func (*Bittrex) GetAccount

func (bx *Bittrex) GetAccount() (*Account, error)

func (*Bittrex) GetDepth

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

func (*Bittrex) GetExchangeName

func (bx *Bittrex) GetExchangeName() string

func (*Bittrex) GetKlineRecords

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

func (*Bittrex) GetOneOrder

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

func (*Bittrex) GetOrderHistorys

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

func (*Bittrex) GetTicker

func (bx *Bittrex) GetTicker(currency CurrencyPair) (*Ticker, error)

func (*Bittrex) GetTrades

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

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

func (*Bittrex) GetUnfinishOrders

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

func (*Bittrex) LimitBuy

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

func (*Bittrex) LimitSell

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

func (*Bittrex) MarketBuy

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

func (*Bittrex) MarketSell

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