Post

Bazaar: Buy Order

A Buy Order signifies that a player is willing to buy a specific number of items at a specific price per unit or lower.
Restrictions can be configure in the plugins/Bazaar/config.yml on the remote or by using /bz edit and selecting config.yml.
Depending on the unit price, your Buy Order will be filled faster or slower (the higher the unit price, the faster it will be filled).
There is one key difference between a Sell Offer and a Buy Order.
It is possibe for a Buy Order to be filled by a Sell Offer with an equal OR lower unit price.
If the unit price is NOT the same, there are unused coins, called remnants.
Only Buy Orders can have remnants.
The formula for remnants is straighforward: (BuyOrder#unitPrice - SellOffer#unitPrice) * amount.

How to create a Buy Order

Creating a Buy Order

How to fill a Buy Order

A Buy Order can either be filled by instantly selling the specific item at the specified unit price, or by a Sell Offer with a unit price equal or lower compared to the Buy Order: Filling a Sell Offer

Cancelling a Buy Order

See here.

This post is licensed under CC BY 4.0 by the author.