Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
ig-trading-api
Advanced tools
Unofficial IG Trading API for Node.js, written in TypeScript and covered by tests.
npm
npm install ig-trading-api
Yarn
yarn add ig-trading-api
You can set the API gateway, when initializing the API client. Use APIClient.URL_DEMO
(demo-api.ig.com) for demo accounts and APIClient.URL_LIVE
(api.ig.com) for live account access.
JavaScript / Node.js
const {APIClient} = require('ig-trading-api');
const client = new APIClient(APIClient.URL_LIVE, 'your-api-key');
TypeScript
import {APIClient} from 'ig-trading-api';
const client = new APIClient(APIClient.URL_LIVE, 'your-api-key');
const session = await client.rest.login.createSession('your-username', 'your-password');
console.info(`Your client ID is "${session.clientId}".`);
Breakdown for "IX.D.DOW.DAILY.IP":
Symbol | Description | Example |
---|---|---|
IX | Hours of trading | "Index Out of Hours" |
D | Tradability | "D" when tradeable |
DOW | Underlying market | "Dow Jones" |
DAILY | Indicator for processing method | "Daily" funded bet |
IP | Asset type | "Intellectual Property" |
You can get up and running in just a few simple steps:
yarn
(to install or update third-party dependencies).env
in the root directory of this repository (read more about dotenv files)yarn demo:login
to test your credentialsContributions, issues and feature requests are welcome!
Feel free to check the issues page.
This project is MIT licensed.
Please leave a star if you find this project useful.
0.8.0 (2021-02-25)
FAQs
IG Trading API for Node.js, written in TypeScript.
The npm package ig-trading-api receives a total of 45 weekly downloads. As such, ig-trading-api popularity was classified as not popular.
We found that ig-trading-api demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.