Git Product home page Git Product logo

coinbot-prototype's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

coinbot-prototype's Issues

use bitrise gitcrypt

currently bitrise tests are failing due to bitrise not having a gpg key to handle the database folder.

This needs to be added and I have a example I have seen

+    - [email protected]:
 +        title: Install Git-Crypt
 +        inputs:
 +        - content: |
 +            #!/bin/bash
 +            # fail if any commands fails
 +            set -e
 +
 +            git clone [email protected]:AGWA/git-crypt.git && cd git-crypt && make install
 +            apt-get install --yes gnupg2
 +        - working_dir: "$BITRISE_SOURCE_DIR/.."
 +    - [email protected]:
 +        title: Unlock with Git-Crypt
 +        inputs:
 +        - content: |-
 +            #!/bin/bash
 +            # fail if any commands fails
 +            set -e
 +
 +            echo "$GIT_CRYPT_KEY" | base64 -d > git-crypt.key
 +
 +            git crypt unlock git-crypt.key
 +        - is_debug: 'yes'

Trouble getting set up

Error:

▲ yarn run go
yarn run v0.20.3
$ node index.js
/Users/jhanstra/JH/learn/coin/coinbot/src/index.js:57
async function run(currency        ) {
      ^^^^^^^^
SyntaxError: Unexpected token function
    at Object.exports.runInThisContext (vm.js:76:16)
    at Module._compile (module.js:542:28)
    at Module._compile (/Users/jhanstra/JH/learn/coin/coinbot/node_modules/flow-remove-types/register.js:29:23)
    at Module._extensions..js (module.js:579:10)
    at Object.require.extensions.(anonymous function) [as .js] (/Users/jhanstra/JH/learn/coin/coinbot/node_modules/flow-remove-types/register.js:32:5)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Is this a babel error?

ability to trade automatically

Use an env variable AUTO_TRADE to allow coinbot to trade automatically on your behalf. Coinbot would analyze the trends of each coin market and make a buy/sell in an amount that reflects its confidence. e.g. if ETH price is dropping quickly, coinbot will wait for its best guess at a trough and purchase.

mutli coin integration

coinbase/coinbase-pro-node#20

Apparently you have to create multiple clients.

psuedo implementation

const choiceCurrency = "USD"
const coins = [`BTC`, 'ETH', 'LTC'];

coins.map(coin => run(`coin-${choiceCurrency}`));

getSnapshot(coin) -> client[coin].getProductTicker(coinSnapshot)
getAccount(coin) -> client[coin].getAccounts filter == coin

run algorithm as normal.

concurrent promises

currently, the promises up front that get the btc amount, the user account, etc... they are done async/await and the execution time is therefore slow.

these should be instead fired concurrently to produce faster output.

types in one place?

I haven't used Flow before so this might be a bad idea - but would it make sense to put all of our Flow types in one file or folder? Is that even possible?

create simple json storage.

it would be great to start storing the data we check on the market so that we can better analyze the trends that are ongoing for smarter predictions.

was thinking about having a year folder > week of the year folder (1-52) > and then a file per day and have all the trades per day as a new object within that json file.

deactivate twilio in favor of bootbot

Unfortunately if I want to take this technology into the world, the solutions twilio offers is quite expensive as just sending messages to myself over the last month has nearly cost 20 euros.

If I am to wish to bring it to others, for each person this will add a compounding cost.

I am going to switch to a bot solution instead, which will offer a lot more customization as well in the long run in terms of features it can handle.

https://github.com/Charca/bootbot

configurable risk ratios

currently it is static set how high and low your bot should be reporting to you.

it would be good to have this programatically set via how much money you have available to trade (recommendations maybe) and then customizable otherwise.

allow for use with euros/gbp

figured this might motivate you to work on this ;)

Should be easy if the check for USD is somehow separated into its own function like getRealWorldCurrency, and then see the idea in #15 for calling it properly.

Thoughts?

Unfortunately, I only see BTC trading possible with EUR/GBP via gdax at the moment, not seeing any support for ETH/LTC.

but BTC -> ETH, BTC -> LTC exists... would be a whole nother level of engineering.

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.