Code Monkey home page Code Monkey logo

Comments (11)

timolson avatar timolson commented on May 28, 2024

I don't know about TurtleStrategy... Douggie is that something you added?

On Thu, Sep 25, 2014 at 2:39 PM, bolobox [email protected] wrote:

Hi,

I am trying to run cointrader following the wiki setup guide but it seems
i cant run the console mode.

I get errors about a missing strategy (TurtlesStrategy):

21:12:34.057 [main] INFO c.e.e.c.s.EPServiceProviderImpl - Initializing engine URI 'default' version 4.9.0
21:12:35.834 [main] DEBUG o.cryptocoinpartners.module.Context - no module file found for XchangeData.epl on classpath. Please ensure XchangeData.epl is in the resources directory.
21:12:35.848 [main] DEBUG o.cryptocoinpartners.module.Context - no module file found for BasicQuoteService.epl on classpath. Please ensure BasicQuoteService.epl is in the resources directory.
21:12:35.849 [main] DEBUG o.cryptocoinpartners.module.Context - subscribing private void org.cryptocoinpartners.module.BasicQuoteService.recordBook(org.cryptocoinpartners.schema.Book) with statement "select * from Book"
21:12:36.655 [main] DEBUG o.cryptocoinpartners.module.Context - subscribing private void org.cryptocoinpartners.module.BasicQuoteService.recordTrade(org.cryptocoinpartners.schema.Trade) with statement "select * from Trade"
21:12:36.675 [main] DEBUG o.cryptocoinpartners.module.Context - no module file found for XchangeAccountService.epl on classpath. Please ensure XchangeAccountService.epl is in the resources directory.
21:12:36.987 [main] INFO c.e.e.c.s.StatementLifecycleSvcImpl - Failed to compile statement: Failed to resolve 'TurtelsStrategy.getMarket' to a property, single-row function, aggregation function, script, stream or class name com.espertech.esper.epl.expression.ExprValidationException: Failed to resolve 'TurtelsStrategy.getMarket' to a property, single-row function, aggregation function, script, stream or class name at com.espertech.esper.epl.expression.ExprNodeUtilResolveExceptionHandlerDefault.handle(ExprNodeUtilResolveExceptionHandlerDefault.java:31) ~[cointrader-0.3.0-SNAPSHOT-jar-with-dependencies.jar:na]

I have removed refereces to TurtlesStrategy in MockOrderService.epl and
cointrader-esper.cfg.xml but still complaining that SubscribePortfolioEvent
is not found:

23:30:47.109 [main] INFO c.e.e.c.s.StatementLifecycleSvcImpl - Failed to compile statement: Failed to resolve event type: Event type or class named 'SubscribePortfolioEvent' was not found
com.espertech.esper.epl.expression.ExprValidationException: Failed to resolve event type: Event type or class named 'SubscribePortfolioEvent' was not found

I am using java 1.7.0 (Ubuntu).

Let me know if you need further information. Any help is much appreciated.

Thanks in advance,


Reply to this email directly or view it on GitHub
#65.

from cointrader.

bolobox avatar bolobox commented on May 28, 2024

Hi Tim,

Thanks for the response.

The TurtelsStrategy is referenced in the following esper files:

https://github.com/timolson/cointrader/blob/master/src/main/resources/MockOrderService.epl
https://github.com/timolson/cointrader/blob/master/src/main/resources/cointrader-esper.cfg.xml

According to cointrader-esper.cfg.xml, the strategy should live in org.cryptocoinpartners.module.TurtelsStrategy but it is missing.

Here is the full startup log when i try to run console mode:

http://pastebin.com/cTr1HaHX

Thanks.

Best regards,

from cointrader.

douggie avatar douggie commented on May 28, 2024

HI Tim,

Indeed This was a dummy test strategy.

Sorry my mistake it crept into master.

removed.

On Fri, Sep 26, 2014 at 9:46 AM, bolobox [email protected] wrote:

