Cassandre’s Newsletter

Share this post
Cassandre trading bot 5.0.0 released
cassandre.substack.com

Cassandre trading bot 5.0.0 released

Cassandre tech
Jul 7, 2021
Comment
Share

Hi everyone,
This is a major update that will require you to refactor some of your code (but no problem with database update, Liquidbase does it automatically). This release goal was to improve speed and fix some technical debt. You will find below a migration guide.

Changelog.

  • Strategy updates can now receive several updates in only one call.

  • Backtesting tests are now super fast.

  • Database structure update to improve speed (but no more plans to support multi exchange in one bot instance).

  • XChange 5.0.8 and Spring Boot 2.5.2.

Migration guide.

Change database parameters in application.properties.

Replace Cassandre database parameters::

cassandre.trading.bot.database.datasource.driver-class-name cassandre.trading.bot.database.datasource.url cassandre.trading.bot.database.datasource.username cassandre.trading.bot.database.datasource.password 

by classical spring boot parameters:

spring.datasource.driver-class-name spring.datasource.username spring.datasource.password spring.datasource.url 

Change exchange parameters in application.properties.

Rename cassandre.trading.bot.exchange.name to cassandre.trading.bot.exchange.driver-class-name.

onUpdates methods change.

All strategy updates methods changed. Their name changed and they can now receive several updates in only one call.
So basically, when you had: public void onOrderUpdate​(OrderDTO order), you should now have: public final void onOrdersUpdates(final Map<String, OrderDTO> orders).

##Add annotation for backtesting.
To have backtesting working, you should now add this annotation added on your unit test: @ComponentScan("tech.cassandre.trading.bot")

CommentComment
ShareShare

Create your profile

0 subscriptions will be displayed on your profile (edit)

Skip for now

Only paid subscribers can comment on this post

Already a paid subscriber? Sign in

Check your email

For your security, we need to re-authenticate you.

Click the link we sent to , or click here to sign in.

TopNew

No posts

Ready for more?

© 2022 Cassandre tech
Privacy ∙ Terms ∙ Collection notice
Publish on Substack Get the app
Substack is the home for great writing