mystenlabs / capybot Goto Github PK
View Code? Open in Web Editor NEWAutomated trading bot
License: MIT License
Automated trading bot
License: MIT License
The Capybot should keep track of the balance of each token it's trading and also how much it have spent on gas and fees. This will help traders to evaluate how the bot is doing. Assuming we can get pricing data for all tokens, it could also compute a total balance as a single value, say USD.
These numbers should be logged so the Capybot Monitor can produce plots showing the development.
Strategies need to handle the relative prices of different tokens which can get quite complicated. Adding a TokenAmount class which holds the amount and the coin type could make this simpler.
npm run start > [email protected] start
node dist/index.js /coding/capybot/node_modules/@scure/bip39/index.js:25 throw new Error('Invalid mnemonic');
^ Error: Invalid mnemonic
at normalize (/coding/capybot/node_modules/@scure/bip39/index.js:25:15) at mnemonicToSeedSync (/coding/capybot/node_modules/@scure/bip39/index.js:140:50) at mnemonicToSeed (/coding/capybot/node_modules/@mysten/sui.js/dist/index.js:2015:46) at mnemonicToSeedHex (/coding/capybot/node_modules/@mysten/sui.js/dist/index.js:2018:33) at Ed25519Keypair.deriveKeypair (/coding/capybot/node_modules/@mysten/sui.js/dist/index.js:2309:38) at Object. (/coding/capybot/dist/index.js:36:43) at Module._compile (node:internal/modules/cjs/loader:1256:14) at Module._extensions..js (node:internal/modules/cjs/loader:1310:10) at Module.load (node:internal/modules/cjs/loader:1119:32)
at Module._load (node:internal/modules/cjs/loader:960:12) Node.js v18.16.1
in order to arbitrage you are sending 3 transactions essentially instead of having it atomic in a move script, this means you can succeed in some and fail in others causing a huge loss. would love to see how you can integrate these into an atomic move script
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.