01
It starts by itself
every morning at seven. Runs in Claude Code routine or cron.
- ↻ every morning at seven
0 7 * * *
Know your exchange balances daily.
Install the OKX CEX Portfolio skill and make it a habit: follow https://gethabit.dev/skills/okx/okx-cex-portfolio.md
10K installs194 starsMIT licenceSource on GitHub ↗

OKX CEX Portfolio
by okx · 10K installs
The skill
The okx cex portfolio skill lets an agent read OKX account balances, open and closed positions, bills and fee tiers through the okx CLI, and move funds between funding and trading accounts after confirmation.
Only when you ask.
The habit
Know your exchange balances daily.
↻ Runs by itselfevery morning at seven
When does it start? How does it check its work? What does it remember?
One snapshot per run, read commands only, at most one retry after an error.
Run okx config show --json and okx auth status --json to find API key or OAuth mode, and stop if not logged in.
Reuse the mode from the log, or ask you once whether to read live or demo funds.
Run okx account balance-all for trading, funding and valuation in one call.
Run okx account positions and okx account positions-history for open trades and realized PnL.
Set today's totals next to the last logged snapshot and note big changes.
Append the snapshot with its mode tag to the run log and flag any partial failure.
It writes only in its own folder and asks you before anything goes out.
Read both lists. If the left one sounds like you, the OKX CEX Portfolio skill helps.
No. It only runs read commands. Transfers and position mode changes stay manual.
The skill stops on an authentication error and points you to the okx-cex-auth skill to log in again.
Yes. Pick demo mode and it reads simulated balances instead.
Copy the prompt at the top into your agent. It installs the skill from okx/agent-skills and sets up the habit. Or run npx skills add okx/agent-skills --skill okx-cex-portfolio.
Yes. It is published under MIT. Habit is free too.
Install the OKX CEX Portfolio skill and make it a habit: follow https://gethabit.dev/skills/okx/okx-cex-portfolio.md
All okx skills →More ops skills →
Works in
Made by okx, published under MIT. Habit links to the original and never changes it. Is this your skill?