kraken: use new `Position.mkt` attr
parent
35f0520cb0
commit
39af215d61
|
@ -402,7 +402,7 @@ def trades2pps(
|
||||||
# right since `.broker` is already
|
# right since `.broker` is already
|
||||||
# included?
|
# included?
|
||||||
account='kraken.' + acctid,
|
account='kraken.' + acctid,
|
||||||
symbol=p.symbol.fqme,
|
symbol=p.mkt.fqme,
|
||||||
size=p.size,
|
size=p.size,
|
||||||
avg_price=p.ppu,
|
avg_price=p.ppu,
|
||||||
currency='',
|
currency='',
|
||||||
|
|
|
@ -647,7 +647,6 @@ async def get_mkt_info(
|
||||||
tx_tick=digits_to_dec(dst.precision),
|
tx_tick=digits_to_dec(dst.precision),
|
||||||
info=dst.to_dict(),
|
info=dst.to_dict(),
|
||||||
)
|
)
|
||||||
|
|
||||||
mkt = MktPair(
|
mkt = MktPair(
|
||||||
dst=dst_asset,
|
dst=dst_asset,
|
||||||
src=src_asset,
|
src=src_asset,
|
||||||
|
|
|
@ -578,8 +578,7 @@ async def trades_dialogue(
|
||||||
|
|
||||||
# for each sym in the ledger load it's `MktPair` info
|
# for each sym in the ledger load it's `MktPair` info
|
||||||
for tid, txdict in ledger.data.items():
|
for tid, txdict in ledger.data.items():
|
||||||
# TODO: switch this to fqme
|
l_fqme: str = txdict.get('fqme') or txdict['fqsn']
|
||||||
l_fqme = txdict.get('fqme', txdict['fqsn'])
|
|
||||||
|
|
||||||
if (
|
if (
|
||||||
gmi
|
gmi
|
||||||
|
|
Loading…
Reference in New Issue