bittrex

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2021 License: MIT Imports: 16 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 {
	TXsByCategory wallet.TXsByCategory
	Sources       source.Sources
	// contains filtered or unexported fields
}

func New

func New() *Bittrex

func (*Bittrex) GetAPIAllTXs added in v1.2.0

func (btrx *Bittrex) GetAPIAllTXs()

func (*Bittrex) MergeTXs added in v1.2.0

func (btrx *Bittrex) MergeTXs()

func (*Bittrex) NewAPI added in v1.2.0

func (btrx *Bittrex) NewAPI(apiKey, secretKey string, debug bool)

func (*Bittrex) ParseCSV

func (btrx *Bittrex) ParseCSV(reader io.Reader, cat category.Category, account string) (err error)

func (*Bittrex) WaitFinish added in v1.2.0

func (btrx *Bittrex) WaitFinish(account string) error

type GetDepositResponse added in v1.2.0

type GetDepositResponse []struct {
	ID               string    `json:"id"`
	CurrencySymbol   string    `json:"currencySymbol"`
	Quantity         string    `json:"quantity"`
	CryptoAddress    string    `json:"cryptoAddress"`
	Confirmations    int       `json:"confirmations"`
	UpdatedAt        time.Time `json:"updatedAt"`
	CompletedAt      time.Time `json:"completedAt"`
	Status           string    `json:"status"`
	Source           string    `json:"source"`
	TxCost           string    `json:"txCost"`
	TxID             string    `json:"txId"`
	CreatedAt        time.Time `json:"createdAt"`
	CryptoAddressTag string    `json:"cryptoAddressTag,omitempty"`
}

type GetTradeResponse added in v1.2.0

type GetTradeResponse []struct {
	ID            string    `json:"id"`
	MarketSymbol  string    `json:"marketSymbol"`
	Direction     string    `json:"direction"`
	Type          string    `json:"type"`
	Quantity      string    `json:"quantity"`
	Limit         string    `json:"limit"`
	Ceiling       string    `json:"ceiling"`
	TimeInForce   string    `json:"timeInForce"`
	ClientOrderID string    `json:"clientOrderId"`
	FillQuantity  string    `json:"fillQuantity"`
	Commission    string    `json:"commission"`
	Proceeds      string    `json:"proceeds"`
	Status        string    `json:"status"`
	CreatedAt     time.Time `json:"createdAt"`
	UpdatedAt     time.Time `json:"updatedAt"`
	ClosedAt      time.Time `json:"closedAt"`
	OrderToCancel struct {
		Type string `json:"type"`
		ID   string `json:"id"`
	} `json:"orderToCancel"`
}

type GetTransferResponse added in v1.2.0

type GetTransferResponse []struct {
	ID               string    `json:"id"`
	CurrencySymbol   string    `json:"currencySymbol"`
	Quantity         string    `json:"quantity"`
	CryptoAddress    string    `json:"cryptoAddress"`
	UpdatedAt        time.Time `json:"updatedAt"`
	CompletedAt      time.Time `json:"completedAt"`
	Status           string    `json:"status"`
	TxCost           string    `json:"txCost"`
	TxID             string    `json:"txId"`
	CreatedAt        time.Time `json:"createdAt"`
	CryptoAddressTag string    `json:"cryptoAddressTag,omitempty"`
}

Jump to

Keyboard shortcuts

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