dmdboi / trading212-sdk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Trading212 Typescript SDK

Implements most of the endpoints listed on Trading212's API Docs

Uses Axios under the hood to send requests.

usage

const { default: tradingApi } = require("../dist/index.js");

const API_KEY = "";
const api = new tradingApi().init(API_KEY);

const getMetadata = async () => {
    const equity = await api.accountData.getAccountMetaData();
    console.log(equity.data, equity.status);
};

getMetadata();

About


Languages

Language:TypeScript 100.0%