coinbasepro

package
v0.0.0-...-f545d20 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTransactionLogReader

func NewTransactionLogReader() common.TransactionLogReader

Types

type CbpCost

type CbpCost struct {
	Price    float64 `csv:"price"                json:"price"`
	Fee      float64 `csv:"fee"                  json:"fee"`
	Total    float64 `csv:"total"                json:"total"`
	CostUnit string  `csv:"price/fee/total unit" json:"priceFeeTotalUnit"`
}

type CbpProduct

type CbpProduct struct {
	Product string  `csv:"product"   json:"product"`
	Size    float64 `csv:"size"      json:"size"`
	Unit    string  `csv:"size unit" json:"unit"`
}

type CbpTransaction

type CbpTransaction struct {
	Portfolio string          `csv:"portfolio"  json:"portfolio"`
	ID        string          `csv:"trade id"   json:"id"`
	Side      common.SideType `csv:"side"       json:"side"`
	CreatedAt time.Time       `csv:"created at" json:"created"`
	CbpProduct
	CbpCost
}

Jump to

Keyboard shortcuts

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