awitherow / coinbot-prototype Goto Github PK
View Code? Open in Web Editor NEWa coin trading assistant [deprecated]
Home Page: http://awitherow.github.com/coinbot-prototype
a coin trading assistant [deprecated]
Home Page: http://awitherow.github.com/coinbot-prototype
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'
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?
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.
Apparently you have to create multiple clients.
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.
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.
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?
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.
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.
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.
figure out how to implement blessed/blessed-contrib into a smart interface for your github bot in the terminal!
https://github.com/chjj/blessed
https://github.com/yaronn/blessed-contrib
unfortunately they are not handling things well.
was thinking about handling them better here and doing some checks for status codes, and then helping them upstream.
I think it would be cool to be able to being providing coinbot as a service.
could help us achieve that.
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.
The logger helper is nice, but it would be hawt with emoji support.
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.