dokka / bttrxr Goto Github PK
View Code? Open in Web Editor NEWA command line app for buying and selling coins on bittrex
License: MIT License
A command line app for buying and selling coins on bittrex
License: MIT License
Hi DOKKA,
thank you for your amazing work, I've been trying to play around with bttrxr but noticed that Unix systems will throw following error:
[code]/usr/bin/env: ‘node\r’: No such file or directory[/code]
Can you please change file settings of your project from CRLF to LF only? This will solve issues on Unix systems not being able to properly pick env runtime.
Thanks once again!
hi, installed fresh ubuntu17.10, updated, then installed nodejs with
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - ; apt-get install -y nodejs
root@ubuntu:# node --version# which node
v8.8.1
root@ubuntu:
/usr/bin/node
then bttrxr with
git clone https://github.com/DOKKA/bttrxr.git
cd bttrxr/
npm install -g bttrxr
cd ..
node --version
then set bittrex api key and secret (properly enabled on bittrex page to alolow everything)
bttrxr --help works, also bttrxr list, ...
when try bttrxr bal, i get
root@ubuntu:~# bttrxr balance
Unhandled rejection TypeError: Cannot read property 'toFixed' of undefined
at /usr/lib/node_modules/bttrxr/lib/commands/balanceCommand.js:95:88
at tryCatcher (/usr/lib/node_modules/bttrxr/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/usr/lib/node_modules/bttrxr/node_modules/bluebird/js/release/promise.js:512:31)
at Promise._settlePromise (/usr/lib/node_modules/bttrxr/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromise0 (/usr/lib/node_modules/bttrxr/node_modules/bluebird/js/release/promise.js:614:10)
at Promise._settlePromises (/usr/lib/node_modules/bttrxr/node_modules/bluebird/js/release/promise.js:693:18)
at Promise._fulfill (/usr/lib/node_modules/bttrxr/node_modules/bluebird/js/release/promise.js:638:18)
at PromiseArray._resolve (/usr/lib/node_modules/bttrxr/node_modules/bluebird/js/release/promise_array.js:126:19)
at PromiseArray._promiseFulfilled (/usr/lib/node_modules/bttrxr/node_modules/bluebird/js/release/promise_array.js:144:14)
at Promise._settlePromise (/usr/lib/node_modules/bttrxr/node_modules/bluebird/js/release/promise.js:574:26)
at Promise._settlePromise0 (/usr/lib/node_modules/bttrxr/node_modules/bluebird/js/release/promise.js:614:10)
at Promise._settlePromises (/usr/lib/node_modules/bttrxr/node_modules/bluebird/js/release/promise.js:693:18)
at Async._drainQueue (/usr/lib/node_modules/bttrxr/node_modules/bluebird/js/release/async.js:133:16)
at Async._drainQueues (/usr/lib/node_modules/bttrxr/node_modules/bluebird/js/release/async.js:143:10)
at Immediate.Async.drainQueues (/usr/lib/node_modules/bttrxr/node_modules/bluebird/js/release/async.js:17:14)
at runCallback (timers.js:785:20)
root@ubuntu:~#
what is interesting too, i tried (bttrx bal) on working machine with a friend's key/secret whic were working at the time, my key/secret were not working there. when rollbacked this other machine to original key/secret - they are not working anymore. tried deleting node's cache (--force), still not working.
help?
regards,
ales
How to set a stop loss?
In sellCommand.js
we have the following lines.
//bittrex charges a 0.25% fee per transaction
amount = amount - (amount *.0025);
baseAmount = baseAmount - (baseAmount * .0025);
This reduces the number of coins to sell as well as the sell price.
These calculations definitely make sense in a buy order but are not useful in a sell order.
The problem was noticed when my 100% sells (-p 100) were leaving behind some dust amounts
Tried after long time, on same machine I used it. Many errors. Dunno if something changed on bittrex or corrupted on my machine!
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.