-
Notifications
You must be signed in to change notification settings - Fork 829
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
Need an extra decimal point #971
Comments
Looks like bitmex provides support for getting bots to work with their API, the link to their support is here, https://www.bitmex.com/app/automatedTradingEngines |
that is not support, that is language-specific implementations (that they published instead of properly documenting the meaning of each attribute) i have seen useless documentation pages, but https://www.bitmex.com/app/wsAPI is the most useless one; just listing channel names |
about the rounding decimals, these are the same as the displayed decimals, so for TBP the rounding is of 8 decimals; cannot have moar |
Is there any way we can get the Fair Value to be in between the bid and the ask, instead of setting FV at the ask? |
umm let me investigate this situation of the fair value |
here you have exemplified the issue http://cpp.sh/3ppc6 happens at: Krypto-trading-bot/src/lib/Krypto.ninja-user.h Lines 980 to 981 in d2e0830
and can be set to match the bid value if instear of
recompile and enjoy! |
before once you have the dependencies, no need to run |
Thanks, not sure if this change is doing exactly what I want, but now that I know where to look and hot to get it to compile I can play with the math a bit mroe and see what I can come up with. Thanks again! |
Yes, stream precision needs to be 9 instead of 8 in that particular example. Yes, the general stream precision for this pair should be 8 (for minimal increment etc), however, FV needs to be in between the two values at 0.000006355. Hope it helps, |
i would say there is no need to limit precision (most of the time while doing calculations) precision only needs to be limiterd to 8 when displaying values to the final user |
Is this value hard coded somewhere, I can find the variable, but I don't see where it's pulling it's value from. |
🐨 i think you are looking for: Krypto-trading-bot/src/lib/Krypto.ninja-apis.h Lines 315 to 318 in 9fe9cdb
^this sets the precision for each type of decimals fairvalue uses
|
Perfect! Thanks! |
hope for this issue to be fixed at #984 |
I think the fair value is getting rounded up. should be 0.000006355
The text was updated successfully, but these errors were encountered: