Compare commits

..

No commits in common. "b3bacde8df38f70a1b92d1761cca2b9cc9523e34" and "c5d289ce8587bece26c3db5a05800fa1eb69ad4c" have entirely different histories.

3 changed files with 3 additions and 20 deletions

View File

@ -602,20 +602,6 @@ class TradeDetails(BaseModel):
TradeDetailsSchema = {
"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",
"trade": "trade",
"lastTransactionID": "lastTransactionID",
}

View File

@ -29,7 +29,7 @@
</thead>
<tbody>
{% for key, item in db_info.items %}
{% if key == 'response' %}
{% if key == 'instruments' %}
<tr>
<th>{{ key }}</th>
<td>

View File

@ -50,15 +50,12 @@ class TradeAction(LoginRequiredMixin, OTPRequiredMixin, View):
if type == "page":
type = "modal"
db_info = db_info.__dict__
del db_info["_state"]
del db_info["_original"]
context = {
"title": f"Trade info ({type})",
"unique": unique,
"window_content": self.window_content,
"type": type,
"db_info": db_info,
"db_info": db_info.__dict__,
"live_info": live_info,
}