eloque / cexcontrol Goto Github PK
View Code? Open in Web Editor NEWPython utility to connect to Cex.IO
Python utility to connect to Cex.IO
Hi,
This error has just popped up in the last few days.
This has been working perfectly until this though, awesome app.
Any ideas?
Cheers
Chris
Hi,
I just noticed, that CEX.io has implemented LTC now.
Could you implement that too?
Based on the docs, it looked like I needed to launch it for the first time with the "newconfig" argument, which I did.
It looks like when you do that, it first asks all the new config questions because it realizes there is no config, saves that config, then does it all over again because it parses the "newconfig" argument.
I think the newconfig argument check should come before trying to load the config.
I'm currently running the script (using the master branch downloaded 5 May 2014) with these settings:
{"username": "reedog117", "NMCReserve": "0.0001", "secret": "blahblah", "NMCThreshold": "5e-05", "key": "blahblah", "BTCReserve": "0.0001", "BTCThreshold": "5e-05", "HoldCoins": true, "EfficiencyThreshold": "0.5"}
I'm getting errors such as:
Buy NMC then use that to buy GHS
Target Coin set to: NMC
Efficiency threshold: 0.5
Efficiency possible: 0.24
Arbitration not desired, hold non target coins this cycle
BTC Balance: 0.00056438
NMC Balance: 0.26166969
----------------------------------------
Amount to buy 0.18157900
Placed order at GHS/NMC
Buy 0.18157900
at 1.44048910
Total 0.26156257
Funds 0.26166969
{u'error': u'Error: Place order error: Insufficient funds.'}
0.181579
1.4404891
GHS/NMC
----------------------------------------
Not sure what to do at this point to fix it. I'm guessing that the trade fee isn't being calculated correctly, resulting in orders that are too large?
I would like to be able to specify a minimum and maximum limit for trading , for BTC mainly, but if you have to do both BTC and NMC to make it make sense, that would be fine too.
Are any future versions going to be released for all the new currency pairs that cex.io now has available?
Great APi, thanks for sharing. In my reading of CEX's API (both REST and Websocket), I can not find an API endpoint to withdraw crypto-currency. However, their web-client is able to withdraw from CEX to a crypto-currency address. Has anyone found a way to withdraw crypto-currency funds from CEX programatically?
log.Output ("LTC Threshold: %0.8f" % settings.IXC.Threshold)
log.Output ("LTC Reserve : %0.8f" % settings.IXC.Reserve)
So LTC is equal to IXC.
Hi,
there was this strange <type 'exceptions.TypeError'>" error.
However, someone solved it. See here:
https://support.cex.io/hc/communities/public/questions/200783667-Official-Eloque-reinvestment-python-script-troubleshooting/answers/201604788
If you change
Ask = ConvertUnicodeFloatToFloat(ticker["ask"])
Bid = ConvertUnicodeFloatToFloat(ticker["bid"])
to
Ask = ticker["ask"]
Bid = ticker["bid"]
in the GetPrice Function everything works fine again.
Maybe Ive just over looking a method to accomplish this for myself.
BUT...
Id love to be able to set a max GHS per day to buy.
What are your thoughts, is it something that is accomplish-able with out a huge rework (which is what I saw)...
Thanks ahead of time.
Every commit since 03662ad gives me the following error (copied from CexControl.log):
1387093886 Start cycle at Sat Dec 14 23:51:26 2013
1387093895 GHS balance: 1.7076357
1387093895
1387093898 1 NMC is 0.09015089 GHS
1387093898 1 NMC is 0.00663780 BTC
1387093898 1 BTC is 13.62873155 GHS
1387093898 1 BTC is 150.65232457 NMC
1387093898
1387093898 Unexpected error:
1387093898 <type 'exceptions.TypeError'>
1387093898 An error occurred, skipping cycle
I get this error on my own machine running either Ubuntu 12.10 64-bit or Ubuntu 13.10 32-bit (I've tried it with both) and also on a VPS (where I normally run the bot) running Ubuntu 12.10 Server 64-bit.
When I revert to commit 12958f9 everything works fine using the same configuration file. I'm not much of a Python expert but I don't see what changes in 03662ad would be causing this problem, otherwise this would be a pull request. :)
If it helps, I can post my configuration file with the API key and secret removed, but the config was created by CexControl.py and works fine with 12958f9 and older commits. For now I'll just keep running the older version since it works for me, but hopefully this is an easy fix so I can keep up to date with any new changes.
See last comment. Not sure this is something you can fix from your side, but it is an issue now.
Hi,
does the API allow Withdrawals?
It would be nice to auto withdraw the Altcoins, that cannot be used to buy GHS yet.
It would be amazing if I could set a value to spend all BTC in excess of X.
So in theory IF I wanted to take 1BTC out a day with the Cex auto pay out, the "overage" would be re-invested.
IF you would consider implementing I would be most greatful.
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.