File size: 445 Bytes
85d632d
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import httpx
import asyncio

async def check_eurusd_no_plus():
    symbol = "EURUSD"
    category = "linear"
    url = f"https://api.bybit.com/v5/market/instruments-info?category={category}&symbol={symbol}"
    async with httpx.AsyncClient() as client:
        resp = await client.get(url)
        data = resp.json()
        print(f"Result for {symbol} in {category}: {data}")

if __name__ == "__main__":
    asyncio.run(check_eurusd_no_plus())