@fugle/marketdata
Advanced tools
| import { RestClientRequest } from '../../client'; | ||
| export interface RestStockCorporateActionsCapitalChangesParams { | ||
| start_date?: string; | ||
| end_date?: string; | ||
| sort?: 'asc' | 'desc'; | ||
| } | ||
| export interface CapitalReductionRaw { | ||
| previousClose?: number; | ||
| referencePrice?: number; | ||
| limitUpPrice?: number; | ||
| limitDownPrice?: number; | ||
| openingReferencePrice?: number; | ||
| exrightReferencePrice?: number; | ||
| reason?: string; | ||
| sharesPerThousand?: number; | ||
| refundPerShare?: number; | ||
| cashIncreaseRatioAfterReduction?: number; | ||
| subscriptionPrice?: number; | ||
| } | ||
| export interface ParValueChangeRaw { | ||
| previousClose?: number; | ||
| referencePrice?: number; | ||
| limitUpPrice?: number; | ||
| limitDownPrice?: number; | ||
| openingReferencePrice?: number; | ||
| splitRatio?: number; | ||
| parValueBefore?: number; | ||
| parValueAfter?: number; | ||
| } | ||
| export interface EtfSplitOrMergeRaw { | ||
| previousClose?: number; | ||
| referencePrice?: number; | ||
| limitUpPrice?: number; | ||
| limitDownPrice?: number; | ||
| openingReferencePrice?: number; | ||
| splitRatio?: number; | ||
| splitType?: string; | ||
| } | ||
| export interface CapitalReductionChange { | ||
| symbol: string; | ||
| name: string; | ||
| actionType: 'capital_reduction'; | ||
| resumeDate: string; | ||
| haltDate: string; | ||
| exchange: string; | ||
| raw: CapitalReductionRaw; | ||
| } | ||
| export interface ParValueChange { | ||
| symbol: string; | ||
| name: string; | ||
| actionType: 'par_value_change'; | ||
| resumeDate: string; | ||
| haltDate: string; | ||
| exchange: string; | ||
| raw: ParValueChangeRaw; | ||
| } | ||
| export interface EtfSplitOrMergeChange { | ||
| symbol: string; | ||
| name: string; | ||
| actionType: 'etf_split_or_merge'; | ||
| resumeDate: string; | ||
| haltDate: string; | ||
| exchange: string; | ||
| raw: EtfSplitOrMergeRaw; | ||
| } | ||
| export type CapitalChange = CapitalReductionChange | ParValueChange | EtfSplitOrMergeChange; | ||
| export interface RestStockCorporateActionsCapitalChangesResponse { | ||
| start_date: string; | ||
| end_date: string; | ||
| sort: string; | ||
| data: CapitalChange[]; | ||
| } | ||
| export declare const capitalChanges: (request: RestClientRequest, params?: RestStockCorporateActionsCapitalChangesParams) => Promise<RestStockCorporateActionsCapitalChangesResponse>; |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.capitalChanges = void 0; | ||
| const capitalChanges = (request, params) => { | ||
| return request('corporate-actions/capital-changes', params !== null && params !== void 0 ? params : {}); | ||
| }; | ||
| exports.capitalChanges = capitalChanges; |
| import { RestClientRequest } from '../../client'; | ||
| export interface RestStockCorporateActionsDividendsParams { | ||
| start_date?: string; | ||
| end_date?: string; | ||
| sort?: 'asc' | 'desc'; | ||
| } | ||
| export interface Dividend { | ||
| date: string; | ||
| exchange: string | null; | ||
| symbol: string; | ||
| name: string | null; | ||
| previousClose: number | null; | ||
| referencePrice: number | null; | ||
| dividend: number | null; | ||
| dividendType: string | null; | ||
| limitUpPrice: number | null; | ||
| limitDownPrice: number | null; | ||
| openingReferencePrice: number | null; | ||
| exdividendReferencePrice: number | null; | ||
| cashDividend: number | null; | ||
| stockDividendShares: number | null; | ||
| } | ||
| export interface RestStockCorporateActionsDividendsResponse { | ||
| start_date: string; | ||
| end_date: string; | ||
| sort: string; | ||
| data: Dividend[]; | ||
| } | ||
| export declare const dividends: (request: RestClientRequest, params?: RestStockCorporateActionsDividendsParams) => Promise<RestStockCorporateActionsDividendsResponse>; |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.dividends = void 0; | ||
| const dividends = (request, params) => { | ||
| return request('corporate-actions/dividends', params !== null && params !== void 0 ? params : {}); | ||
| }; | ||
| exports.dividends = dividends; |
| import { RestClientRequest } from '../../client'; | ||
| export interface RestStockCorporateActionsListingApplicantsParams { | ||
| start_date?: string; | ||
| end_date?: string; | ||
| sort?: 'asc' | 'desc'; | ||
| } | ||
| export interface ListingApplicant { | ||
| symbol: string; | ||
| name: string; | ||
| exchange: string; | ||
| applicationDate: string; | ||
| chairman: string; | ||
| capitalAtApplication: number | null; | ||
| reviewCommitteeDate: string | null; | ||
| boardApprovalDate: string | null; | ||
| contractApprovalDate: string | null; | ||
| listedDate: string | null; | ||
| underwriter: string | null; | ||
| underwritingPrice: number | null; | ||
| remarks: string; | ||
| } | ||
| export interface RestStockCorporateActionsListingApplicantsResponse { | ||
| start_date: string; | ||
| end_date: string; | ||
| sort: string; | ||
| data: ListingApplicant[]; | ||
| } | ||
| export declare const listingApplicants: (request: RestClientRequest, params?: RestStockCorporateActionsListingApplicantsParams) => Promise<RestStockCorporateActionsListingApplicantsResponse>; |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.listingApplicants = void 0; | ||
| const listingApplicants = (request, params) => { | ||
| return request('corporate-actions/listing-applicants', params !== null && params !== void 0 ? params : {}); | ||
| }; | ||
| exports.listingApplicants = listingApplicants; |
@@ -18,2 +18,5 @@ import { RestClient } from '../client'; | ||
| import { RestStockTechnicalBbParams } from './technical/bb'; | ||
| import { RestStockCorporateActionsCapitalChangesParams } from './corporate-actions/capital-changes'; | ||
| import { RestStockCorporateActionsDividendsParams } from './corporate-actions/dividends'; | ||
| import { RestStockCorporateActionsListingApplicantsParams } from './corporate-actions/listing-applicants'; | ||
| export declare class RestStockClient extends RestClient { | ||
@@ -44,2 +47,7 @@ get intraday(): { | ||
| }; | ||
| get corporateActions(): { | ||
| capitalChanges: (params?: RestStockCorporateActionsCapitalChangesParams) => Promise<import("./corporate-actions/capital-changes").RestStockCorporateActionsCapitalChangesResponse>; | ||
| dividends: (params?: RestStockCorporateActionsDividendsParams) => Promise<import("./corporate-actions/dividends").RestStockCorporateActionsDividendsResponse>; | ||
| listingApplicants: (params?: RestStockCorporateActionsListingApplicantsParams) => Promise<import("./corporate-actions/listing-applicants").RestStockCorporateActionsListingApplicantsResponse>; | ||
| }; | ||
| } |
@@ -21,2 +21,5 @@ "use strict"; | ||
| const bb_1 = require("./technical/bb"); | ||
| const capital_changes_1 = require("./corporate-actions/capital-changes"); | ||
| const dividends_1 = require("./corporate-actions/dividends"); | ||
| const listing_applicants_1 = require("./corporate-actions/listing-applicants"); | ||
| class RestStockClient extends client_1.RestClient { | ||
@@ -59,3 +62,11 @@ get intraday() { | ||
| } | ||
| get corporateActions() { | ||
| const request = this.request; | ||
| return { | ||
| capitalChanges: (params) => (0, capital_changes_1.capitalChanges)(request, params), | ||
| dividends: (params) => (0, dividends_1.dividends)(request, params), | ||
| listingApplicants: (params) => (0, listing_applicants_1.listingApplicants)(request, params), | ||
| }; | ||
| } | ||
| } | ||
| exports.RestStockClient = RestStockClient; |
+1
-1
| { | ||
| "name": "@fugle/marketdata", | ||
| "version": "1.4.0", | ||
| "version": "1.4.1", | ||
| "description": "Fugle MarketData API client library for Node.js", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
75367
9.49%85
7.59%1886
9.91%