Expand description
Parsing functions for converting Coinbase API responses to Nautilus domain types.
Functionsยง
- coinbase_
side_ to_ aggressor - Converts a Coinbase order side to a Nautilus aggressor side.
- parse_
account_ state - Parses a list of Coinbase
Accountentries into a Nautilus [AccountState]. - parse_
bar - Parses a Coinbase candle into a
Bar. - parse_
cfm_ account_ state - Builds a margin [
AccountState] from the CFM balance summary and the current CBI / CFM USD balances. - parse_
cfm_ margin_ balances - Parses a CFM balance summary into a single consolidated [
MarginBalance]. - parse_
cfm_ position_ status_ report - Parses a single CFM position into a Nautilus [
PositionStatusReport]. - parse_
epoch_ secs_ timestamp - Parses a Unix epoch seconds string to
UnixNanos. - parse_
fill_ report - Parses a Coinbase
Fillinto a [FillReport]. - parse_
future_ instrument - Parses a Coinbase dated future into a
CryptoFuture. - parse_
instrument - Parses a Coinbase product into the appropriate Nautilus instrument type.
- parse_
liquidity_ side - Converts a Coinbase liquidity indicator to the Nautilus [
LiquiditySide]. - parse_
order_ side - Converts a Coinbase order side to the Nautilus [
OrderSide]. - parse_
order_ status - Converts a Coinbase order status to the Nautilus [
OrderStatus]. - parse_
order_ status_ report - Parses a Coinbase
Orderinto an [OrderStatusReport]. - parse_
order_ type - Converts a Coinbase order type to the Nautilus [
OrderType]. - parse_
perpetual_ instrument - Parses a Coinbase perpetual futures product into a
CryptoPerpetual. - parse_
price - Parses a price string with the given precision.
- parse_
product_ book_ snapshot - Parses a Coinbase order book snapshot into
OrderBookDeltas. - parse_
quantity - Parses a quantity string with the given precision.
- parse_
rfc3339_ timestamp - Parses an RFC 3339 timestamp string to
UnixNanos. - parse_
spot_ instrument - Parses a Coinbase spot product into a
CurrencyPair. - parse_
time_ in_ force - Converts a Coinbase time-in-force to the Nautilus [
TimeInForce]. - parse_
trade_ tick - Parses a Coinbase trade into a
TradeTick. - parse_
ws_ cfm_ account_ state - Builds a margin [
AccountState] from a WebSocket-delivered FCM balance summary. - precision_
from_ increment - Derives precision (number of decimal places) from an increment string.