Code Monkey home page Code Monkey logo

bitcoin-dca's People

Contributors

dependabot[bot] avatar freenancial avatar qyang-nj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

bitcoin-dca's Issues

Auto sell USDC on Coinbase

We want to keep USD as USDC on Coinbase to earn interest.

In addition, we can set "recurring purchase" of USDC on Coinbase.

Once we enabled auto selling of USDC on Coinbase in this DCA tool, combining that with "recurring purchase" of USDC, we would be able to completely automate the Bitcoin DCA process with minimum fee while earning maximum interest.

Use account balance as withdraw threshold instead

We should not make withdrawal if the Bitcoin available for withdrawal is too little.

For example, if we only have 50,000 sats in the account, it doesn't make sense to withdraw it because it could be too expensive to spend this UTXO in the future. At this moment, a medium priority on-chain transaction cost around 75 sats/vB. If a transaction takes 300vB, it'd cost 22,500 sats on chain transaction fee.

It seems that a minimum of 500k sat to 1 million sat per UTXO would be a reasonable target.

Encrypt the withdrawal Bitcoin address

Right now, the withdrawal xpub and beginning address are saved as plain text in config.ini. If a hacker changed the address, Bitcoin will be auto withdrawn to the hacker's address.

We should encrypt the addresses and move them to bitcoin_dca.secrets instead.

Check bitcoin withdrawal addresses' transaction history instead of balance

Right now, we allow withdrawal of Bitcoin to a target address as long as it has an empty balance. However, we should not reuse a Bitcoin address even if it has zero balance if it had already been transacted before.

So instead, we should check the transaction history of the target address, and avoid using it if it has had any transactions.

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.