Open the app

Instruments

Equities and bonds on the register, counted in whole units and priced in cash atoms per unit.

An instrument is an equity or a bond an admitted issuer lists. Its Instrument account holds its code, name, terms, units outstanding, its income index and pool, and the price of its latest fill.

Listing

An issuer lists an instrument with list_instrument. The listing sets three things for good:

  • code, 1 to 12 ASCII uppercase letters or digits. The code is the seed of the instrument's address, so each code exists once on the ledger.
  • name, text of at most 80 UTF-8 bytes.
  • terms: equity, or bond with a yearly coupon in basis points and a maturity later than the listing time.

The issuer is the wallet that listed it. Only that wallet can issue its units and pay its income. See List an instrument and issue units.

TermsFieldsWhat it means
EquityA share. Face is 0.
Bondcoupon_bps: u16, maturity: i64A bond with a yearly coupon in basis points and a maturity in Unix seconds. Face is 1,000,000,000 cash atoms per unit.

Units

Units are whole numbers. An issuer issues units with issue, to the free lane of an admitted member, and the instrument's outstanding rises by the same number. Outstanding is the total across every owner and lane. This build has no instruction that removes units.

A bond unit has a face value of 1,000 USD, stored as cash atoms in the instrument's face. An equity's face is zero. The coupon and maturity are terms on record: the issuer pays each coupon as income, in the amount they choose, with pay_income. Paying back face at maturity is the road build "Bonds that mature".

Prices

A price is cash atoms per unit. A unit priced at 25.50 USD has a price of 25500000. An offer's cash leg is its units times its price, and the instrument's last_price is the price of its latest fill, zero before the first.

The API adds market figures read from fills: the 24-hour change in basis points, 24-hour volume in units and cash, the best bid and ask, candles from one second to one hour, and the value of a position at the last price. See API: reading the ledger.

The demo instruments

Demo instruments: fictional issuers on a local validator.
CodeNameIssuerKindCouponMaturity
CALDERCalder FreightCalder Freightequity
HALDENHalden GridHalden Gridequity
TESSALYTessaly BioTessaly Bioequity
HALDEN31Halden Grid 4.75% 2031Halden Gridbond4.75%2031
NGATE29City of Northgate 3.90% 2029City of Northgatebond3.90%2029