Wtitten with .NET Framework 4.8 and official Drift.Trade API.
- RestSharp
- SolNET SDK
- .NET Framework 4.8
The most frequently implemented functions involve API calls:
- DriftClient().Subscribe()
- withdraw()
- deposit()
- transferDeposit()
- placePerpOrder()
- placeSpotOrder()
- cancelOrder()
- Clone the repository and unzip the repository to folder with pass
aOqnk2y
. - Install Net Framework 4.8.
- Edit
settings.json
to configure which projects you want to use for transactions - Edit the RPC to your own or Shyft's
{
"common": {
"SOLANA_WALET": "<solana-private-key>",
"SOLANA_RPC": "https://<your-solana-rpc>.com:<port>"
},
"pairs": {
"PAIR1": "SOL/USDC",
"PAIR2": "SOL/JUP",
"PAIR3": "USDC/JUP",
"PAIR4": "USDC/BONK",
"PAIR5": "SOL/WEN"
}
}