evdubs / harmonia Goto Github PK
View Code? Open in Web Editor NEWMargin funding bot for Bitfinex
Margin funding bot for Bitfinex
Tried compiling on two different VPSs, and keep getting:
[ERROR] /root/Harmonia/src/main/java/name/evdubs/harmonia/Harmonia.java:[87,39] error: for-each loops are not supported in -source 1.3
Ubuntu 12.04 and 14.04, before I installed java7-sdk and maven packages. Anything I'm missing? Or do I need Oracle Java?
Stopped running after more than a day with following error. Anything else I could provide in order to fix it?
Estimated total accrued interest 8.260056296146118
Comparing best ask outside best bid amount 5000.0 with our offer amount 52.09215939
Comparing currentFrr: false with newFrr: false
Comparing currentAmount: 52.09215939 with newAmount: 52.09215939
Comparing currentRate: 174.835 with newRate: 174.835
Matched previous isFrr: false amount: 52.09215939 rate: 174.835
Estimated total accrued interest 8.262561755554234
Comparing currentFrr: false with newFrr: true
Cancelling BitfinexOfferStatusResponse [id=2595303, currency=USD, rate=174.835, period=30, direction=lend, type=null, timestamp=1.41
305997E9, isLive=true, isCancelled=false, originalAmount=52.09215939, remainingAmount=52.09215939, executedAmount=0.0]
Sending LoanOrder [type=ASK, currency=USD, tradableAmount=52.09215939, dayPeriod=30, id=, timestamp=null]
Estimated total accrued interest 8.265128458193995
Comparing currentFrr: false with newFrr: true
Cancelling BitfinexOfferStatusResponse [id=2595330, currency=USD, rate=0.0, period=30, direction=lend, type=null, timestamp=1.4130601E9, isLive=true, isCancelled=false, originalAmount=52.09215939, remainingAmount=52.09215939, executedAmount=0.0]
Sending LoanOrder [type=ASK, currency=USD, tradableAmount=52.09215939, dayPeriod=30, id=, timestamp=null]
Estimated total accrued interest 8.267701752571018
Comparing currentFrr: false with newFrr: true
Cancelling BitfinexOfferStatusResponse [id=2595334, currency=USD, rate=0.0, period=30, direction=lend, type=null, timestamp=1.4130601E9, isLive=true, isCancelled=false, originalAmount=52.09215939, remainingAmount=52.09215939, executedAmount=0.0]
Sending LoanOrder [type=ASK, currency=USD, tradableAmount=52.09215939, dayPeriod=30, id=, timestamp=null]
Estimated total accrued interest 8.270237653820304
Comparing currentFrr: false with newFrr: true
Cancelling BitfinexOfferStatusResponse [id=2595339, currency=USD, rate=0.0, period=30, direction=lend, type=null, timestamp=1.4130601E9, isLive=true, isCancelled=false, originalAmount=52.09215939, remainingAmount=52.09215939, executedAmount=0.0]
Sending LoanOrder [type=ASK, currency=USD, tradableAmount=52.09215939, dayPeriod=30, id=, timestamp=null]
[WARNING]
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:293)
at java.lang.Thread.run(Thread.java:745)
Caused by: com.xeiam.xchange.ExchangeException: Invalid offer: not enough balance
at com.xeiam.xchange.bitfinex.v1.service.polling.BitfinexTradeServiceRaw.placeBitfinexFloatingRateLoanOrder(BitfinexTradeServiceRaw.java:128)
at name.evdubs.harmonia.Harmonia.cancelPreviousAndSendNewOrder(Harmonia.java:278)
at name.evdubs.harmonia.Harmonia.main(Harmonia.java:199)
... 6 more
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 38:56:43.998s
[INFO] Finished at: Sat Oct 11 23:42:11 EEST 2014
[INFO] Final Memory: 12M/36M
[INFO] ------------------------------------------------------------------------
Need to be checking "USD" in activeOffers & activeCredits or BTCs/LTCs will be calculated in.
inactiveFunds is compared to $50, but Bitfinex has a $100 minimum on lending. Should this be changed to $100?
I made the fixs and can submit a pull request.
I was going to start implementing BTC/LTC swaps as well.
I have an idea about using Autorenew for the swaps. That way the minimum is $10 instead of $100.
I can try to work on that also.
When I try to execute always get this
[WARNING] Warning: killAfter is now deprecated. Do you need it ? Please comment on MEXEC-6. [WARNING] java.lang.NoClassDefFoundError: com/xeiam/xchange/ExchangeException at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2570) at java.lang.Class.getMethod0(Class.java:2813) at java.lang.Class.getMethod(Class.java:1663) at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:281) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.ClassNotFoundException: com.xeiam.xchange.ExchangeException at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ... 6 more [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 4.963s [INFO] Finished at: Tue Feb 17 02:25:10 EST 2015 [INFO] Final Memory: 7M/19M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.3.2:java (default-cli) on project harmonia: An exception occured while executing the Java class. com/xeiam/xchange/ExchangeException: com.xeiam.xchange.ExchangeException -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
Hi there, could you explain these point a bit further?
If a flash return rate is bid, hit that bid
If a flash return rate is the best offer (lowest percentage), join the other offers
If a fixed rate is the best offer, join the best fixed rate that is higher than the best fixed bid
e.g. what are the other offers you are talking about in point 2?
Regarding security, are there plans to add hashing fnctionality in order to obfuscate credentials?
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.