{"repo":"SaxoBank/openapi-samples-js","free":true,"listed":false,"github":"https://github.com/SaxoBank/openapi-samples-js","clone":"git clone https://github.com/SaxoBank/openapi-samples-js.git","description":"Sample code demonstrating OpenAPI interactions in JavaScript","language":"JavaScript","stars":67,"topics":["forex","market-data","stock-market","stocks","trade","saxobank","banking-applications","saxo","trading","trading-platform"],"license":"Apache-2.0","category":"trading","readme_excerpt":"OpenAPI JavaScript Sample Repository This repository contains sample files demonstrating OpenAPI interactions in JavaScript that can be run in the browser. Each of the included samples is designed as standalone HTML with vanilla JS and no dependencies. To try these samples yourself, download/clone this repo and load the HTML files locally on your browser. You can alternatively navigate to this interactive page to select the samples hosted directly online. Requirements Samples run against Saxo's simulation environment and require an access token in order to function. Saxo provides 24-hour tokens on the Developer Portal, which is the easiest way to get started with the samples provided here. An account is required to generate a token, which can be created for free. Table of Contents 1. Authentication - OAuth2 Code Flow - OAuth2 Implicit Flow - JSON Web Token Debugger 2. Basics - Basic Api Requests - OpenApi Query Options - Error handling - Diagnose API connection 3. Instruments - Instrument Search - Exchanges and Trading Sessions - Extended AssetTypes - Currency Conversion - Download Instrument Universe 4. Order Placement - Stock Orders - Option Orders - Multi-leg Orders - Future Orders - OCO Orders - Algorithmic Orders - Conditional or Sleeping Orders - Block Orders - Regulatory Requirements 5. Portfolio - Display positions and orders - Position netting profiles - Available Margin - Downloading Reports 6. Account History - Performance - Unsettled Amounts 7. Using websockets - ","default_branch":null,"files":null,"tree":[],"storefront":"/r/SaxoBank","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/SaxoBank/openapi-samples-js/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}