Git Product home page Git Product logo

openapi-samples-js's Introduction

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
  2. Basics
  3. Instruments
  4. Order Placement
  5. Portfolio
  6. Account History
  7. Using websockets

Sample Apps

Basic Price Streamer: Shows how to display prices for instruments and update them when an update is broadcasted. The connection health is monitored.

Basic Order Manager: A Vue.js app that runs in the browser, pulls out open orders of the logged-in client and displays them in a Vuetify table with sorting and filtering functionality. Includes a simple order blotter and an implementation of OAuth implicit flow to authenticate with the OpenAPI.

Suggestions? Comments? Reach us via Github or [email protected].

openapi-samples-js's People

Contributors

acalsxo avatar afmhenry avatar ayxue avatar basaxo avatar basgroot avatar dependabot[bot] avatar f3ng3r avatar gidven avatar michax avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.