Get available buying power
tossinvest_get_buying_powerCheck available cash buying power in KRW or USD before placing an order to prevent 422 insufficient-buying-power errors. Returns cash-settled funds only, excluding margin.
Instructions
Get how much cash is available to buy with, in KRW or USD.
Check this before placing a buy order — an order beyond it fails with 422 insufficient-buying-power.
Args:
currency ('KRW' | 'USD'): KRW for Korean stocks, USD for US stocks.
account_seq (number, optional): resolved automatically for single-account credentials.
response_format ('markdown' | 'json'): default 'markdown'.
Returns { accountSeq, currency, cashBuyingPower }. cashBuyingPower is cash-settled buying power only — margin (미수) is excluded, so this is the amount that can be spent without incurring a margin position.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| currency | Yes | 'KRW' for Korean stocks, 'USD' for US stocks. | |
| account_seq | No | accountSeq of the account to act on (the `X-Tossinvest-Account` header). Optional: falls back to TOSSINVEST_ACCOUNT_SEQ, then to the sole account on the credentials. Get valid values from tossinvest_list_accounts. | |
| response_format | No | Output format: 'markdown' for a compact human-readable summary, 'json' for the complete raw payload. | markdown |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| currency | No | KRW or USD | |
| accountSeq | Yes | ||
| cashBuyingPower | No | Cash-only buying power, excluding margin |