-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I built it... but it fails to store data... #143
Comments
Humm, the data summary command needs to be updated as it is not working
correctly (the console is really just for light debugging mainly to test a
new market order placement and cancelation).
The other commands are working may be you can try the following
1) Subsribe to data `watch btc.usd`
2) Place mock orders (assuming your are not running console with -live) `buy
1
BITFINEX:BTC.USD limit 13128.8
To save data to the db
cointrader-0.3.0-SNAPSHOT-jar-with-dependencies.jar -Xmx3G
-XX:MaxPermSize=2G
-Djava.library.path="/usr/local/lib/python3.5/site-packages/jep" save-data
You can then check the trade and book tables to see if the data is being
persisted.
Prior to saving any data you will need to intial the db schema
cointrader-0.3.0-SNAPSHOT-jar-with-dependencies.jar reset-database
You can also run them form within eclipse as java applications so you can
debug them.
Regards
Douggie
…On Tue, Jan 16, 2018 at 3:56 AM, scolombara ***@***.***> wrote:
Hi, i'm very new here and found the project and library interesting a
promising.
took a while to be able to build it successfully but it's done.
but the save-data doesn't really save any data :-(
now, cointrader save-data runs, output A LOT of warning in logs (none
seems error, for what is can see), such as the following. But no data
stored in the DB.
Appreciate any pointers.
Simone
C:\Users\Simone\eclipse-workCoinTrade>cointrader.bat save-data >
logs_save_data.
log
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.inject.internal.
cglib.core.$Ref
lectUtils$2 (file:/C:/Users/Simone/eclipse-workCoinTrade/
cointrader-0.3.0-SNAPSH
OT-jar-with-dependencies.jar) to method java.lang.ClassLoader.
defineClass(java.l
ang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of
com.google.inject.
internal.cglib.core.$ReflectUtils$2
WARNING: Use --illegal-access=warn to enable warnings of further illegal
reflect
ive access operations
WARNING: All illegal access operations will be denied in a future release
hash=-1249364900 size=0
hash=-1249364900 size=0
hash=700591008 size=0
hash=-1249364900 size=0
hash=-1249364900 size=0
hash=700591008 size=0
ct> data summary
no results
ct> data summary
no results
ct> 2018-01-16 05:02:37 [com.espertech.esper.Timer-default-0] INFO
o.c.portfoli
oManager - Date: 2018-01-16 05:02:35 Portfolio: ConsoleStrategy Total Cash
Value
(USD):0, Total Notional Value (USD):100000 (Cash Balance:0 Realised PnL
(M2M):0
Open Trade Equity:0 MarketValue:0)
2018-01-16 05:02:37 [com.espertech.esper.Timer-default-0] INFO
o.c.portfolioMan
ager - []
ct> data summary
no results
ct> data summary
no results
ct> data
no results
ct>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#143>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AENHatDXgCPd6NO89gIAb2-x6xbMVNndks5tLB3hgaJpZM4RfN9t>
.
|
Hi Douggie, i guess it might be the reason it's still not running for me, but I didn't found any reference in the setup guide (maybe i misunderstood it was needed to build cointrader, not to run it). |
it is not required but you need the jep java library which is in the pom.
it uses a phyton if you use the random ticker generator for testing.
…On Wed, 17 Jan 2018, 15:16 scolombara, ***@***.***> wrote:
Hi Douggie,
thanks for the reply.
now i'm naive: is Python required to *execute* cointrader?
i guess it might be the reason it's still not running for me, but I didn't
found any reference in the setup guide (maybe i misunderstood it was needed
to build cointrader, not to run it).
Simone.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#143 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AENHaiNJ-8TJ-NCZQJToh2UddVNKxf0hks5tLg6-gaJpZM4RfN9t>
.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, i'm very new here and found the project and library interesting a promising.
took a while to be able to build it successfully but it's done.
but the save-data doesn't really save any data :-(
now, cointrader save-data runs, output A LOT of warning in logs (none seems error, for what is can see), such as the following. But no data stored in the DB.
Appreciate any pointers.
Simone
C:\Users\Simone\eclipse-workCoinTrade>cointrader.bat save-data > logs_save_data.
log
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$Ref
lectUtils$2 (file:/C:/Users/Simone/eclipse-workCoinTrade/cointrader-0.3.0-SNAPSH
OT-jar-with-dependencies.jar) to method java.lang.ClassLoader.defineClass(java.l
ang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of com.google.inject.
internal.cglib.core.$ReflectUtils$2
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflect
ive access operations
WARNING: All illegal access operations will be denied in a future release
hash=-1249364900 size=0
hash=-1249364900 size=0
hash=700591008 size=0
hash=-1249364900 size=0
hash=-1249364900 size=0
hash=700591008 size=0
ct> data summary
no results
ct> data summary
no results
ct> 2018-01-16 05:02:37 [com.espertech.esper.Timer-default-0] INFO o.c.portfoli
oManager - Date: 2018-01-16 05:02:35 Portfolio: ConsoleStrategy Total Cash Value
(USD):0, Total Notional Value (USD):100000 (Cash Balance:0 Realised PnL (M2M):0
Open Trade Equity:0 MarketValue:0)
2018-01-16 05:02:37 [com.espertech.esper.Timer-default-0] INFO o.c.portfolioMan
ager - []
ct> data summary
no results
ct> data summary
no results
ct> data
no results
ct>
The text was updated successfully, but these errors were encountered: