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