10
10
from loguru import logger
11
11
12
12
sys .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
16
16
17
17
logger .enable ("pythclient" )
18
18
@@ -32,7 +32,10 @@ def set_to_exit(sig: Any, frame: Any):
32
32
async def main ():
33
33
global to_exit
34
34
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 :
36
39
await c .refresh_all_prices ()
37
40
products = await c .get_products ()
38
41
all_prices : List [PythPriceAccount ] = []
@@ -82,8 +85,6 @@ async def main():
82
85
pr .aggregate_price_confidence_interval ,
83
86
)
84
87
break
85
- else :
86
- print ("WTF!: " , price )
87
88
88
89
print ("Unsubscribing..." )
89
90
if use_program :
0 commit comments