Skip to main content

Saxo Bank

Type: saxobank • Category: flow • Tags: saxobank, trading, multi-asset, forex, stocks, api

Description

Connect to Saxo Bank OpenAPI for multi-asset trading and market data

Parameters

NameTypeDescriptionRequiredDefault
app_keystringYour Saxo Bank Application Keyno
app_secretstringYour Saxo Bank Application Secretno
access_tokenstringValid OAuth2 access token for Saxo Bank APIno
environmentstringAPI environment: live or simulationno"sim"
operationstringSaxo Bank API operation to performno
account_keystringAccount key for trading operationsno
uicnumberUnique Instrument Code (UIC) for the instrumentno
asset_typestringType of financial instrumentno
order_typestringType of order to placeno
amountnumberOrder amount/quantityno
sidestringOrder sideno
pricenumberLimit price for limit ordersno
stop_pricenumberStop price for stop ordersno
order_idstringOrder ID for modify/cancel operationsno
order_idsarrayList of order IDs to cancelno
new_pricenumberNew price for order modificationno
new_amountnumberNew amount for order modificationno
horizonnumberChart data horizon in minutes (default: 60)no
countnumberNumber of data points to retrieve (default: 100)no

Help

Saxo Bank OpenAPI Connector

Connect to Saxo Bank for comprehensive multi-asset trading, portfolio management, and market data retrieval.

Security Note: Your API credentials are used only for this workflow execution and are not stored.

Authentication:

  • Uses OAuth2 with access tokens
  • Application Key and Secret required
  • Supports both live and simulation environments

Available Operations:

Account Operations:

  • get_accounts: Get client account information
  • get_balances: Get account balances and margin details
  • get_positions: Get current positions

Trading Operations:

  • place_order: Place buy/sell orders (market, limit, stop, etc.)
  • modify_order: Change existing orders
  • cancel_order: Cancel orders by ID
  • cancel_all_orders: Cancel all orders for instrument/account
  • get_orders: Get order history and status
  • precheck_order: Validate order before placement

Market Data:

  • get_prices: Get real-time or historical prices
  • get_chart_data: Get chart/candlestick data

Examples:

  • Get accounts: operation="get_accounts"
  • Place market order: operation="place_order", account_key="ABC123", uic=211, asset_type="FxSpot", order_type="Market", amount=10000, side="Buy"
  • Get prices: operation="get_prices", uic=211, asset_type="FxSpot"
  • Cancel order: operation="cancel_order", account_key="ABC123", order_id="123456"

Required Parameters:

  • app_key: Your Saxo Bank Application Key
  • app_secret: Your Saxo Bank Application Secret
  • access_token: Valid OAuth2 access token
  • operation: Operation to perform

Asset Types:

  • FxSpot: Forex spot trading
  • CfdOnStock: CFD on stocks
  • Stock: Direct stock trading
  • CfdOnIndex: CFD on indices
  • CfdOnFutures: CFD on futures
  • FxForwards: FX forwards
  • FxSwap: FX swaps
  • FxOptions: FX options

Order Types:

  • Market: Execute at best available price
  • Limit: Execute at specified price or better
  • Stop: Execute when price reaches trigger level
  • StopLimit: Combination of stop and limit
  • TrailingStop: Trailing stop order

Notes:

  • UIC (Unique Instrument Code) identifies instruments
  • AccountKey identifies trading accounts
  • Supports both live and simulation environments
  • Comprehensive order validation and pre-checking available