CAUCUSLaunch app

API reference

Program instructions

InstructionWhoWhat it does
init_configupgrade authority, onceSets the operator, keepers, threshold, waiting window, fee and launch day
create_asset(ticker)operatorAdds a stock or ETF; the first one is SPY
create_basket(key, kind, vs_benchmark)operatorA member basket, a market basket (gold, oil) or the Top 5 basket
init_top5operatorCreates the five seats
set_paused(bool), close_historyoperatorPause or resume; end the history phase for good
post_close(day, price)keeperA vote for one close
post_filing(doc_hash, row, fields)keeperPosts one report line with the first vote
confirm_filingkeeperAgrees with a line exactly as posted
seed_member(member, scored, beat, sum)keeperA member's history before launch, voted in once
seed_score(entry close)keeperThe entry of a buy filed before launch whose 90 days end after it
apply_filinganyoneMoves an accepted line into a basket
start_score, finish_scoreanyoneRecords a buy's entry and its exit 90 days later
top5_enteranyoneSeats a better member
settle(day)anyoneSettles one basket at one close
close_filinganyoneCloses a record that can no longer matter; rent to its poster
request(side, kind, amount)youPuts USDC in or asks to take shares out at the next close
cancelyouTakes back a request before the close
claimyouCollects a settled request

Sides: 0 Follow, 1 Fade. Kinds: 0 put in (USDC), 1 take out (shares). Days are counted from 1 January 1970. Prices and money are in USDC base units (6 decimals).

Site endpoints

PathReturns
/api/health{"status":"ok","network":"solana","program":"pending","stage":"pre-launch"}
/api/token{"stage":"pre-launch","ca":null}
/api/solA read-only Solana JSON-RPC relay for the app (account reads, blockhash, signature status)

Next: Error reference