drift-labs / driftpy

python sdk to interact with drift v2
https://drift-2.gitbook.io/driftpy-for-dummies/
58 stars 39 forks source link

examples - fetch_all_markets is not working as expected #60

Open patllc opened 9 months ago

patllc commented 9 months ago

error "solders.SerdeJSONError: data did not match any variant of untagged enum Resp" appears when calling "all_perps_markets = await drift_client.program.account['PerpMarket'].all()"

0xbigz commented 9 months ago

you may need to replace the public rpc if you see

httpx.HTTPStatusError: Client error '410 Gone' for url 'https://api.mainnet-beta.solana.com'