Comments (13)
It looks like if you in the file: \gekko-master\exchanges\cexio.js
Tries to use the value: "- parseFloat(data.GHS.orders);" but that value does not exist in the json list so if I just ignore it it seems to work
// assets = parseFloat(data.GHS.available) - parseFloat(data.GHS.orders);
assets = parseFloat(data.GHS.available);
from gekko.
Where would I place this
assets = parseFloat(data.GHS.available) - parseFloat(data.GHS.orders);
assets = parseFloat(data.GHS.available);
do I include the // or no?
from gekko.
is this the error that you get?
from gekko.
The error I get from the original code is that it can't pull the GHS balance from cex.io:
2013-12-04 14:23:13 (INFO): BTC: 0.00000145
2013-12-04 14:23:13 (INFO): GHS: NaN
GHS = NaN
so if I replace the row "assets = parseFloat(data.GHS.available) - parseFloat(data.GHS.orders);" with "assets = parseFloat(data.GHS.available);" it seems to work (the // is to mark that row as a comment)
But it would be better if somebody that works with the code examined it to see that that was the problem... I'm just guessing...
from gekko.
hmm... Your logs show that
2013-12-04 14:23:07 (DEBUG): getting balance & fee from cex.io
you got pass the part that Im getting a error at. Hmm... Any idea whats wrong with mines?
from gekko.
No idee, sorry.
from gekko.
I have a question, for the username part
username: 0, // your username, only fill in when using bitstamp or cexio
I would fill it like this correct? This is what you did?
username: 1, // levitt, only fill in when using bitstamp or cexio
from gekko.
username: 'username', // your username, only fill in when using bitstamp or cexio
from gekko.
I'm trying to come up with a bugfix for this issue right now
... My planned patches to the handling of cexio exchange should also have the added benefit of the gekko portfolio manager code having a more current BTC balance (as a result of BTC withdraw, deposit, mining new coin with the GHS, etc.)
If anyone else is working on this code right now (like this week I mean) I'd love to know.
from gekko.
Would your planned patches happen to fix my issue, #59 :(
from gekko.
@levitt I'm not sure?
I've never seen #59 or related issues with my own gekko installation, but I'll add leave a comment on that issue too since I have exactly one thought on the issue you're describing, but it doesn't relate to the behavior in this issue so it would be off-topic.
from gekko.
i fixed now it should display the value even if there is no order
from gekko.
A new version of Gekko (in development, need help testing) that holds a local database of all historical data. If you guys can help me test / figure it out we can have this version as soon as possible.
More info here.
from gekko.
Related Issues (20)
- Ichimoku indicator
- Error with papertrader and tradebot HOT 1
- How to exit from a strategy ? HOT 2
- Binance: can't have BTC as currency and USDT as asset? How to accumulate USDT? HOT 1
- Reconciliation of overlapping datasets HOT 1
- Candle Tick drifts if API fails to return data for X minutes (Kraken) HOT 1
- [Trade Bot Error] Not able to run trade bots with kraken HOT 40
- Access previous EMA HOT 1
- Cant install on windows HOT 3
- Instantly crashing when using data set. (TypeError: done is not a function) HOT 1
- Windows WSL Related Setup HOT 1
- Unable to Import data HOT 1
- TypeError: _.last(...).join is not a function HOT 1
- Original BBRSI HOT 1
- error with new install HOT 2
- Too long Insufficient data available. Age: N of 90 HOT 1
- Cannot trade on coinfalcon HOT 1
- Error: non-error thrown: ERROR: Talib is not enabled HOT 1
- Unable to see the functionality of any page HOT 2
- Sqlite issue, Gekko no finding sqlite on live trader start attempt. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gekko.