driftpy
driftpy copied to clipboard
examples - fetch_all_markets is not working as expected
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()"
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'