1010from loguru import logger
1111
1212sys .path .insert (0 , os .path .dirname (os .path .dirname (os .path .abspath (__file__ ))))
13- from pythclient .pythclient import PythClient , V2_PROGRAM_KEY , V2_FIRST_MAPPING_ACCOUNT_KEY
14- from pythclient .ratelimit import RateLimit
15- from pythclient .pythaccounts import PythPriceAccount
13+ from pythclient .pythclient import PythClient , V2_PROGRAM_KEY , V2_FIRST_MAPPING_ACCOUNT_KEY # noqa
14+ from pythclient .ratelimit import RateLimit # noqa
15+ from pythclient .pythaccounts import PythPriceAccount # noqa
1616
1717logger .enable ("pythclient" )
1818
@@ -32,7 +32,10 @@ def set_to_exit(sig: Any, frame: Any):
3232async def main ():
3333 global to_exit
3434 use_program = len (sys .argv ) >= 2 and sys .argv [1 ] == "program"
35- async with PythClient (first_mapping_account_key = V2_FIRST_MAPPING_ACCOUNT_KEY , program_key = V2_PROGRAM_KEY if use_program else None ) as c :
35+ async with PythClient (
36+ first_mapping_account_key = V2_FIRST_MAPPING_ACCOUNT_KEY ,
37+ program_key = V2_PROGRAM_KEY if use_program else None ,
38+ ) as c :
3639 await c .refresh_all_prices ()
3740 products = await c .get_products ()
3841 all_prices : List [PythPriceAccount ] = []
@@ -82,8 +85,6 @@ async def main():
8285 pr .aggregate_price_confidence_interval ,
8386 )
8487 break
85- else :
86- print ("WTF!: " , price )
8788
8889 print ("Unsubscribing..." )
8990 if use_program :
0 commit comments