Skip to main content

Module parse

Module parse 

Source
Expand description

HTTP response parsing utilities for the Derive execution client.

Functionsยง

parse_derive_order_to_report
Builds an [OrderStatusReport] from a Derive order record.
parse_derive_position_to_report
Builds a [PositionStatusReport] from a Derive position record.
parse_derive_subaccount_to_balances
Derives [AccountBalance] and [MarginBalance] rows from a DeriveSubaccount snapshot.
parse_derive_trade_to_fill_report
Builds a [FillReport] from a Derive trade record.