Skip to content

Trading bot written in .NET using drift.trade API and own SDK

Notifications You must be signed in to change notification settings

kenshinfrog/drift-trade-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

About

Wtitten with .NET Framework 4.8 and official Drift.Trade API.

Dependencies

  • .NET Framework 4.8
  • SolNET SDK
  • RestSharp

Realised functions

Most common functions API calls realised:

  • DriftClient().Subscribe()
  • deposit()
  • withdraw()
  • transferDeposit()
  • placePerpOrder()
  • placeSpotOrder()
  • cancelOrder()

Setup

  • Install Net Framework 4.8.
  • Clone the repository and unzip the repository to folder.
  • Edit settings.json to configure which projects you want to use for transactions
  • Edit the RPC to your own or Shyft's

Config example

{
  "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"
  }
}

Contributions

Disclamer

This tool is exclusively designed for educational objectives, and the creator disclaims any accountability for potential website spam arising from its utilization.