Skip to content

WangWilly/sol-trading-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Core (service) for copy trading

This module will be frequently updated. Serve as listener for the target account and copy the trades to the source account.

Development

Testing

./scripts/test-jup-client.sh
./scripts/test-parse-swap-transaction.sh

Running

Create .env file with the following content:

PRIVATE_KEY_BASE58=<private_key_base58>

Use the solRpcWsSubscribeManager in the main function to subscribe to the target account.

./scripts/trade-serve.sh

References