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
| Name | Type | Description | Required | Default |
|---|---|---|---|---|
app_key | string | Your Saxo Bank Application Key | no | |
app_secret | string | Your Saxo Bank Application Secret | no | |
access_token | string | Valid OAuth2 access token for Saxo Bank API | no | |
environment | string | API environment: live or simulation | no | "sim" |
operation | string | Saxo Bank API operation to perform | no | |
account_key | string | Account key for trading operations | no | |
uic | number | Unique Instrument Code (UIC) for the instrument | no | |
asset_type | string | Type of financial instrument | no | |
order_type | string | Type of order to place | no | |
amount | number | Order amount/quantity | no | |
side | string | Order side | no | |
price | number | Limit price for limit orders | no | |
stop_price | number | Stop price for stop orders | no | |
order_id | string | Order ID for modify/cancel operations | no | |
order_ids | array | List of order IDs to cancel | no | |
new_price | number | New price for order modification | no | |
new_amount | number | New amount for order modification | no | |
horizon | number | Chart data horizon in minutes (default: 60) | no | |
count | number | Number 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