Functions§
- bar_
spec_ as_ coinbase_ channel - Converts a
BarSpecification
into the corresponding Coinbase WebSocket channel. - coinbase_
channel_ as_ bar_ spec - Converts a Coinbase WebSocket channel into the corresponding
BarSpecification
. - deserialize_
optional_ string_ to_ u64 - Custom deserializer for strings to u64.
- get_
currency - Returns the currency either from the internal currency map or creates a default crypto. Returns the currency either from the internal currency map or creates a default crypto.
- parse_
aggressor_ side - parse_
execution_ type - parse_
instrument_ id - Parses a Posei instrument ID from the given Coinbase
symbol
value. - parse_
millisecond_ timestamp - Parses a timestamp in milliseconds since epoch into
UnixNanos
. - parse_
notional - Parses a notional string into
Money
, returningNone
if the value is zero. - parse_
order_ side - parse_
position_ side - parse_
price - Parses a string into a
Price
. - parse_
quantity - Parses a string into a
Quantity
with the given precision. - parse_
rfc3339_ timestamp - Parses an RFC3339 timestamp string into
UnixNanos
.