Open-source CLI wrappers for the Toss Securities Open API.
tossinvest— low-level programmable CLI for auth, market data, holdings, order info, orders, and raw requeststossinvest-snapshot— holdings + buying power + FX snapshot helpertossinvest-order-approval— Korean approval-packet generator for proposed live orders
Live order mutations are blocked by default. The CLI only sends create / modify / cancel requests when both of these flags are present:
tossinvest orders create ... --execute --confirm-liveThat default is intentional so other agents and scripts can use the tool without accidentally sending live orders.
python3 -m pip install .python3 -m pip install -e .Required:
TOSSINVEST_API_KEYTOSSINVEST_SECRET_KEY
Optional:
TOSSINVEST_ACCOUNT_SEQTOSSINVEST_BASE_URL(defaults tohttps://openapi.tossinvest.com)
Example:
export TOSSINVEST_API_KEY="your_client_id"
export TOSSINVEST_SECRET_KEY="your_client_secret"
export TOSSINVEST_ACCOUNT_SEQ="1"tossinvest env-check
tossinvest doctor
tossinvest token
tossinvest accounts
tossinvest holdings
tossinvest market prices --symbols 005930,AAPL
tossinvest order-info buying-power --currency KRW
tossinvest-snapshot
tossinvest-order-approval --symbol 005930 --side BUY --order-type LIMIT --quantity 1 --price 350000- Verify
doctorsucceeds from a clean shell with env vars injected - Confirm no secret values are committed
- Update version in
pyproject.toml - Tag a release
- Tokens are cached under
~/.cache/tossinvest-openapi/token.json - Account-scoped APIs automatically send
X-Tossinvest-Account - If auth returns
access_denied / IP address not allowed, whitelist the machine's public IP in Toss Securities WTS > Open API settings
MIT