Skip to content
1 viewer
View

Paper reference

2 pages, 9 routes, 9 connections and 2 CLI commands, generated from the declarations of Paper without reading storage or running anything.

AboutCode

Code · 0 files

No ingested source sits in a crate named for this app. Either its crate has not been ingested, or the app's name does not match its crate.

Pages · 2

Declared views
PageView idRoleRouteOrderParentEntityNavigation
Paper accountspaper.indexlist/view/paper/list0PaperAccountin navigation
Paper accountpaper.accountdetail/view/paper/{account_id}97PaperAccountin navigation
2 rows

Connections · 9

Paper.AccountOpen

Open a paper account owned by the verified caller (devnet actor on an auth-off devnet). Paper: no value moves.

Paper.AccountOpen input
FieldTypeRequiredDescriptionAllowed
nameoptional
base_currencyoptional
floatoptional
max_leverageoptional
maintenance_bpsoptional
5 rows
Calls and output
  • Output keypaper.result
  • Classificationreal
  • POST /paper/account/openHTTP route

Paper.Accounts

List paper accounts ({owner?}) at live marks: equity, P&L, leverage, risk. Paper: no value moves.

Paper.Accounts input
FieldTypeRequiredDescriptionAllowed
owneroptional
1 row
Calls and output

Paper.Cancel

Cancel a resting paper limit order.

Paper.Cancel input
FieldTypeRequiredDescriptionAllowed
account_idrequired
order_idrequired
2 rows
Calls and output
  • Output keypaper.result
  • Classificationreal
  • POST /paper/cancelHTTP route

Paper.Order

Place a simulated market or limit order; fills walk venue depth, ticks, quotes, the CRE8 book or mark, or a Black-Scholes value, and record their provenance. Margin-gated at the account's max leverage.

Paper.Order input
FieldTypeRequiredDescriptionAllowed
account_idrequired
instrumentrequired
venueoptional
siderequired
qtyrequired
typeoptional
limit_priceoptional
7 rows
Calls and output
  • Output keypaper.result
  • Classificationreal
  • POST /paper/orderHTTP route

Paper.Positions

One paper account: positions with marks and sources, orders, fills with provenance, venue routes.

Paper.Positions input
FieldTypeRequiredDescriptionAllowed
account_idrequired
1 row
Calls and output

Paper.Reset

Restore a paper account's starting float, clear positions, cancel resting orders.

Paper.Reset input
FieldTypeRequiredDescriptionAllowed
account_idrequired
1 row
Calls and output
  • Output keypaper.result
  • Classificationreal
  • POST /paper/resetHTTP route

Paper.Tick

Run the paper sweep now: perpetual funding, option expiry at the mark, liquidation below maintenance, resting limit orders.

Calls and output
  • Output keypaper.result
  • Classificationreal
  • POST /paper/tickHTTP route

Paper.VenueRoute

Owner-gated, confirm-gated, default-off: send one order to a venue paper/testnet API (Deribit testnet, Binance futures testnet, OKX demo) through an exact host allowlist, under a USD notional cap. The ack is recorded beside the account, never in its simulated balances.

Paper.VenueRoute input
FieldTypeRequiredDescriptionAllowed
account_idrequired
venuerequired
orderrequired
confirmrequired
4 rows
Calls and output
  • Output keypaper.result
  • Classificationreal
  • POST /paper/venue/routeHTTP route

Paper.Venues

Venue paper/testnet adapters: allowlisted hosts, required headers, credential presence, routing gate.

Calls and output
  • Output keypaper.result
  • Classificationroute_handler
  • GET /paper/venuesHTTP route

CLI commands · 2

paper accounts

List paper trading accounts

paper accounts

paper positions

Show one paper account

paper positions {"account_id":"paper-..."}

Schema and data model

Declared storage and kinds. Linked kinds open their app pages.

Declared storage
  • Authorityhyper
  • Preferred truthhyper
  • App ownerPaper
  • SQL projectionnone · DDL declarations: 0
Hyper vertex kinds read
Hyper vertex kinds written
Hyper edge kinds written
  • None declared.
Asset namespaces read
  • None declared.
Asset namespaces minted
  • None declared.
Model warnings
  • No model warnings were reported.

Capabilities and dependencies

Depends on
  • Protocol

Structure review · 1

Warnings · 1
  • Paper · warningAn app with pages needs highlights and getting-started steps for its About page. (incomplete_intro)