Skip to content

Commit

Permalink
Add support for FDUSD and TUSD stablecoins for Binance spot
Browse files Browse the repository at this point in the history
  • Loading branch information
saleh-mir committed Oct 16, 2024
1 parent a61f921 commit 765109e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions jesse/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,10 @@ def dashy_symbol(symbol: str) -> str:
return symbol[:-3] + '-MIM'
if symbol.endswith('TRY'):
return symbol[:-3] + '-TRY'
if symbol.endswith('USD'):
return symbol[:-3] + '-USD'
if symbol.endswith('FDUSD'):
return symbol[:-5] + '-FDUSD'
if symbol.endswith('TUSD'):
return symbol[:-4] + '-TUSD'
if symbol.endswith('UST'):
return symbol[:-3] + '-UST'
if symbol.endswith('USDT'):
Expand All @@ -148,6 +150,8 @@ def dashy_symbol(symbol: str) -> str:
return symbol[:-4] + '-USDP'
if symbol.endswith('USDU'):
return symbol[:-4] + '-USDU'
if symbol.endswith('USD'):
return symbol[:-3] + '-USD'

if len(symbol) > 7 and symbol.endswith('SUSDT'):
# ex: SETHSUSDT => SETH-SUSDT
Expand Down

0 comments on commit 765109e

Please sign in to comment.