Documentation ¶
Index ¶
Constants ¶
View Source
const ( ActionBuy = "BUY" ActionSell = "SELL" ActionPay = "PAY" ActionMining = "MINING" ActionSendFee = "SENDFEE" ActionTip = "TIP" ActionReduce = "REDUCE" ActionBonus = "BONUS" ActionLending = "LENDING" ActionStaking = "STAKING" )
Actions (BUY/SELL/PAY/MINING/SENDFEE/TIP/REDUCE/BONUS/LENDING/STAKING)
View Source
const ( TimestampColumn = "Timestamp" ActionColumn = "Action" SourceColumn = "Source" BaseColumn = "Base" VolumeColumn = "Volume" PriceColumn = "Price" CounterColumn = "Counter" FeeColumn = "Fee" FeeCcyColumn = "FeeCcy" CommentColumn = "Comment" )
Column names
View Source
const WalletCode = "CRYPTACT_C"
Variables ¶
This section is empty.
Functions ¶
func ValidateColumnNames ¶
ValidateColumnNames checks columns
Types ¶
type ErrorWithLineInfo ¶
type ErrorWithLineInfo struct {
// contains filtered or unexported fields
}
func (*ErrorWithLineInfo) Error ¶
func (e *ErrorWithLineInfo) Error() string
type Extractor ¶
type Extractor struct {
// contains filtered or unexported fields
}
Extractor for Poloniex trades
func NewExtractor ¶
NewExtractor create an executor for Poloniex trades
type Record ¶
func (Record) GetAsNullDecimal ¶
type Repository ¶
type Repository interface {
FindCustoms(ctx context.Context, start, end time.Time) (models.CryptactCustomSlice, error)
}
func NewRepository ¶
func NewRepository(db boil.ContextExecutor) Repository
type Translator ¶
type Translator struct {
// contains filtered or unexported fields
}
Translator is a translator for BitTrex
func NewTranslator ¶
func NewTranslator(mainCurrency currency.Symbol) *Translator
NewTranslator create a translator for BitTrex
func (*Translator) Translate ¶
func (t *Translator) Translate(ctx context.Context, repo eupholio.Repository, start, end time.Time) error
Translate stores extracted transaction data to transaction table
func (*Translator) TranslateTransaction ¶
func (t *Translator) TranslateTransaction(ctx context.Context, repository eupholio.Repository, transaction *models.Transaction, tr *models.CryptactCustom) (models.EventSlice, string, error)
https://support.cryptact.com/hc/en-us/articles/360002571312-Custom-File-for-any-other-trades
Click to show internal directories.
Click to hide internal directories.