bittrex

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Endpoint = "https://api.bittrex.com/v3/"
)
View Source
const (
	QuoteSymbol = "USD"
)
View Source
const (
	TradingStatusOnline = "ONLINE"
)

Variables

This section is empty.

Functions

func DecodeResponse

func DecodeResponse(resp *resty.Response) ([]byte, error)

func New

func New() core.Exchange

func Request

func Request(ctx context.Context) *resty.Request

func UnmarshalResponse

func UnmarshalResponse(resp *resty.Response, v interface{}) error

Types

type Error

type Error struct {
	Code int
	Msg  string `json:"code,omitempty"`
}

func (*Error) Error

func (err *Error) Error() string

type Pair added in v1.0.6

type Pair struct {
	Symbol        string `json:"symbol,omitempty"`
	BaseCurrency  string `json:"baseCurrencySymbol,omitempty"`
	QuoteCurrency string `json:"quoteCurrencySymbol,omitempty"`
	Status        string `json:"status,omitempty"`
}

func (Pair) IsOnline added in v1.0.6

func (pair Pair) IsOnline() bool

type Pairs added in v1.0.6

type Pairs []*Pair

type Ticker

type Ticker struct {
	Symbol        string          `json:"symbol"`
	AskRate       decimal.Decimal `json:"askRate"`
	BidRate       decimal.Decimal `json:"bidRate"`
	LastTradeRate decimal.Decimal `json:"lastTradeRate"`
}

type TradingStatus added in v1.0.6

type TradingStatus string

Jump to

Keyboard shortcuts

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