public

package
v0.0.0-...-5e12142 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OrderBook

type OrderBook struct {
	Client coinmate.ClientInterface
}

func (*OrderBook) GetOrderBook

func (o *OrderBook) GetOrderBook(currencyPair string, groupByPriceLimit bool) (OrderBookResponse, error)

Order book endpoint

func (*OrderBook) GetTradingPairs

func (o *OrderBook) GetTradingPairs() (TraidingPairsResponse, error)

Trading pairs endpoint

type OrderBookAsksBids

type OrderBookAsksBids struct {
	Price  float64 `json:"price"`
	Amount float64 `json:"amount"`
}

type OrderBookData

type OrderBookData struct {
	Asks []OrderBookAsksBids `json:"asks"`
	Bids []OrderBookAsksBids `json:"bids"`
}

type OrderBookResponse

type OrderBookResponse struct {
	Error        bool
	ErrorMessage string
	Data         OrderBookData
}

Order book response

type Ticker

type Ticker struct {
	Client coinmate.ClientInterface
}

func (*Ticker) GetTicker

func (t *Ticker) GetTicker(currencyPair string) (TickerResponse, error)

Ticker endpoint

type TickerData

type TickerData struct {
	Last      float64 `json:"last"`
	High      float64 `json:"high"`
	Low       float64 `json:"low"`
	Amount    float64 `json:"amount"`
	Bid       float64 `json:"bid"`
	Ask       float64 `json:"ask"`
	Change    float64 `json:"change"`
	Open      float64 `json:"open"`
	Timestamp uint64  `json:"timestamp"`
}

type TickerResponse

type TickerResponse struct {
	Error        bool       `json:"error"`
	ErrorMessage string     `json:"errorMessage"`
	Data         TickerData `json:"data"`
}

Ticker endpoint response

type TraidingPairs

type TraidingPairs struct {
	Client coinmate.ClientInterface
}

type TraidingPairsData

type TraidingPairsData struct {
	Name                              string  `json:"name"`
	FirstCurrency                     string  `json:"firstCurrency"`
	SecondCurrency                    string  `json:"secondCurrency"`
	PriceDecimals                     uint64  `json:"priceDecimals"`
	LotDecimals                       uint64  `json:"lotDecimals"`
	MinAmount                         float64 `json:"minAmount"`
	TradesWebSocketChannelId          string  `json:"tradesWebSocketChannelId"`
	OrderBookWebSocketChannelId       string  `json:"orderBookWebSocketChannelId"`
	TradeStatisticsWebSocketChannelId string  `json:"tradeStatisticsWebSocketChannelId"`
}

type TraidingPairsResponse

type TraidingPairsResponse struct {
	Error        bool
	ErrorMessage string
	Data         []TraidingPairsData
}

type Transactions

type Transactions struct {
	Client coinmate.ClientInterface
}

func (*Transactions) GetTransactions

func (t *Transactions) GetTransactions(currencyPair string, minutesIntoHistory uint64) (TransactionsResponse, error)

Transactions

type TransactionsData

type TransactionsData struct {
	Timestamp     int64   `json:"timestamp"`
	TransactionId string  `json:"transactionId"`
	Price         float64 `json:"price"`
	Amount        float64 `json:"amount"`
	CurrencyPair  string  `json:"currencyPair"`
	TradeType     string  `json:"tradeType"`
}

type TransactionsResponse

type TransactionsResponse struct {
	Error        bool               `json:"error"`
	ErrorMessage string             `json:"errorMessage"`
	Data         []TransactionsData `json:"data"`
}

Ticker endpoint response

Jump to

Keyboard shortcuts

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