feedhandlers extended

This commit is contained in:
2026-04-23 03:11:52 +00:00
parent 408a63fe58
commit 539e6004cf
22 changed files with 1340 additions and 205 deletions

23
main.py
View File

@@ -36,15 +36,22 @@ async def run_algo():
loop_start = time.time()
print('__________Start___________')
ASTER_FUND_RATE = json.loads(VAL_KEY.get('fund_rate_aster'))
ASTER_TICKER = json.loads(VAL_KEY.get('fut_ticker_aster'))
print(f'ASTER FUND RATE: {ASTER_FUND_RATE}')
print(f'ASTER TICKER: {ASTER_TICKER}')
ASTER_FUND_RATE_DICT = json.loads(VAL_KEY.get('fund_rate_aster'))
ASTER_TICKER_DICT = json.loads(VAL_KEY.get('fut_ticker_aster'))
# print(f'ASTER FUND RATE: {ASTER_FUND_RATE}')
# print(f'ASTER TICKER: {ASTER_TICKER}')
EXTENDED_FUND_RATE = json.loads(VAL_KEY.get('fund_rate_extended'))
EXTENDED_TICKER = json.loads(VAL_KEY.get('fut_ticker_extended'))
print(f'EXTENDED FUND RATE: {EXTENDED_FUND_RATE}')
print(f'EXTENDED TICKER: {EXTENDED_TICKER}')
EXTENDED_FUND_RATE_DICT = json.loads(VAL_KEY.get('fund_rate_extended'))
EXTENDED_TICKER_DICT = json.loads(VAL_KEY.get('fut_ticker_extended'))
# print(f'EXTENDED FUND RATE: {EXTENDED_FUND_RATE}')
# print(f'EXTENDED TICKER: {EXTENDED_TICKER}')
ASTER_FUND_RATE = float(ASTER_FUND_RATE_DICT.get('funding_rate', 0))
EXTEND_FUND_RATE = float(EXTENDED_FUND_RATE_DICT.get('funding_rate', 0))
print(f'''
ASTER FR: {ASTER_FUND_RATE:.6%} | EXTEND FR: {EXTEND_FUND_RATE:.6%}
''')
time.sleep(5)