kelp
kelp copied to clipboard
[3] Per order max size on both assets - implement as new filter
Desired Behavior
Many trading system support a "max order size" feature that protects users from over trading a position or an account.
For example you might say I don't want any orders over 10,000 XLM in value so if a market goes strange or your bot doesn't react the way you expect you are protected.
This max order size would need probably to be in both selling (base asset/ASSET_CODE_A) and buying asset (ASSET_CODE_b). Using prices may not make sense.
For example trading XLMBTC my max might be ASSET_CODE_A_MAX_ORDER="1000" # XLM ASSET_CODE_B_MAX_ORDER="0.001" # BTC
This protects from "oversell" algo misconfiguration over selling either one of the assets.
@antb123 this is a great idea. I will include it in the next release (after the one scheduled for February).