Remap trade details schema to expand trade variable
This commit is contained in:
parent
c5d289ce85
commit
62476e5da3
|
@ -602,6 +602,20 @@ class TradeDetails(BaseModel):
|
|||
|
||||
|
||||
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",
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue