Skip to content

Download working sample code

Instructions

In this section you will find code samples in zip archives. To use Node JavaScript and TypeScript samples you need to:

  1. Download and unzip.

  2. Change to the root of your example directory.

  3. Execute the command: cp .env.template .env.

  4. Execute the command npm install.

  5. Run the sample with node --env-file .env app.js.

For some old samples:

  1. Download and unzip.

  2. Execute the command npm install.

  3. Run the sample with node app.js.

Login

Node TS Node JS Javascript Java Swift
Download Download Download Download Download

Get a List of All Accounts

Node TS Node JS Javascript Java Swift
Download Download Download

Refresh Account Profile Data

Node TS Node JS Javascript Java Swift
Download Download Download

Instruments Subscription

Node TS Node JS Javascript Java Swift
Download Download

Get Available Instruments

Node TS Node JS Javascript Java Swift
Download Download Download Download

Get Subscribed Instruments

Node TS Node JS Javascript Java Swift
Download Download Download

Get Instrument By Symbol

Node TS Node JS Javascript Java Swift
Download Download

Create A Market Order

Node TS Node JS Javascript Java Swift
Download Download Download Download

Create An Entry Order

Node TS Node JS Javascript Java Swift
Download Download Download

Create A Close Market Order

Node TS Node JS Javascript Java Swift
Download Download Download

Adding Stop/Limit

Node TS Node JS Javascript Java Swift
Download Download Download

Get All Orders

Node TS Node JS Javascript Java Swift
Download Download Download Download

Modifying An Order

Node TS Node JS Javascript Java Swift
Download

Get Open Positions

Node TS Node JS Javascript Java Swift
Download Download Download

Get Closed Positions

Node TS Node JS Javascript Java Swift
Download Download Download

Close All Open Positions

Node TS Node JS Javascript Java Swift
Download Download Download

Get Price Updates for an Instrument

Node TS Node JS Javascript Java Swift
Download Download Download Download

Get Historical Prices for an Instrument

Node TS Node JS Javascript Java Swift
Download Download Download

Rollover Interest

Node TS Node JS Javascript Java Swift
Download Download Download

Request report

Node TS Node JS Javascript Java Swift
Download Download Download Download

Determining the session connection status

Node TS Node JS Javascript Java Swift

Getting the initial raw data about the offers

Node TS Node JS Javascript Java Swift

System property

Node TS Node JS Javascript Java Swift

Trading property

Node TS Node JS Javascript Java Swift
Table of Contents
core
The section describes the classes and packages of the API
Glossary
The Glossary for the FCLite API documentation
Feedback and Bug Reports
The article teaches how to provide useful feedback and bug reports.
Related Sections
Installation
The section describes how to install the API
Getting Started
The section describes how to get started working with API
Trading with FCLite
Trading with FCLite
Common Resources
The section contains common information related to trading.