Skip to content
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

incorrect message for not sufficient balance for order placing case #2003

Closed
raladev opened this issue Nov 23, 2020 · 0 comments · Fixed by #2006
Closed

incorrect message for not sufficient balance for order placing case #2003

raladev opened this issue Nov 23, 2020 · 0 comments · Fixed by #2006
Assignees
Labels
bug Something isn't working P2 mid priority
Milestone

Comments

@raladev
Copy link
Contributor

raladev commented Nov 23, 2020

Sell Case:

Trading Limits:
┌──────────┬─────────┬───────────┬──────────────┬───────────────┐
│ Currency │ Max Buy │ Max Sell  │ Reserved Buy │ Reserved Sell │
├──────────┼─────────┼───────────┼──────────────┼───────────────┤
│ BTC      │ 0.196   │ 0.1959095 │ 0            │ 0             │
├──────────┼─────────┼───────────┼──────────────┼───────────────┤
│ LTC      │ 0.98    │ 0.979638  │ 0            │ 0             │
└──────────┴─────────┴───────────┴──────────────┴───────────────┘
simnet > sell 0.53 LTC/BTC 0.5 2
9 FAILED_PRECONDITION: LTC inbound capacity of 97963800 is not sufficient for order amount of 53000000

Expected result:
It should be BTC error instead of LTC, because i have enough LTC to place sell order.
9 FAILED_PRECONDITION: BTC inbound capacity of 0.196 (satoshi) is not sufficient for order amount of 0.265

Buy Case:

Trading Limits:
┌──────────┬─────────┬───────────┬──────────────┬───────────────┐
│ Currency │ Max Buy │ Max Sell  │ Reserved Buy │ Reserved Sell │
├──────────┼─────────┼───────────┼──────────────┼───────────────┤
│ BTC      │ 0.196   │ 0.0495095 │ 0            │ 0.1464        │
├──────────┼─────────┼───────────┼──────────────┼───────────────┤
│ LTC      │ 0.004   │ 0.979638  │ 0.976        │ 0             │
└──────────┴─────────┴───────────┴──────────────┴───────────────┘
simnet > buy 0.986 LTC/BTC 0.15 -r 1
9 FAILED_PRECONDITION: BTC inbound capacity of 4950950 is not sufficient for order amount of 150000

Expected result:
It should be LTC error instead of BTC, because i have enough BTC to place buy order. but have no enough LTC.
9 FAILED_PRECONDITION: LTC inbound capacity of 0.986 (satoshi) is not sufficient for order amount of 0.98

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working P2 mid priority
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants