File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -32,19 +32,19 @@ async def get_crosschain_prices(self) -> Dict[str, CrosschainPrice]:
32
32
async with ClientSession (
33
33
headers = {"content-type" : "application/json" }
34
34
) as session :
35
- price_feed_ids_url = f"{ self .url } /api/price_feed_ids "
35
+ price_feeds_index_url = f"{ self .url } /v2/price_feeds "
36
36
37
- async with session .get (price_feed_ids_url ) as response :
38
- price_feed_ids = await response .json ()
37
+ async with session .get (price_feeds_index_url ) as response :
38
+ price_feeds_index = await response .json ()
39
39
40
40
price_feeds = []
41
41
42
- for ids in chunked (price_feed_ids , 25 ):
43
- price_feeds_url = f"{ self .url } /api/latest_price_feeds "
42
+ for feeds in chunked (price_feeds_index , 25 ):
43
+ price_feeds_url = f"{ self .url } /v2/updates/price/latest "
44
44
45
45
# aiohttp does not support encoding array params using PHP-style `ids=[]`
46
46
# naming, so we encode it manually and append to the URL.
47
- query_string = "?" + "&" .join (f"ids[]={ v } " for v in ids )
47
+ query_string = "?" + "&" .join (f"ids[]={ v [ 'id' ] } " for v in feeds )
48
48
async with session .get (
49
49
price_feeds_url + query_string ,
50
50
) as response :
You can’t perform that action at this time.
0 commit comments