exchanges

package
v0.0.0-...-1fcc497 Latest Latest
Warning

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

Go to latest
Published: May 9, 2019 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BiboxFile

func BiboxFile(filename string) []model.Transaction

func BinanceFile

func BinanceFile(filename string) []model.Transaction

func BitfinexFile

func BitfinexFile(filename string) []model.Transaction

func BitmexFile

func BitmexFile(filename string) []model.Transaction

func BitpandaFile

func BitpandaFile(filename string) []model.Transaction

func BittrexFile

func BittrexFile(filename string) []model.Transaction

func BtcMarketsFile

func BtcMarketsFile(filename string) []model.Transaction

func CoinexchangeFile

func CoinexchangeFile(filename string) []model.Transaction

func CoinspotFile

func CoinspotFile(filename string) []model.Transaction

func CointrackingFile

func CointrackingFile(filename string) []model.Transaction

func CossFile

func CossFile(filename string) []model.Transaction

func CryptopiaFile

func CryptopiaFile(filename string) []model.Transaction

func CustomFile

func CustomFile(filename string) []model.Transaction

func EtherDeltaFile

func EtherDeltaFile(filename string) []model.Transaction

func HitbtcFile

func HitbtcFile(filename string) []model.Transaction

func IndependantReserveFile

func IndependantReserveFile(filename string) []model.Transaction

func KrakenFile

func KrakenFile(filename string) []model.Transaction

func KuCoinFile

func KuCoinFile(filename string) []model.Transaction

func MercatoxFile

func MercatoxFile(filename string) []model.Transaction

func PoloniexFile

func PoloniexFile(filename string) []model.Transaction

func TempKuCoinFile

func TempKuCoinFile(filename string) []model.Transaction

Types

type Bibox

type Bibox struct {
	RawTransactions []BiboxLine
	Txns            map[string]model.Transaction
}

func NewBibox

func NewBibox(in []BiboxLine) (*Bibox, error)

func (*Bibox) ProcessData

func (mdl *Bibox) ProcessData() []model.Transaction

type BiboxLine

type BiboxLine struct {
	Time          string
	User_id       string
	Coin_symbol   string
	Bill_type     string
	Change_amount float64
	Fee           float64
	Fee_symbol    string
	Result_amount float64
	Relay_id      string
	Comment       string
}

type Binance

type Binance struct {
	Date    string  `xlsx:"0"`
	Market  string  `xlsx:"1"`
	BuySell string  `xlsx:"2"`
	Price   float64 `xlsx:"3"`
	Amount  float64 `xlsx:"4"`
	Total   float64 `xlsx:"5"`
	Fee     float64 `xlsx:"6"`
	Feecur  string  `xlsx:"7"`
}

func (*Binance) ProcessData

func (txn *Binance) ProcessData() (out model.Transaction)

type Bitfinex

type Bitfinex struct {
	TransactionID string
	Pair          string
	Amount        float64
	Price         float64
	Fee           float64
	FeeCurrency   string
	Timestamp     string
	OrderID       string
}

func (*Bitfinex) ProcessData

func (txn *Bitfinex) ProcessData() (out model.Transaction)

type Bitmex

type Bitmex struct {
	Timestamp  string
	Symbol     string
	ExecType   string
	Side       string
	LastQty    float64
	LastPx     float64
	ExecCost   float64
	Commission float64
	ExecComm   float64
	OrdType    string
	OrdQty     float64
	LeavesQty  float64
	Price      float64
	Text       string
	OrderID    string
}

func (*Bitmex) ProcessData

func (txn *Bitmex) ProcessData() (out model.Transaction)

type Bitpanda

type Bitpanda struct {
	TransactionID string
	Type          string
	Category      string
	AmountFiat    float64
	Fee           float64
	FiatCurrency  string
	AmountCrypto  float64
	CryptoCoin    string
	Status        string
	Timestamp     string
}

func (*Bitpanda) ProcessData

func (txn *Bitpanda) ProcessData() (out model.Transaction)

type Bittrex

type Bittrex struct {
	OrderUuid      string
	Exchange       string
	Type           string
	Quantity       float64
	Limit          float64
	CommissionPaid float64
	Price          float64
	Opened         string
	Timestamp      string
}

func (*Bittrex) ProcessData

func (txn *Bittrex) ProcessData() (out model.Transaction)

type Btcmarket

type Btcmarket struct {
	RawTransactions []BtcmarketsLine
	Txns            map[string]model.Transaction
}

func NewBtcmarket

func NewBtcmarket(in []BtcmarketsLine) (*Btcmarket, error)

func (*Btcmarket) ProcessData

func (mdl *Btcmarket) ProcessData() []model.Transaction

type BtcmarketsLine

type BtcmarketsLine struct {
	CreationTime string  `xlsx:"0"`
	RecordType   string  `xlsx:"1"`
	Action       string  `xlsx:"2"`
	Currency     string  `xlsx:"3"`
	Amount       float64 `xlsx:"4"`
	Description  string  `xlsx:"5"`
	ReferenceId  string  `xlsx:"6"`
}

type Coinexchange

type Coinexchange struct {
	TradeID       string
	Type          string
	Related_order string
	Market        string
	Time          string
	Price         float64
	Amount        float64
	Total         float64
	Fee           float64
	Net_total     float64
}

