Comments (4)
Hi @buiminhhuy
Exception in the log - this is normal. There was a bug in Disruptor DSL. It creates more handlers than it should create. Fortunately there is protection preserves from starting same handlers second time, just throwing an exception without affecting rest of the code. My fix was merged, but new version of Disruptor was not released yet.
from exchange-core.
Sorry, I not sure I can understand your second question.
Some facts (assume symbols in exchange mode):
At risk-hold stage - whole order amount is gone from the account (-orderAmount).
For IoC order there is no any delay - one or more events (TRADE or REJECT) with same total volume are always created and attached to the same PlaceOrder message.
In risk-release stage user will get funds back (original or exchanged, or combination of them).
Result consumer handled in parallel with risk-release stage. So in theory user can submit second transaction after receiving positive result of first and then receive NSF (even he did not expect that) because risk release did not processed risk yet for first transaction. But in practice there is a threshold 10 microsecond (currently hardcoded) after which all pending risk release operations are flushed by first incoming command.
from exchange-core.
Yes @mzheravin, you understood my second question. Thanks you for answer. Maybe, I am using old version, or debuging. Your framework really awesome for me.
from exchange-core.
I pulled source LMAX Disruptor and run test cases pass this issue. Thanks @mzheravin.
from exchange-core.
Related Issues (20)
- Can you share benchmark code that you used in the main page of the project? HOT 1
- I need your help HOT 2
- Java 17 Support HOT 2
- Journaling and Snapshot improvement
- Please explain what this todo "TODO check if nextSequence is correct (not nextSequence+-1)?" mean?
- what is risk control ?
- Exchange core stock
- How to handle failure or exception that may occur in Orderbook processing. HOT 1
- Remove symbols on the go
- exchange-core does not work work with java17 HOT 6
- Removing sun.misc.Unsafe; HOT 4
- RAM is consuming more HOT 4
- New release of exchange-core
- Exchange Core
- Hello! How to configure a price limit order? Where is the module
- 如何配置订单为限价订单,价格相同才可以交易
- Does exchange-core support java17 or higher version HOT 9
- Delete symbol in exchange-core HOT 8
- Does CoreSymbolSpecification support futures?
- is there a web UI for this project?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from exchange-core.