CryptoPartners

CryptoPartners / Start learning crypto

Why a single spot order can have several fills

One order can meet several counter-orders at different prices. A list of fills is not necessarily a list of new orders you entered.

We may earn a commission through referral links. For eligible new users only. Registration does not guarantee a reward.

Before you start

Group the fills by order ID. Multiply each amount by its execution price, add the notionals and divide by the total filled amount to get the weighted price. Account for fees in the currency in which they were charged.

Work through an example

Two units at 50 and one unit at 53 cost 153 before fees. The average is 51, not 51.5: the fill at 50 has twice the quantity of the fill at 53.

When to stop

Do not treat unfilled quantity as part of the average. Stop and check the order identifier if the fill lines do not add up to the filled size.