hitbtc

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: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorResp

type ErrorResp struct {
	Error struct {
		Code    int    `json:"code"`
		Message string `json:"message"`
	} `json:"error"`
}

type GetAccountTransactionsResp

type GetAccountTransactionsResp []struct {
	ID            string    `json:"id"`
	Index         int64     `json:"index"`
	Type          string    `json:"type"`
	Subtype       string    `json:"subType,omitempty"`
	Status        string    `json:"status"`
	Currency      string    `json:"currency"`
	Amount        string    `json:"amount"`
	CreatedAt     time.Time `json:"createdAt"`
	UpdatedAt     time.Time `json:"updatedAt"`
	Fee           string    `json:"fee,omitempty"`
	Hash          string    `json:"hash,omitempty"`
	Address       string    `json:"address,omitempty"`
	Confirmations int64     `json:"confirmations,omitempty"`
}

type GetTradesResp

type GetTradesResp []struct {
	ID            int       `json:"id"`
	OrderID       int       `json:"orderId"`
	ClientOrderID string    `json:"clientOrderId"`
	Symbol        string    `json:"symbol"`
	Side          string    `json:"side"`
	Quantity      string    `json:"quantity"`
	Price         string    `json:"price"`
	Fee           string    `json:"fee"`
	Timestamp     time.Time `json:"timestamp"`
}

type HitBTC

type HitBTC struct {
	TXsByCategory wallet.TXsByCategory

	Sources source.Sources
	// contains filtered or unexported fields
}

func New

func New() *HitBTC

func (*HitBTC) GetAPIAllTXs

func (hb *HitBTC) GetAPIAllTXs()

func (*HitBTC) MergeTXs

func (hb *HitBTC) MergeTXs()

func (*HitBTC) NewAPI

func (hb *HitBTC) NewAPI(apiKey, secretKey string, debug bool)

func (*HitBTC) ParseCSVTrades

func (hb *HitBTC) ParseCSVTrades(reader io.Reader) (err error)

func (*HitBTC) ParseCSVTransactions

func (hb *HitBTC) ParseCSVTransactions(reader io.Reader) (err error)

func (*HitBTC) WaitFinish

func (hb *HitBTC) WaitFinish(account string) error

Jump to

Keyboard shortcuts

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