njmango / sales-bot

0 stars 2 forks source link

Partial purchases #2

Open mcmcford opened 3 months ago

mcmcford commented 3 months ago

Potential feature for distance future

When a purchase order is added to the database and a sale order of the same product but a larger quantity is also in the system, ask the seller if they would like to fulfil the purchase with a portion of their sale stock.

This feature has a few considerations such as whether or not the sale slash command should include a Boolean option for if the seller is open to partial purchases alongside the process of send a DM to sellers and utilise discord buttons to accept or decline a partial purchase.

Exact implementation will be an interesting challange

mcmcford commented 3 months ago

Supporting diagrams to help the previously poor explination

basic concept

basic concept

feature full concept

Future concept

njmango commented 2 months ago

current behavior matches top diagram. It should be updated to loop and find additional matches if applicable. E.g buying 1mill sand when 3 sell orders for 300k 400k and 300k sand should prompt 3 separate matches. currently it will match the best price of the three, and then add the remaining sand to the buyer list