binance: handle new `TRADIFI_PERPETUAL`..
parent
bf2726b066
commit
b2447a8fe8
|
|
@ -223,7 +223,10 @@ class FutesPair(Pair):
|
||||||
assert pair == self.pair # sanity
|
assert pair == self.pair # sanity
|
||||||
return f'{expiry}'
|
return f'{expiry}'
|
||||||
|
|
||||||
case 'PERPETUAL':
|
case (
|
||||||
|
'PERPETUAL'
|
||||||
|
| 'TRADIFI_PERPETUAL'
|
||||||
|
):
|
||||||
return 'PERP'
|
return 'PERP'
|
||||||
|
|
||||||
case '':
|
case '':
|
||||||
|
|
@ -252,7 +255,10 @@ class FutesPair(Pair):
|
||||||
margin: str = self.marginAsset
|
margin: str = self.marginAsset
|
||||||
|
|
||||||
match ctype:
|
match ctype:
|
||||||
case 'PERPETUAL':
|
case (
|
||||||
|
'PERPETUAL'
|
||||||
|
| 'TRADIFI_PERPETUAL'
|
||||||
|
):
|
||||||
return f'{margin}M'
|
return f'{margin}M'
|
||||||
|
|
||||||
case (
|
case (
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue