/algo-trading-skills:degiro-unofficial-api-risk-assessmentfrom algo-trading-skills
Assesses the legal and operational risks of automated access to DEGIRO via unofficial Web API. Covers session/2FA handling, order flow, cost fields, and duplicate-order hazards.
Ships in algo-trading-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Use this skill when evaluating — or, having accepted the consequences, building — automated access to a DEGIRO account for European exchanges (Euronext, Xetra, LSE). DEGIRO publishes no official trading API. Its own helpdesk states that DEGIRO "does not support the use of external solutions, such as API wrappers or custom scripts, that can interface with your DEGIRO account", and that using third-party automation tools violates its terms of service. Read that as the primary finding of this skill: the first output of a DEGIRO automation assessment is that the activity is contractually prohibited by the broker, with account restriction or termination as the realistic downside.
If you proceed anyway, this skill covers what an unofficial integration must get right: session and 2FA handling, the two-step checkOrder → confirm order flow, cost fields that are frequently absent, and the duplicate-order hazard that follows from a single-use confirmation id.
RiskEvaluation score models operational risk (lockout, stale session, cost blindness). Contractual risk is not a gradient and no score reduces it. A LOW reading does not mean the integration is permitted.broker-agnostic-adapter-interface and route there instead. Nothing in this skill compensates for building on endpoints that can change without notice.market-data-entitlement-and-licensing-per-venue.totp_code — it routes to a different login endpoint).http_fn transport supplied by the caller — required, so timeouts and TLS verification stay under caller control./product_search/secure/v5/products/lookup. They are not ISINs or tickers./login/secure/login, or to /login/secure/login/totp with a oneTimePassword field when a TOTP code is supplied. A TOTP code posted to the plain login endpoint is silently ignored and fails on any 2FA-enabled account.
intAccount or clientInfo.id, fail — fetch them from /pa/secure/client. Never default an account identifier: a guessed intAccount addresses a different customer's account on every subsequent request./trading/secure/v5/checkOrder;jsessionid=<sid>?intAccount=<acct>&sessionId=<sid>.
confirmationId is reliably returned. Every cost field — transactionFee, transactionFees[], transactionTaxes[], transactionOppositeFees[], and the auto-FX surcharge blocks — is optional and has been observed absent.require_complete_cost_fields=True) refuses the order rather than letting a bot size on a fabricated 0.00 fee. Opt out only if the strategy tolerates unknown costs.transactionFee — taxes and FX surcharges arrive separately./trading/secure/v5/order/<confirmationId>;jsessionid=<sid>?intAccount=<acct>&sessionId=<sid>.
Full step-by-step procedure: see
references/workflows.md. Standards reference: seereferences/standards.md. Printable pre-flight checklist: seeassets/checklist.md.
checkOrder has been observed returning only confirmationId and responseDatetime. data.get("transactionFee", 0.0) turns that into a confident "€0.00 commission" and every position gets sized on costs that were never disclosed.transactionFee. Taxes (e.g. UK stamp duty, French FTT) and auto-FX surcharges are separate list blocks. The scalar alone understates the true cost of a cross-currency trade.intAccount when login doesn't return it. A hard-coded fallback silently points every subsequent request at an account number that isn't yours.DEGIROUnofficialRiskManager with a mock transport. Log in and verify sessionId and intAccount extraction; supply totp_code and verify the request goes to /login/secure/login/totp carrying oneTimePassword.intAccount and verify DEGIROAuthError is raised and no session is created.check_order_dry_run against a response containing only confirmationId and verify estimated_fee is None, cost_fields_complete is False, and is_valid is False under the default policy.transactionFee plus transactionFees/transactionTaxes/FX-surcharge blocks and verify the fee is the sum of all of them.confirm_order twice with the same check result and verify the second call raises DEGIRORiskThresholdBreached; repeat with a transport that raises mid-dispatch and verify the id is still consumed.python -m unittest discover -s skills/degiro-unofficial-api-risk-assessment/scripts.robinhood-unofficial-api-integrationbroker-api-deprecation-notice-monitoringorder-placement-idempotencytoken-lifecycle-live-probingWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
36 skills in this plugin
/alpaca-paper-live-key-separationUse when a bot connects to the Alpaca Trading API and must never cross paper keys with the live endpoint; pins the base URL per environment, checks the key prefix, probes /v2/account and requires an explicit ALLOW_LIVE_TRADING flag./api-key-least-privilege-audit-toolUse before deploying a live bot, to audit existing broker API keys for scopes they do not need. Flags withdrawal, transfer and admin rights that turn a leaked execution key into theft./broker-account-margin-call-handlingUse when a bot trades a Reg T, portfolio or futures margin account and must act before the broker liquidates: tiered maintenance-margin warnings cross-checked against broker excess liquidity, initial-margin order gating and liquidity-aware de-leveraging./broker-agnostic-adapter-interfaceUse when strategy code must run across several brokers and should not import kiteconnect, alpaca-py or ibapi directly; defines an adapter contract with Decimal prices, typed exceptions and normalised order status across venues./broker-api-changelog-diffing-toolUse before upgrading a broker SDK or OpenAPI spec, to diff two schema snapshots for removed endpoints, newly required parameters, enum mutations and type changes so CI fails before the change reaches an order path./broker-api-deprecation-notice-monitoringUse when a long-running bot calls REST endpoints a broker may retire; parses RFC 8594 Sunset and RFC 9745 Deprecation headers plus changelog feeds into one dated migration deadline with an escalation tier.npx claudepluginhub himanshuj16/algo-trading-skills --plugin algo-trading-broker-integrationOther plugins' skills for the same job