Comments (1)
Hello,
Exchange core operates in integers. We know that for BTC smallest integer piece is 1 satoshi, and for USD is 1 cent. So you normally represent balances in satoshi and cents, not in USD or plain Bitcoin.
Then for order book you need to specify the lot size (baseScaleK). If it is 1M like in example above - then every time you say "size": 1 - that means the order size is 1M satoshi, or 0.01 BTC. So maybe you want to make it smaller.
Similar to the Price: quoteScaleK=1 means price step is 1 cent. So when you send price=9344 - that actually means 9344 * 1 = price is 93.44 USD for 1 lot (size: 1).
In your case core risk engine returns NSF because you have only = 20 cents on the acccount when trying to buy for 9344 price steps (whic is 1 cent, so it 93.44 USD).
For OrdersProcessingConfiguration.NO_RISK_PROCESSING - I need to check, maybe you need to re-import libraries.
from exchange-core.
Related Issues (20)
- Do customer balance get persisted? HOT 1
- 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?
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.