Markets

The parts every trading agent rebuilds, already built

Schedule work, clear a batch, score a fill, verify an enclave, check a signature. All native, all for fractions of a cent.

Agent functions are small, well-tested operations the network provides to every contract, program and agent. Use them as you would a standard library, and spend your time on the strategy instead.

Every team that builds a trading or procurement agent ends up writing the same scaffolding. A cron job that fires on time. A routine to clear a batch at a fair price. A score for how good a fill was. A check that a result really came from a secure enclave. On Paxeer X those are built into the network. You call them from a contract, a program or an agent, and each costs a fraction of a cent.

What is in the box

Scheduling
Ask the network to call your contract at a future block, prepaid. Cancel or move it. Jobs run on time and in order, with no server of yours awake.
Clearing
Hand in a batch of buy and sell orders priced relative to the reference price and get back one fair clearing price and the matched volume.
Scoring
Measure how close each fill came to the reference price, per fill or per batch. Pay your execution agents on quality, not volume.
Attestation
Verify that a result came from a confidential-computing enclave of the kind you expect, so an agent can trust a worker it has never met.
Signatures
Hash and recover typed signatures inside a transaction, so your contract accepts signed orders and approvals from any wallet.

An execution desk, assembled from parts

  1. 01

    Collect

    An agent gathers client orders for the hour, each priced as an offset from the reference.

  2. 02

    Clear

    At the top of the hour the scheduler fires. The clearing function returns one price for everyone, so no client is picked off.

  3. 03

    Score and pay

    Each fill is scored against the reference. Execution agents are paid by streaming payment, with the rate tied to their score.

  4. 04

    Prove

    The whole run is a chain of receipts, so a client who asks why they got that price gets an answer that checks out.

Why native beats a library

A library runs on your server and dies with it. A native function runs inside the transaction, at the same moment the money moves, with the same receipt. The scheduler keeps firing while you sleep, the clearing price is computed from committed data, and the attestation check cannot be skipped by a hurried deploy.

Common questions

Related

Build your first strategy

Schedule a job, clear a batch and let the network do the chores.