A python software developer kit for interacting with the Drift Protocol. The package can also be used for research purposes to simulate transactions and events on the protocol, battle-testing it in unique scenarios.
pip install -r requirements
from os import environ
from sdk.client.sync import DriftClient
# instantiate a client with a private key for your Solana wallet
drift_client = DriftClient.create(
private_key=environ['SOLANA_WALLET_PRIVATE_KEY'],
endpoint='https://api.mainnet-beta.solana.com'
)
market = drift_client.call_market(,
print(market)