Hi Tim,

Thanks for the response.

The TurtelsStrategy is referenced in the following esper files:

https://github.com/timolson/cointrader/blob/master/src/main/resources/MockOrderService.epl

https://github.com/timolson/cointrader/blob/master/src/main/resources/cointrader-esper.cfg.xml

According to cointrader-esper.cfg.xml, the strategy should live in
org.cryptocoinpartners.module.TurtelsStrategy but it is missing.

Here is the full startup log when i try to run console mode:

http://pastebin.com/cTr1HaHX

Thanks.

Best regards,


Reply to this email directly or view it on GitHub
#65 (comment).

from cointrader.

timolson avatar timolson commented on May 28, 2024

Thanks, Douggie.

bolobox, if you have any further problems getting the console demo running,
please let me know. –Tim

from cointrader.

bolobox avatar bolobox commented on May 28, 2024

Thanks, Tim. Thanks, Douggie.

I still have errors about "PortfolioService was already configured":

http://pastebin.com/aQSUbkLF

My cointrader.properties is copied from cointrader-default.properties and only modified to put my mysql settings.

Thanks,

from cointrader.

douggie avatar douggie commented on May 28, 2024

HI Bolobox,

My apologies for this. I don't have the code in front of me, try adding the
following line to your properties, this tells the portfolio service what
currency to publish PnL.

base.symbol=USD

Regards

Douggei

On Sun, Sep 28, 2014 at 12:58 PM, bolobox [email protected] wrote:

Thanks, Tim. Thanks, Douggie.

I still have errors about "PortfolioService was already configured":

http://pastebin.com/aQSUbkLF

My cointrader.properties is copied from cointrader-default.properties and
only modified to put my mysql settings.

Thanks,


Reply to this email directly or view it on GitHub
#65 (comment).

from cointrader.

bolobox avatar bolobox commented on May 28, 2024

Thanks Douggie, i already have base.symbol set to USD in my properties.

These are the simple steps to reproduce the problem:

$ git clone https://github.com/timolson/cointrader
$ cd cointrader
$ mvn
$ cp cointrader-default.properties cointrader.properties #(and edit mysql settings on cointrader.properties)
$ ./cointrader.sh reset-database
$ ./cointrader.sh console

from cointrader.

timolson avatar timolson commented on May 28, 2024

I pushed a fix for the ConsoleMode. Keep in mind that the console is
really just a demo, and Cointrader is meant to be run "headless" for
automated trading.

from cointrader.

bolobox avatar bolobox commented on May 28, 2024

I know cointrader is an automated trading platform and i wish to use it with some bots i plan to implement.

Console mode is working now.

Thanks for your valuable asistance Tim and Douggie.

from cointrader.

timolson avatar timolson commented on May 28, 2024

No problem, bolobox. Good luck with your bots!

On Mon, Sep 29, 2014 at 12:24 PM, bolobox [email protected] wrote:

I know cointrader is an automated trading platform and i wish to use it
with some bots i plan to implement.

Console mode is working now.

Thanks for your valuable asistance Tim and Douggie.


Reply to this email directly or view it on GitHub
#65 (comment).

from cointrader.

douggie avatar douggie commented on May 28, 2024

Hi Tim and Bolobox,

I am just traveling so have very intermittent connectivity.

Thanks to time for taking care of things.

On Mon, Sep 29, 2014 at 9:33 PM, Tim Olson [email protected] wrote:

No problem, bolobox. Good luck with your bots!

On Mon, Sep 29, 2014 at 12:24 PM, bolobox [email protected]
wrote:

I know cointrader is an automated trading platform and i wish to use it
with some bots i plan to implement.

Console mode is working now.

Thanks for your valuable asistance Tim and Douggie.


Reply to this email directly or view it on GitHub
#65 (comment).


Reply to this email directly or view it on GitHub
#65 (comment).

from cointrader.

Related Issues (20)

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.