func (*Coinexchange) ProcessData

func (txn *Coinexchange) ProcessData() (out model.Transaction)

type Coinspot

type Coinspot struct {
	Timestamp       string
	Type            string
	Market          string
	Amount          float64
	RateIncFee      float64
	RateExclFee     float64
	Fee             string
	FeeAUDInclGST   float64
	GSTAud          float64
	TotalAud        float64
	TotalAudInclGST string
}

func (*Coinspot) ProcessData

func (txn *Coinspot) ProcessData() (out model.Transaction)

type Cointracking

type Cointracking struct {
	Type         string
	BuyAmount    float64
	BuyCurrency  string
	SellAmount   float64
	SellCurrency string
	Fee          float64
	FeeCurrency  string
	Exchange     string
	Group        string
	Comment      string
	Timestamp    string
}

func (*Cointracking) ProcessData

func (txn *Cointracking) ProcessData() (out model.Transaction)

type Coss

type Coss struct {
	Date    string
	Market  string
	BuySell string
	Amount  float64
	Price   float64
	Total   float64
	Fee     float64
}

func (*Coss) ProcessData

func (txn *Coss) ProcessData() (out model.Transaction)

type Cryptopia

type Cryptopia struct {
	Reference string
	Market    string
	Type      string
	Rate      float64
	Amount    float64
	Total     float64
	Fee       float64
	Timestamp string
}

func (*Cryptopia) ProcessData

func (txn *Cryptopia) ProcessData() (out model.Transaction)

type Custom

type Custom struct {
	Timestamp  string
	BasePrice  float64
	BaseCoin   string
	QuotePrice float64
	QuoteCoin  string
	Exchange   string
}

func (*Custom) ProcessData

func (txn *Custom) ProcessData() (out model.Transaction)

type EtherDelta

type EtherDelta struct {
	Date        string
	Action      string
	Source      string
	Volume      float64
	Symbol      string
	Price       float64
	Currency    string
	Fee         float64
	FeeCurrency string
	Memo        string
}

func (*EtherDelta) ProcessData

func (txn *EtherDelta) ProcessData() (out model.Transaction)

type Hitbtc

type Hitbtc struct {
	Date       string
	Instrument string
	TradeID    string
	OrderID    string
	Side       string
	Quantity   float64
	Price      float64
	Volume     float64
	Fee        float64
	Rebate     float64
	Total      float64
}

func (*Hitbtc) ProcessData

func (txn *Hitbtc) ProcessData() (out model.Transaction)

type IndependantReserve

type IndependantReserve struct {
	SettledDateTimestamp string
	Timestamp            string
	OrderGUID            string
	OrderType            string
	Status               string
	OpenClosed           string
	PrimaryCurrency      string
	Volume               float64
	Outstanding          float64
	SecondaryCurrency    string
	Price                float64
	AveragePrice         float64
	Value                float64
	Brokerage            float64
	BrokerageFee         string
	GST                  float64
	TotalCost            float64
}

func (*IndependantReserve) ProcessData

func (txn *IndependantReserve) ProcessData() (out model.Transaction)

type Kraken

type Kraken struct {
	Txid      string
	OrderTxid string
	Pair      string
	Timestamp string
	Type      string
	Ordertype string
	Price     float64
	Cost      float64
	Fee       float64
	Volume    float64
}

func (*Kraken) ProcessData

func (txn *Kraken) ProcessData() (out model.Transaction)

type KuCoin

type KuCoin struct {
	Timestamp       string
	Market          string
	Type            string
	FilledPrice     float64
	FilledPriceCoin string
	Amount          float64
	AmountPriceCoin string
	Volume          float64
	VolumeCoin      string
	Fee             float64
	FeeCoin         string
}

func (*KuCoin) ProcessData

func (txn *KuCoin) ProcessData() (out model.Transaction)

type Mercatox

type Mercatox struct {
	MXTransactionID string
	NTTransactionID string
	WithdrawAddr    string
	Type            string
	Currency        string
	Pair            string
	Fee             string
	Amount          float64
	Price           float64
	Total           float64
	Action          string
	From            string
	To              string
	Time            string
}

func (*Mercatox) ProcessData

func (txn *Mercatox) ProcessData() (out model.Transaction)

type Poloniex

type Poloniex struct {
	Timestamp         string
	Market            string
	Category          string
	Type              string
	Price             float64
	Amount            float64
	Total             float64
	Fee               string
	OrderNumber       string
	BaseTotalLessFee  float64
	QuoteTotalLessFee float64
}

func (*Poloniex) ProcessData

func (txn *Poloniex) ProcessData() (out model.Transaction)

type Processor

type Processor func(string) []model.Transaction

func ExchangeFuncSearch

func ExchangeFuncSearch(exchange string) (Processor, error)

type TempKuCoin

type TempKuCoin struct {
	Market    string
	DealPrice float64
	DealValue float64
	Amount    float64
	Fee       float64
	Type      string
	Timestamp string
}

func (*TempKuCoin) ProcessData

func (txn *TempKuCoin) ProcessData() (out model.Transaction)

Jump to

Keyboard shortcuts

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