You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Recommended for new applications and when you need access to the latest exchange features
100
-
- Example:
101
-
```python
102
-
from pyinjective.async_client_v2 import AsyncClient
103
-
from pyinjective.network import Network
104
-
105
-
asyncdefmain():
106
-
# Initialize client with mainnet
107
-
client = AsyncClient(network=Network.mainnet())
108
-
# Or use testnet
109
-
# client = AsyncClient(network=Network.testnet())
110
-
# Use V2 exchange queries here
111
-
```
112
-
113
-
Both clients provide similar interfaces but with different underlying implementations. Choose V2 for new projects unless you have specific requirements for V1 compatibility.
75
+
## Async client (exchange V2)
76
+
77
+
The Injective Python SDK exposes `AsyncClient` from the `async_client_v2` module:
0 commit comments