-
Notifications
You must be signed in to change notification settings - Fork 94
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
Optimize the min volume settings. #898
Conversation
Add RPC call to display it.
# Conflicts: # mm2src/rpc.rs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
works fine, thanks
all orders in DOGE/BTC-BEP20 have "base_min_volume": "10"
DOGE, bids and asks, and "rel_min_volume": "0.00001xxx"
BTC-BEP20, which is the same as 10 DOGE
BUSD-BEP20/BTC-BEP20 have "rel_min_volume": "0.000001"
and "base_min_volume": "0.05xxx
\"method\":\"buy\",\"base\":\"BTC-BEP20\",\"rel\":\"BUSD-BEP20\",\"volume\":0.001,\"price\":61000}"
works too
I tried it too this weekend, and there is one specific case that i do not understand, so i've tried to sell
When forwarding this min_volume to
If i do not specify min_volume in sell, the order is correctly placed. thanks you |
@Milerius Please share the full body of the request that you send to MM2. |
Batch request: [
{
"coin": "ABY",
"method": "min_trading_vol",
"userpass": ""
},
{
"coin": "KMD",
"method": "min_trading_vol",
"userpass": ""
}
] answer: [
{
"result": {
"coin": "ABY",
"min_trading_vol": "0.0001"
}
},
{
"result": {
"coin": "KMD",
"min_trading_vol": "0.0001"
}
}
] sell request: {
"base": "ABY",
"method": "sell",
"min_volume": "0.0001",
"price": "0.1158402",
"rel": "KMD",
"rel_nota": true,
"userpass": "",
"volume": "7"
} sell answer:
Note that we use the |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
There are few important changes:
0.00777
.1 / 10 ^ (decimals / 3)
. So if a token has 6 decimals its min trading vol will be1 / 10 ^ 2 = 0.01
.min_trading_vol
RPC for GUIs.rel_min_volume
will be 10 andbase_min_volume
will be adjusted accordingly.I have the only question: is
0.000001
min vol for ETH fine? Should we increase it possibly to something bigger? Maybe put back 0.00777 for it?#873 #849