Cinder records actual fills, not acknowledgements, as changes to your position. Repeated entries, partial closes and reversals update your remaining position and entry basis. Funding and fees are recorded separately.
Entry basis is the recorded entry value of the remaining position, not collateral paid to buy the underlying asset. It is used to calculate trading PnL. See positions for a worked example.
The order command does not include stop-loss, take-profit or other trigger conditions. To change a resting order, cancel it, reconcile any fills and submit a new order; this is not an atomic replacement. Batch submission is not part of this command.
Deadlines and cancellation
goodUntil is the latest time the order may be dispatched. It is not an automatic cancellation time for an already dispatched GTC or ALO order. Use cancel to stop a resting order.
Cancellation can race with execution. A cancellation acknowledgement does not rule out a fill that has already occurred or is still being reported. Check the original order’s receipt for the reconciled result.
If delivery fails, keep the original request ID and look up the operation before retrying. A new ID represents a new intent, not a continuation of the old request.