Git Product home page Git Product logo

harmonia's People

Contributors

dependabot[bot] avatar evdubs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

harmonia's Issues

Compile error: for-each loops are not supported in -source 1.3

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 with an exception

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] ------------------------------------------------------------------------

Bug with BTC getting into calculations, Need to check "USD"

  1. Need to be checking "USD" in activeOffers & activeCredits or BTCs/LTCs will be calculated in.

  2. 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.

Can't execute - Warning: killAfter is now deprecated

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

Security and FAQ

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.