UNPKG

degiro-api

Version:

Unofficial DeGiro API for Javascript. Buy and sell in the stock market. See your portfolio and much more

66 lines (59 loc) 1.57 kB
export enum DEGIRO_API_PATHS { BASE_API_URL = 'https://trader.degiro.nl/', BASE_REPORT_DOWNLOAD_URI = 'document/download/', LOGIN_URL_PATH = 'login/secure/login', LOGOUT_URL_PATH = 'trading/secure/logout', GET_ACCOUNT_CONFIG_PATH = 'login/secure/config', GET_GENERIC_DATA_PATH = 'v5/update/', CREATE_ORDER_PATH = 'v5/checkOrder', GET_TRANSACTIONS_PATH = 'v4/transactions', GET_ACCOUNT_STATE_PATH = 'v6/accountoverview', GET_ACCOUNT_INFO_PATH = 'v5/account/info/', GET_LATESTS_NEWS_PATH = 'newsfeed/v2/latest-news', GET_TOP_NEWS_PATH = 'newsfeed/v2/top-news-preview', GET_WEB_SETTINGS_PATH = 'settings/web', GET_WEB_USER_SETTINGS_PATH = 'settings/user', GET_ACCOUNT_REPORTS_PATH = 'document/list/report', STOCKS_SEARCH_PATH = 'v5/stocks', } export enum DeGiroActions { BUY = 'BUY', SELL = 'SELL', } export enum DeGiroMarketOrderTypes { LIMITED = 0, MARKET = 2, STOP_LOSS = 3, STOP_LOSS_LIMIT = 1, } export enum DeGiroTimeTypes { DAY = 1, PERMANENT = 3, } export enum DeGiroProducTypes { // all = undefined, undefined is not allowed to set on enum shares = 1, bonds = 2, futures = 7, options = 8, investmendFunds = 13, leveragedProducts = 14, etfs = 131, cfds = 535, warrants = 536, } export enum DeGiroSort { ASC = 'asc', DESC = 'desc', } export enum PORTFOLIO_POSITIONS_TYPE_ENUM { ALL = 'all', ALL_POSITIONS = 'allPositions', OPEN = 'open', CLOSED = 'closed', } export enum GET_ORDERS_TYPES { ACTIVE = 'orders', HISTORICAL = 'historicalOrders', TRANSACTIONS = 'transactions', }