strike-account
Skill0 starsChanged 2 months agoMITView on GitHub
Reading Strike Finance account state through the signed REST API - the account object, balances, portfolio, open positions, open orders, closed positions with realised PnL, order and fill history, funding actually paid, and the transaction ledger. Use before sizing any trade, when checking whether protection exists, when reconciling a send, and when building a post-trade review. Read-only; nothing here changes anything.
In this repository22 other files it gives its agents.
- AGENTS.mdAGENTS.md
- desk-autopilotSkill
- desk-execution-protocolSkill
- desk-incident-responseSkill
- desk-monitoringSkill
- desk-operating-modelSkill
- desk-post-trade-reviewSkill
- desk-risk-limitsSkill
- desk-signal-scanSkill
- desk-standing-approvalsSkill
- desk-strategy-labSkill
- desk-trade-lifecycleSkill
- strike-advancedSkill
- strike-api-referenceSkill
- strike-authSkill
- strikegrok-bootstrapSkill
- strike-market-dataSkill
- strike-ordersSkill
- strike-positionsSkill
- strike-research-toolsSkill
- strike-setupSkill
- strike-websocketSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 29
Read account, positions and open orders before sizing anything: equity sets the risk budget, positions set what is already at risk, and …
- Distinctive: line 75
Every figure carries a UTC time.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Strike account
Nine read-only endpoints. They are the desk's only view of its own money, and the only acceptable one: a position from a brief an hour ago is not a position.
Signing, the API wallet and the strike_request.py helper are in strike-auth.
1. Live state
cd /workspace/strikegrok
python3 scripts/strike_request.py GET /v2/account # equity, margin usage, maxWithdrawAmount
python3 scripts/strike_request.py GET /v2/balances # per-asset balances
python3 scripts/strike_request.py GET /v2/positions # size, entry, leverage, liquidation, uPnL
python3 scripts/strike_request.py GET /v2/openOrders # resting orders, with the numeric ids cancels need
python3 scripts/strike_request.py GET /v2/portfolio # account-level portfolio viewRead account, positions and open orders before sizing anything: equity sets the risk budget, positions set what is already at risk, and resting orders are exposure that has not happened yet.
GET /v2/openOrders is the protection check. A position with no matching reduce-only trigger is unprotected - an incident under desk-incident-response, reported the moment it is seen, not a footnote.
Remember order status 5 = untriggered. A resting stop that has not fired lives there, not in 2 open.
2. History
python3 scripts/strike_request.py GET /v2/closedPositions --query symbol=ADA-USD --query limit=25
python3 scripts/strike_request.py GET /v2/history/order --query symbol=ADA-USD --query limit=50
python3 scripts/strike_request.py GET /v2/history/fill --query symbol=ADA-USD --query limit=50
python3 scripts/strike_request.py GET /v2/history/funding --query symbol=ADA-USD
python3 scripts/strike_request.py GET /v2/history/transactionGET /v2/history/funding is what the desk actually paid or received in funding - a real read, not a derivation from the current rate. Use it for the holding-cost line in every review; a rate multiplied by a guess at hours is not a fee figure.
GET /v2/history/transaction types: 1 deposit, 2 withdraw, 3 fee, 4 and up per the spec. Fees appear here, which is how the desk corrects the taker-rate assumption recorded in risk-limits.md against what it was really charged.
Time filters are Unix milliseconds. Page until the window you were asked about is covered, and say how many pages you read. A review that silently stopped at the first page is a wrong review.
3. A single order, authoritatively
python3 scripts/strike_request.py GET /v2/order --query client_order_id=SG-20260910-01-entry
python3 scripts/strike_request.py GET /v2/order --query order_id=1839201122Either id works. This is the endpoint that makes an unknown send result recoverable: because the desk chose the client_order_id before sending, it can ask the exchange directly whether that order exists rather than inferring from a list. Use it first in any reconciliation.
4. Reconstructing a trade
One order can produce many fills; one position can span many orders.
GET /v2/closedPositionsfor the position and its realised PnL.GET /v2/history/orderover the same window for every order that touched the symbol.GET /v2/history/fillfor the actual execution prices, sizes and fees.GET /v2/history/fundingfor what the position cost to hold.- Compare against the ticket in
/workspace/trading-desk/proposals/SG-*.md, matched byclient_order_id.
Report the exchange's numbers. Show the arithmetic where a figure was derived. Where the record is incomplete, say unavailable and name what is missing - never interpolate a fill price.
5. Rules
- Live or nothing. Call the endpoints; never answer account questions from memory or from another Bot's message.
- Every figure carries a UTC time.
- Equity, margin usage and distance to liquidation are the Risk Manager's inputs and are re-read for every ticket.
- Nothing here writes. If a job needs a change, it belongs to the Execution Trader and
strike-orders.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

