{"name":"Trinity onion","sdk":"https://trinitytrading.xyz/onion/sdk/onion-sdk.mjs","page":"https://trinitytrading.xyz/onion/sdk/","rules":["The bot signs with its own wallet. This API never signs.","GET /api/setup?wallet=PUBLIC_KEY returns the next setup signature for that wallet. The same rule: the bot signs, the API does not.","A crank amount, mark, and destination come from the program.","A house deposit chooses the USDC. Each 0.12 USDC also sends 0.00002 SOL for sailor fuel.","A house claim sends that seat's share of the cash. The program computes the share.","POST /api/agent/onion/next takes book public or book private. Public reads the shared house. Private reads the desk JSON the agent sends and returns the next card.","A JUP deposit chooses the JUP. The program splits it 57 staked, 33 held, and 10 in the till.","The sun cannot be the signer.","GET /api/onion-trades counts confirmed swaps on the house book and the onion program. A seat deposit is not a trade. The count stays unreadable until that history has been read.","A bug bounty is two network fees, once per wallet. Screenshot the problem and post it on X with @TrinityTradeAI and the bug."],"bugBounty":{"lamports":"10000","fees":2,"mention":"@TrinityTradeAI","where":"X","screenshot":true,"once":true,"post":"Screenshot the problem. Post it on X with @TrinityTradeAI and the bug."},"orders":{"read":"GET /api/onion","trades":"GET /api/onion-trades","setup":"GET /api/setup?wallet=PUBLIC_KEY","houseDeposit":"houseDeposit(web3, { owner, usdc })","houseClaim":"houseClaim(web3, { owner })","houseCrank":"houseCrank(web3, { sailor })","delegatedCrank":"delegatedCrank(web3, { sailor, vessel })","jupDeposit":"jupDeposit(web3, { owner, jup })","ready":"ready(web3, connection, owner, order)"},"offer":{"goal":"A Solana wallet with a job for each dollar: one shared dip book, one JUP seat, and a desk you still sign.","expectation":"No stop loss and no yearly rate. A dip stays open. That gap is open P/L. A win is a newest layer sold into a lift. The live book buys at 1 percent under the average. When that book is full, the next try is the next onion.","house":{"layers":13,"firstUsdc":"0.12","lastUsdc":"1.56","fullBookUsdc":"10.92","dip":"After the first buy, the next buy waits until the mark is more than 1 percent under the average.","sell":"A sell opens at 10 percent above the average and sells only the newest layer.","split":"Of a profitable newest layer: two thirds to the seats, 10 percent to the sun, and the rest stays in the book.","maxed":"At 13 layers that book stops adding. The layers stay open. There is no stop. The next try is the next onion, not a 14th layer.","openPnl":"A dip does not shrink the book. It adds open P/L. The position stays stuck until a newest layer can sell at 10 percent above the average."},"rings":{"steps":"2, 4, 8, then 2, 4, 8, then 10","firstCycleDrawdown":"13.5","fullLadderDrawdown":"32.6","note":"The first 2-4-8 cycle is about 13.5 percent under the start, the rough 15 percent one onion is built to hold. A full seven-rung ladder is about 33 percent. An inner ring is started under a stuck outer ring. When the inner ring takes a profit, that profit is meant to feed the outer average. The live house still holds its stuck layers in one book."},"token":{"symbol":"JUP","note":"This book runs on JUP. The strategy holds through a drawdown, so the token has to be one that can live through it. A token with no floor is outside this offer."},"onion":{"positions":1,"maxed":"While an onion holds, it does not buy the dip. It sells only at its own target. One open position is a full onion."},"jup":{"stake":57,"liquid":33,"till":10,"borrow":false,"note":"57 percent is staked in Jupiter’s locker. 33 percent stays liquid and returns on withdraw. It is not lent and it is not a borrow.","lend":{"venue":"Jupiter Lend","vaultId":40,"collateral":"JUP","debt":"USDC","note":"A borrow is a separate signature. You post your own JUP and borrow USDC. Trinity does not custody that position. The 33 percent is not the loan."}}},"programs":{"house":"J2EWVBJzomgCDRXNDw91JLToGkqwKS439ynUg8xLuCsK","onion":"3xoMKKSvoRMiMHUtK33UucNJ9isW2rGzn7eQqcT9BjfG","jupPool":"DAk9Fj5S4H5qV2JTYePwk5dvaYUur2GK1cjAU4HBX7UW","price":"AvVBPJsuuwwN98nKpJpLwpJq1AKaM1ZvPxKjkc3DxEbV"},"live":{"program":"3xoMKKSvoRMiMHUtK33UucNJ9isW2rGzn7eQqcT9BjfG","price":"AvVBPJsuuwwN98nKpJpLwpJq1AKaM1ZvPxKjkc3DxEbV","offer":{"feeLamports":5000,"bountyLamports":10000},"mark":329,"at":1793396933212,"scanned":1,"skipped":1,"crankable":false,"cranks":[],"house":{"program":"J2EWVBJzomgCDRXNDw91JLToGkqwKS439ynUg8xLuCsK","account":"cvyVve76Yq77dDr6TdUudfrkR3Ez7YY7oTspK1gCokp","listed":false,"bountyLamports":"10000","fuelLamports":"2190000","cash":"2480000","jup":"361735","mark":"329","layers":1,"average":"331","sellAt":"364","buyAt":"327","now":"JUP is $0.329. The house average is $0.331. The newest layer sells over $0.364. The next buy appears under $0.327."}}}