Git Product home page Git Product logo

capybot's People

Contributors

georgedigkas avatar jonas-lj avatar kchalkias avatar randall-mysten avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

capybot's Issues

transacation order

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

Add token amount abstraction

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.

Keep track of balance

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.

Error starting capybot, is there a problem with export ADMIN_PHRASE="xxx" setting?

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.