Implement viewing open positions

This commit is contained in:
2022-10-22 00:15:27 +01:00
parent 572b839c2c
commit 30d516ebf9
8 changed files with 81 additions and 72 deletions

View File

@@ -1,4 +1,5 @@
from serde import Model, fields
# {
# "id": "92f0b26b-4c98-4553-9c74-cdafc7e037db",
# "clientOrderId": "ccxt_26adcbf445674f01af38a66a15e6f5b5",
@@ -60,6 +61,7 @@ from serde import Model, fields
# "lastTradeTimestamp": null
# }
class CCXTInfo(Model):
id = fields.Uuid()
client_order_id = fields.Str()
@@ -97,7 +99,6 @@ class CCXTInfo(Model):
source = fields.Optional(fields.Str())
class CCXTRoot(Model):
id = fields.Uuid()
clientOrderId = fields.Str()

View File

@@ -1,4 +1,5 @@
# Trade handling
def sync_trades_with_db(user):
pass