TPF Labs
Orders and algosAll pages

Orders and algos

Thirteen order types on one ticket. Four of them, smart route, TWAP, VWAP and POV, can use every connected exchange at once.

What an order goes through

  1. 1. Check

    Risk limits and duplicates. A refusal stops here

  2. 2. Record

    Written to the journal before it leaves

  3. 3. Send

    Signed and sent to the exchange

  4. 4. Compare

    About every 30 seconds, with the exchange's own records

Order types

TypeWhat it doesWhere
MarketTakes the book at once. Max slip bounds the ticket's estimate, not the order.Chosen exchange
LimitGTC, IOC or FOK, with optional post-only.Chosen exchange
ScaleSeveral separate limit orders spread between two prices.Chosen exchange
Smart routeSplits the order by price after each exchange's taker fee and by the size on offer.All exchanges
TWAPEqual slices at even steps of the duration. A short slice is made up later, up to the catch-up share.All exchanges
VWAPSlices follow a volume curve: flat, U-shaped or recorded.All exchanges
POVTrades a fixed share of market volume as it prints.All exchanges
IcebergRests a small visible part and replaces it when it fills.One exchange at a time
PeggedRests one order and moves it with the best price or the mid.One exchange at a time
StopWaits for the trigger, then takes the book or rests at a limit.Chosen exchange
Take profitThe mirror of a stop.Chosen exchange
Trailing stopThe trigger follows the price at a fixed distance and never moves back.Chosen exchange
OCOA take profit and a stop. The first to fire cancels the other.Chosen exchange

Market and limit entries can carry a take profit and a stop loss. These bracket orders are reduce-only and grow with what the entry has filled.

How the algos spread an order

TWAP

Equal slices, even steps

VWAP

Follows a volume curve, here U-shaped

POV

A fixed share of each period's volume

Iceberg

Small visible part, replaced when filled

Blue is your order over time, left to right. Grey is market volume; dashed is the part that is not shown. Schematic.

Execution across accounts

Smart route, TWAP, VWAP and POV choose among the connected accounts that list the symbol and take orders. Their children are IOC limit orders. Fills and positions therefore land on several exchanges, and margin has to be there in advance. An account without free balance will reject its part.

  • Limit: no child trades through it. The order can end short.
  • Max child: the most one child may be worth. The limit on order size applies to each child as well.
  • Depth share: the part of an exchange's nearby depth one child may take.

Automation → Algos lists parent orders with their children, progress and price path. You can pause, resume and cancel. Pausing cancels the working children. After a restart, an order that was working waits until our records agree with the exchanges, then carries on.

Execution quality, on the same page, compares the average fill with the price at arrival and the market VWAP, with fees, by algorithm and exchange.