Pages:
Author

Topic: Isis ATP [Automated Trading Platform] - Discussion - page 14. (Read 45225 times)

sr. member
Activity: 462
Merit: 250
yea the 403 error is the api keys are not correct, please check the keys CAREFULLY. Check the "O" and "0"! the key has to be entered exact.

on another note I have had this up and running for last few hours and no trades at all. Used conservative and max 3, min 0.1   . "market trend is up" , "there just isn't enough momentum to trade at this time". Is this correct for others?

edit: java -jar isis.jar --debug-live=true  old one

edit2: java -jar aido --debug-live=true    new one
anything special need to be setup to use arb thru gox??
sr. member
Activity: 248
Merit: 252
1. Collect underpants 2. ? 3. Profit
I have seen that this line is not at my log:
Code:
AccountManager [main] - AccountInfo as String: AccountInfo [username=xxx, wallets=[Wallet [currency=BTC, balance=BTC 0.0], Wallet [currency=USD, balance=USD 0.0]]]

OK, this means it couldn't log in to get the account info.

Double check that the API Key and Secret key in your debug message (first 2 lines of your log) are EXACTLY the same as the keys on your MtGox account. If you say your internet connection is working fine and not proxied this is the only other reason I can think of.

I will assume that the newline character after MtGox Secret Key: is a typo from when you typed all the xxxxx's and not actually in the log file.
legendary
Activity: 2955
Merit: 1050
Code:
2012-12-07 00:59:20,588 : DEBUG org.open.payment.alliance.isis.atp.IsisMtGoxExchange [main] - MtGox API Key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2012-12-07 00:59:20,602 : DEBUG org.open.payment.alliance.isis.atp.IsisMtGoxExchange [main] - MtGox Secret Key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2012-12-07 00:59:24,241 : INFO  org.open.payment.alliance.isis.atp.AccountManager [main] - AccountInfo as String: AccountInfo [username=xxx, wallets=[Wallet [currency=BTC, balance=BTC 0.0], Wallet [currency=USD, balance=USD 0.0]]]
2012-12-07 00:59:24,742 : INFO  org.open.payment.alliance.isis.atp.StreamingTickerManager [main] - Attempting to open market data file /home/xxxx/IsisATP/bin/USD.dat
2012-12-07 00:59:25,286 : INFO  org.open.payment.alliance.isis.atp.Application [main] - Isis ATP has started successfully


Without showing me your API key, secret Key or balances, may I see the first few lines of your log file? Just before the Isis ATP has started successfully message.


Code:
2012-12-07 20:04:23,312 : DEBUG org.open.payment.alliance.isis.atp.IsisMtGoxExchange [main] - MtGox API Key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2012-12-07 20:04:23,336 : DEBUG org.open.payment.alliance.isis.atp.IsisMtGoxExchange [main] - MtGox Secret Key:
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2012-12-07 20:04:26,379 : WARN  org.open.payment.alliance.isis.atp.AccountManager [main] - WARNING: Testing connection to exchange
2012-12-07 20:04:26,523 : INFO  org.open.payment.alliance.isis.atp.Application [main] - Isis ATP has started successfully
2012-12-07 20:04:26,524 : INFO  org.open.payment.alliance.isis.atp.Application [main] - Using trend following to decide some trades.
2012-12-07 20:04:26,524 : INFO  org.open.payment.alliance.isis.atp.Application [main] - Using arbitrage to decide some trades.
I have seen that this line is not at my log:
Code:
AccountManager [main] - AccountInfo as String: AccountInfo [username=xxx, wallets=[Wallet [currency=BTC, balance=BTC 0.0], Wallet [currency=USD, balance=USD 0.0]]]
sr. member
Activity: 248
Merit: 252
1. Collect underpants 2. ? 3. Profit
Code:
2012-12-07 12:15:20,735 : WARNING: Testing connection to exchange
2012-12-07 12:15:20,839 : Isis ATP has started successfully
2012-12-07 12:15:20,840 : Using trend following to decide some trades.
2012-12-07 12:15:20,841 : Using arbitrage to decide some trades.

The first thing IsisATP does is login to MtGox to get your account information and balances.

A successful login should look like this:

Code:
2012-12-07 00:59:20,588 : DEBUG org.open.payment.alliance.isis.atp.IsisMtGoxExchange [main] - MtGox API Key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2012-12-07 00:59:20,602 : DEBUG org.open.payment.alliance.isis.atp.IsisMtGoxExchange [main] - MtGox Secret Key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2012-12-07 00:59:24,241 : INFO  org.open.payment.alliance.isis.atp.AccountManager [main] - AccountInfo as String: AccountInfo [username=xxx, wallets=[Wallet [currency=BTC, balance=BTC 0.0], Wallet [currency=USD, balance=USD 0.0]]]
2012-12-07 00:59:24,742 : INFO  org.open.payment.alliance.isis.atp.StreamingTickerManager [main] - Attempting to open market data file /home/xxxx/IsisATP/bin/USD.dat
2012-12-07 00:59:25,286 : INFO  org.open.payment.alliance.isis.atp.Application [main] - Isis ATP has started successfully


