Remap trade details schema to expand trade variable

This commit is contained in:
Mark Veidemanis 2022-12-02 07:20:37 +00:00
parent c5d289ce85
commit 62476e5da3
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
1 changed files with 15 additions and 1 deletions

View File

@ -602,6 +602,20 @@ class TradeDetails(BaseModel):
TradeDetailsSchema = { TradeDetailsSchema = {
"trade": "trade", "id": "trade.id",
"symbol": "trade.instrument",
"price": "trade.price",
"openTime": "trade.openTime",
"initialUnits": "trade.initialUnits",
"initialMarginRequired": "trade.initialMarginRequired",
"state": "trade.state",
"currentUnits": "trade.currentUnits",
"realizedPL": "trade.realizedPL",
"closingTransactionIDs": "trade.closingTransactionIDs",
"financing": "trade.financing",
"dividendAdjustment": "trade.dividendAdjustment",
"closeTime": "trade.closeTime",
"averageClosePrice": "trade.averageClosePrice",
"clientExtensions": "trade.clientExtensions",
"lastTransactionID": "lastTransactionID", "lastTransactionID": "lastTransactionID",
} }