kenshinfrog / drift-trade-bot

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

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