models
drift_data.models
#
ContractConverted
#
ContractRaw
#
Bases: BaseModel
Raw contract data from Drift Protocol.
This model represents the raw data for a contract as returned by the Drift Data API. This is undocumented, but is referenced in the teacher documentation.
to_converted
#
FundingRateRecord
#
Bases: BaseModel
Record of a perp market funding rate on Drift Protocol.
While this model is designed for a new undocumented API endpoint, it is nearly
identical to GET /fundingRates
and can be used as a point of reference.