Tacnode™
Pipelies2 min

The Scattered Balance: A $4,000 Order Accepted on $2,000 of Buying Power

Buying power: $5,000. But a $3,000 order on another product went out two seconds ago. It's the market open. The customer has $5,000 in cash and nothing on hold. Two seconds in, they buy $3,000 of event contracts. The order service places a hold and routes the order to the exchange, and real buying power is $2,000. A second later the fill comes back on Kafka. The stream job hasn't folded it into buying power yet, so the crypto order check still reads $5,000. Then the customer places a $4,000 crypto order. The check sees $5,000 and accepts it. Across both products, they had $2,000 left. Then the same four seconds with the order check reading from Tacnode. Cash, the open hold and the fill are read as of the same moment. That leaves $2,000, and the order is declined. Venue fills and positions stream into Tacnode, and buying power is computed from cash, holds and fills at one moment. When a check places a hold, it's written to Tacnode, so the next order on any product sees it. Cash stays in your ledger, and your order service still enforces it.

Overview

One of the fourteen Pipelies lies: how a fill the stream job hasn't counted yet lets a second order through, and the same four seconds with the order check reading from Tacnode.

Topics Covered

  • •$5,000 in cash at the market open
  • •A $3,000 event-contract order and its hold
  • •A fill on Kafka the stream job hasn't folded in
  • •A $4,000 crypto order checked against $5,000
  • •Cash, holds and fills read as of one moment

Key Takeaways

  • ✓The crypto check read a number that was right two seconds earlier
  • ✓Across both products the customer had $2,000 left, not $5,000
  • ✓Buying power is computed from cash, holds and fills at one moment
  • ✓Cash stays in your ledger, and your order service still enforces it

Ready to get started?

Book a demo to see how Tacnode can power your real-time data infrastructure.