bitstamp

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bitstamp

type Bitstamp struct {
	TXsByCategory wallet.TXsByCategory
	Sources       source.Sources
	// contains filtered or unexported fields
}

func New

func New() *Bitstamp

func (*Bitstamp) GetAPIAllTXs

func (bs *Bitstamp) GetAPIAllTXs()

func (*Bitstamp) MergeTXs

func (bs *Bitstamp) MergeTXs()

func (*Bitstamp) NewAPI

func (bs *Bitstamp) NewAPI(apiKey, secretKey string, debug bool)

func (*Bitstamp) ParseCSV

func (bs *Bitstamp) ParseCSV(reader io.Reader, cat category.Category, native, account string) (err error)

func (*Bitstamp) WaitFinish

func (bs *Bitstamp) WaitFinish(account string) error

type CryptoTransaction

type CryptoTransaction struct {
	Currency           string  `json:"currency"`
	DestinationAddress string  `json:"destinationAddress"`
	TxID               string  `json:"txid"`
	Amount             float64 `json:"amount"`
	DateTime           int64   `json:"datetime"`
}

type ErrorResp

type ErrorResp struct {
	Status string `json:"status"`
	Reason string `json:"reason"`
	Code   string `json:"code"`
}

type FloatOrString

type FloatOrString string

func (*FloatOrString) UnmarshalJSON

func (f *FloatOrString) UnmarshalJSON(d []byte) error

type GetCryptoTransactionsResp

type GetCryptoTransactionsResp struct {
	Deposits    []CryptoTransaction `json:"deposits"`
	Withdrawals []CryptoTransaction `json:"withdrawals"`
}

type GetUserTransactionsResp

type GetUserTransactionsResp []struct {
	ID       int           `json:"id"`
	DateTime string        `json:"datetime"`
	Type     string        `json:"type"`
	OrderID  int64         `json:"order_id,omitempty"`
	Fee      string        `json:"fee"`
	Btc      FloatOrString `json:"btc"`
	Eth      string        `json:"eth,omitempty"`
	Eur      FloatOrString `json:"eur"`
	Ltc      string        `json:"ltc,omitempty"`
	Usd      float64       `json:"usd"`
	Xrp      string        `json:"xrp,omitempty"`
	BtcEur   float64       `json:"btc_eur,omitempty"`
	BtcUsd   string        `json:"btc_usd,omitempty"`
	EthBtc   float64       `json:"eth_btc,omitempty"`
	LtcBtc   float64       `json:"ltc_btc,omitempty"`
	XrpBtc   float64       `json:"xrp_btc,omitempty"`
}

Jump to

Keyboard shortcuts

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