dscotese / kraken-grid

A bot that extends grid trading once you use it to create a grid.
GNU General Public License v3.0
9 stars 3 forks source link

Feature Request: Adjust existing orders #8

Closed dscotese closed 2 years ago

dscotese commented 2 years ago

I propose to add two more commands:

less ID amount ALL Reduce the amount of crypto in the limit order identified by ID in list by amount, and if ALL (optional) is "all", update any other orders for the same crypto for which the current amount to be traded matches (to three decimal places, after rounding) the pre-adjusted amount of the identified trade. Example: You have a limit sell order at 45000 for 0.015 BTC and another above that at 45900 for 0.015 BTC, each with its own conditional close. When you issue list they show up as numbers 3 and 6. You issue less 3 0.0025 all and that causes both orders (because of the "all" at the end) to be cancelled and replaced with new orders. The new orders have the same conditional closes, and the same prices, but their amounts are both 0.0125. If you issued less 3 0.0025 without "all" at the end, then only the order numbered 3 would be replaced.

more ID amount ALL Increase the amount of crypto to be traded. Otherwise, this command is the same as less.

dscotese commented 2 years ago

This feature is implemented in the adjust#8 branch.