This is a node.js app, written in TypeScript, that allows you to use the Saxo Bank OpenApi from the commandline.
This CLI is currently in its very early stages of development. See the readme.todo for a very limited list of initial tasks.
-
If you haven't yet, create a Saxo Bank OpenApi developer account here
-
If you haven't yet, create a Saxo Bank OpenApi application here
-
Create a
saxoAppDetails.jsonfile in the root and copy your application details into it (use the "COPY APP OBJECT" link in the topright corner of the Application Details page on the Saxo portal) -
Run
npm install
Currently things are still in development, no proper builds are defined etc. but to play around with it you can:
-
Run
npm startto get a list of available commandsIf this is the first time you run the cli, or if the last run was too long ago, you will be redirected to the authentication page. Fill in your username/password and authenticate (for now the browser window won't close by itself)
-
To run a command you can
npm start -- <command>-
i.e.
npm start -- exchangeswill return a list of exchanges available in the Saxo platform for the logged on user -
i.e.
npm start -- -p Mic,Name exchangeswill return a list of exchanges available in the Saxo platform for the logged on user but filter the output to just return the Mic and Name property of each exchange -
i.e.
npm start -- search francewill return a list of securities that contain the keyword france
-