Documentation ¶
Index ¶
Constants ¶
View Source
const CoinbaseTimeFormat string = "2006-01-02T15:04:05.000Z"
CoinbaseTimeFormat taken from the Coinbase Pro API reference: https://docs.pro.coinbase.com/#timestamps
Variables ¶
This section is empty.
Functions ¶
func ParseTimestampFromString ¶
ParseTimestampFromString takes a timestamp string from a Coinbase Pro API response and returns a time.Time object.
func StringToDecimal ¶
StringToDecimal parses a string into a decimal.Decimal, panicking if it fails.
func TimeToTimestampString ¶
TimeToTimestampString returns the string representation of a time.Time object, formatted using CoinbaseTimeFormat.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.