Without showing me your API key, secret Key or balances, may I see the first few lines of your log file? Just before the Isis ATP has started successfully message. Maybe delete the old aido.log file first so it is easier to see what's happening.

ewibit is the only person reporting this problem so I am almost sure it is a local configuration issue rather than a problem with IsisATP.
legendary
Activity: 2955
Merit: 1050
aido.jar requires Java 7
Code:
java -version
java version "1.7.0_07"
Java(TM) SE Runtime Environment (build 1.7.0_07-b10)
Java HotSpot(TM) 64-Bit Server VM (build 23.3-b01, mixed mode)
sr. member
Activity: 248
Merit: 252
1. Collect underpants 2. ? 3. Profit
.
perhaps an issue with java version?

aido.jar requires Java 7
legendary
Activity: 2955
Merit: 1050
@ewibit: Do you connect through a proxy?
I see you use Ubuntu.
Yes I use Ubuntu 12.04 but I do not use a proxy
perhaps an issue with java version?
sr. member
Activity: 248
Merit: 252
1. Collect underpants 2. ? 3. Profit
@ewibit: Do you connect through a proxy?

If so, you may need to set the http_proxy system variable.

I see you use Ubuntu. This link may be useful:

http://ubuntuforums.org/showthread.php?t=1575

have I to be logged in before I start the program?

No, IsisATP is a stand alone application that does its own login.

I tried that 'interesting bash command.'  It worked once, but then there were problems.  What gives?

I see that, thank you very much for your 0.05 BTC "donation" Cheesy:

http://blockexplorer.com/address/1Aidan4r4rqoCBprfp2dVZeYosZ5ryVqH6
legendary
Activity: 2955
Merit: 1050
Then please test:
Please report any profit/losses for a given configuration.
I have tried it now with the new version AND another account without a yubikey and get this again:

Code:
2012-12-07 12:15:20,735 : WARNING: Testing connection to exchange
2012-12-07 12:15:20,839 : Isis ATP has started successfully
2012-12-07 12:15:20,840 : Using trend following to decide some trades.
2012-12-07 12:15:20,841 : Using arbitrage to decide some trades.
Exception in thread "Thread-2" com.xeiam.xchange.HttpException: Problem POSTing (IO)
at com.xeiam.xchange.utils.HttpTemplate.postForString(HttpTemplate.java:230)
at com.xeiam.xchange.utils.HttpTemplate.postForJsonObject(HttpTemplate.java:103)
at com.xeiam.xchange.mtgox.v1.service.account.MtGoxPollingAccountService.getAccountInfo(MtGoxPollingAccountService.java:46)
at org.open.payment.alliance.isis.atp.AccountManager.refreshAccounts(AccountManager.java:120)
at org.open.payment.alliance.isis.atp.AccountManager.run(AccountManager.java:100)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: Server returned HTTP response code: 403 for URL: https://mtgox.com/api/1//generic/private/info?raw
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.net.www.protocol.http.HttpURLConnection.getChainedException(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source)
at com.xeiam.xchange.utils.HttpTemplate.postForString(HttpTemplate.java:222)
... 5 more
TIA

edit:
this:
URL: https://mtgox.com/api/1//generic/private/info?raw
means
{"result":"error","error":"Identification required to access private API","token":"login_required"}

-> have I to be logged in before I start the program?
sr. member
Activity: 322
Merit: 250


@Aido

I tried that 'interesting bash command.'  It worked once, but then there were problems.  What gives?
sr. member
Activity: 248
Merit: 252
1. Collect underpants 2. ? 3. Profit
Some fundamental changes in most recent commit, so first please read:

Then please test:

There have been several additions to the configuration file so you will need to use java -jar aido.jar --clear-config=true first.

Please report any profit/losses for a given configuration.
sr. member
Activity: 248
Merit: 252
1. Collect underpants 2. ? 3. Profit
Could be, that the URL is the problem, since gox returns 403?

hhmmm; the url is hardcoded i.e. not configurable. And I'm not having this problem, nor anyone else besides ewibit by the look of things.

@ewibit: You mentioned you use a yubikey. How is the yubikey connected to this problem? IsisATP just uses the MtGox API key and secret key. Have you these set up on your MtGox account? Maybe try creating a new key pair in the 'Advanced API Key Creation' section of the MtGox Security page: https://mtgox.com/security
legendary
Activity: 965
Merit: 1000
Could be, that the URL is the problem, since gox returns 403?

https://mtgox.com/api/1//generic/private/info?raw

I can't find the '?raw' argument in the docs? And I would avoid the doubled slash, although I don't think it's the actual problem.
legendary
Activity: 2955
Merit: 1050
It seems to have a problem getting your MtGox account information.

