Skip to content

1.3.0

Latest

Choose a tag to compare

@fbenz fbenz released this 10 Nov 12:49
v1.3.0
7c41a66

Candlestick data

Retrieve open, high, low and close prices with UTC interval bounds:

sc broker candlesticks --isin US0378331005 --timeframe one_month
sc broker candlesticks --isin US0378331005 --timeframe one_month --quote-source eix --json

Nine timeframes are supported, from intraday to max. JSON output preserves decimal prices as strings. Data availability depends on the security, source and timeframe.

Quote sources

The --quote-source option is available again for quotes, holdings and watchlist listings, and is also supported by candlesticks:

sc broker quote --isin US0378331005 --quote-source eix
sc broker holdings --quote-source gettex --json
sc broker watchlist --quote-source consolidated

Supported sources are consolidated (the default), gettex/MUNC, eix/SEIX, and vestima/XVES. Names and MICs are case-insensitive. Search continues to use consolidated quotes.

Trading

Sell orders now support trailing stops on EIX and gettex. Set either a distance in EUR or a percentage distance:

sc broker trade sell --isin US0378331005 --shares 1 --order-type trailing-stop \
  --trail-amount 5 --venue eix

sc broker trade sell --isin US0378331005 --shares 1 --order-type trailing-stop \
  --trail-percent 5 --venue gettex

--trail-percent 5 means 5%. The minimum distance is 0.5% of the bid price.

These commands preview the order, including its initial stop, venue and costs. Review the details and disclosures, then repeat the exact inputs with --confirm <CONFIRMATION_ID> after explicit confirmation.

Once placed, the stop follows rising prices. When triggered, it submits a market sell, whose execution price may be below the stop price. Order details show the trailing distance and latest available stop with its timestamp.

Sessions and error messages

sc whoami now reports whether the saved session uses locally enforced read-only mode. JSON output includes data.session.local_read_only. This mode blocks CLI write operations locally without changing backend token permissions.

Buy amounts below the current price of one share now return order_size_below_one_share with exit code 10 and guidance for requesting a new preview.

Session-change errors now advise checking your identity and intended portfolio before retrying.

Security

Updated cryptographic and networking dependencies, including ctutils, crypto-bigint and Tokio, to address security advisories.