btcmarkets

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

View Source
const (
	EXCHANGE_NAME = "btcmarkets.net"

	API_BASE_URL = "https://api.btcmarkets.net/"

	TICKER_URI = "market/%s/%s/tick"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Btcmarkets

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

func New

func New(client *http.Client, accessKey, secretKey string) *Btcmarkets

func (*Btcmarkets) CancelOrder

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

func (*Btcmarkets) GetAccount

func (btcm *Btcmarkets) GetAccount() (*Account, error)

func (*Btcmarkets) GetDepth

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

func (*Btcmarkets) GetExchangeName

func (btcm *Btcmarkets) GetExchangeName() string

func (*Btcmarkets) GetKlineRecords

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

func (*Btcmarkets) GetOneOrder

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

func (*Btcmarkets) GetOrderHistorys

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

func (*Btcmarkets) GetTicker

func (btcm *Btcmarkets) GetTicker(currency CurrencyPair) (*Ticker, error)

func (*Btcmarkets) GetTickerInBuf

func (btcm *Btcmarkets) GetTickerInBuf(currency CurrencyPair) (*Ticker, error)

func (*Btcmarkets) GetTickers

func (btcm *Btcmarkets) GetTickers(currency CurrencyPair) (*Ticker, error)

func (*Btcmarkets) GetTrades

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

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

func (*Btcmarkets) GetUnfinishOrders

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

func (*Btcmarkets) LimitBuy

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

func (*Btcmarkets) LimitSell

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

func (*Btcmarkets) MarketBuy

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

func (*Btcmarkets) MarketSell

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