Please check that your MtGox API key and MtGox secret key are correct and your intenet connection is working.
thx
now I have tried with a new MtGox API key and secret and get this:
Code:
WARNING: Testing connection to exchange
2012-12-03 20:25:43,960 : Isis ATP has started successfully
2012-12-03 20:25:43,962 : Using trend following to decide some trades.
2012-12-03 20:25:43,963 : Using arbitrage to decide some trades.
Exception in thread "Thread-2" com.xeiam.xchange.HttpException: Problem POSTing (IO)
at com.xeiam.xchange.utils.HttpTemplate.postForString(HttpTemplate.java:230)
at com.xeiam.xchange.utils.HttpTemplate.postForJsonObject(HttpTemplate.java:103)
at com.xeiam.xchange.mtgox.v1.service.account.MtGoxPollingAccountService.getAccountInfo(MtGoxPollingAccountService.java:46)
at org.open.payment.alliance.isis.atp.AccountManager.refreshAccounts(AccountManager.java:119)
at org.open.payment.alliance.isis.atp.AccountManager.run(AccountManager.java:99)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: Server returned HTTP response code: 403 for URL: https://mtgox.com/api/1//generic/private/info?raw
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.net.www.protocol.http.HttpURLConnection.getChainedException(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source)
at com.xeiam.xchange.utils.HttpTemplate.postForString(HttpTemplate.java:222)
... 5 more
Caused by: java.io.IOException: Server returned HTTP response code: 403 for URL: https://mtgox.com/api/1//generic/private/info?raw
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(Unknown Source)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getHeaderField(Unknown Source)
at com.xeiam.xchange.utils.HttpTemplate.getResponseEncoding(HttpTemplate.java:295)
at com.xeiam.xchange.utils.HttpTemplate.postForString(HttpTemplate.java:221)
... 5 more
internet connection is ok...
is it a problem with yubi key? (I am not logged in now)
sr. member
Activity: 248
Merit: 252
1. Collect underpants 2. ? 3. Profit
It seems to have a problem getting your MtGox account information.

Please check that your MtGox API key and MtGox secret key are correct and your intenet connection is working.
legendary
Activity: 2955
Merit: 1050
@ewibit: There have been considerable changes made to IsisATP since MaxSan's comment on September 19th. The original IsisATP has been forked and this newer version is available at https://github.com/aido/IsisATP. Reading some of the more recent posts will bring you up to speed.
thx, now I have tried the new version, but I get this:
Code:
ERROR: Caught unexpected exception, shutting down now!.Details are listed below.
java.lang.NullPointerException
at com.xeiam.xchange.mtgox.v1.MtGoxAdapters.adaptWallets(MtGoxAdapters.java:133)
at com.xeiam.xchange.mtgox.v1.service.account.MtGoxPollingAccountService.getAccountInfo(MtGoxPollingAccountService.java:52)
at org.open.payment.alliance.isis.atp.AccountManager.(AccountManager.java:60)
at org.open.payment.alliance.isis.atp.AccountManager.getInstance(AccountManager.java:40)
at org.open.payment.alliance.isis.atp.Application.start(Application.java:112)
at org.open.payment.alliance.isis.atp.Application.main(Application.java:61)
(@Ubuntu 12.04)
TIA
sr. member
Activity: 248
Merit: 252
1. Collect underpants 2. ? 3. Profit
All self explanatory

commit 503002463cecc0f3f4840c14cf0e17bde4e5a00e

    Added Exponential Moving Average calculation method to TrendObserver

commit 6e36689b780caad56cf6f6a852dda446a1ea2d3c

    Tweaked TrendObserver ticker loop

commit f1331a323b61fb1d910081a2fdf32bf6ec17c607

    Moved SMA calculation method to TrendObserver class



this comes here with the downloaded bin file:
java -jar isis.jar --debug-live=true
Error: Invalid or corrupt jarfile isis.jar

@ewibit: There have been considerable changes made to IsisATP since MaxSan's comment on September 19th. The original IsisATP has been forked and this newer version is available at https://github.com/aido/IsisATP. Reading some of the more recent posts will bring you up to speed.
legendary
Activity: 2955
Merit: 1050
Will you be building another jar for those not familar with compiling java?
this comes here with the downloaded bin file:
java -jar isis.jar --debug-live=true
Error: Invalid or corrupt jarfile isis.jar
sr. member
Activity: 248
Merit: 252
1. Collect underpants 2. ? 3. Profit
commit 778c84b6cb785e14aaed5550e4fc3da4bcdb7104

    Made number of ticks used to calculate Short SMA configurable from config file


Now the number of ticks used to calculate the short SMA is configurable. The long SMA is based on maxTickAge minutes in config file.


commit 05024af6dd9652fb88b72459d3ab97c2126f83b4

    Added Simple Moving Average calculation method to TrendTradingAgent


Easy enough to do. Now I need to decide how best to use this data to make a trade decision. And when best to use this algorithm over the existing VWAP based trade algorithm.


commit 969e44f5369951c21f48c12a3e0c815a7acc95a1

    Updated README


Self explanatory.
newbie
Activity: 7
Merit: 0
Is there a way to get the Mt. Gox historical trading data, broken down by hour?
Pages:
Jump to: