Compare commits
No commits in common. "b3bacde8df38f70a1b92d1761cca2b9cc9523e34" and "c5d289ce8587bece26c3db5a05800fa1eb69ad4c" have entirely different histories.
b3bacde8df
...
c5d289ce85
@ -602,20 +602,6 @@ class TradeDetails(BaseModel):
|
|||||||
|
|
||||||
|
|
||||||
TradeDetailsSchema = {
|
TradeDetailsSchema = {
|
||||||
"id": "trade.id",
|
"trade": "trade",
|
||||||
"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",
|
||||||
}
|
}
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{% for key, item in db_info.items %}
|
{% for key, item in db_info.items %}
|
||||||
{% if key == 'response' %}
|
{% if key == 'instruments' %}
|
||||||
<tr>
|
<tr>
|
||||||
<th>{{ key }}</th>
|
<th>{{ key }}</th>
|
||||||
<td>
|
<td>
|
||||||
|
@ -50,15 +50,12 @@ class TradeAction(LoginRequiredMixin, OTPRequiredMixin, View):
|
|||||||
|
|
||||||
if type == "page":
|
if type == "page":
|
||||||
type = "modal"
|
type = "modal"
|
||||||
db_info = db_info.__dict__
|
|
||||||
del db_info["_state"]
|
|
||||||
del db_info["_original"]
|
|
||||||
context = {
|
context = {
|
||||||
"title": f"Trade info ({type})",
|
"title": f"Trade info ({type})",
|
||||||
"unique": unique,
|
"unique": unique,
|
||||||
"window_content": self.window_content,
|
"window_content": self.window_content,
|
||||||
"type": type,
|
"type": type,
|
||||||
"db_info": db_info,
|
"db_info": db_info.__dict__,
|
||||||
"live_info": live_info,
|
"live_info": live_info,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user