Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XRay returns unsorted data and duplicates in x-values #64

Open
pawelfus opened this issue Jan 8, 2025 · 0 comments
Open

XRay returns unsorted data and duplicates in x-values #64

pawelfus opened this issue Jan 8, 2025 · 0 comments
Labels
bugfix Something isn't working

Comments

@pawelfus
Copy link
Contributor

pawelfus commented Jan 8, 2025

Note: This is pre-release (v1.1.0) issue, might get resolved in the meantime, needs to be revisited after the release.

Example:

    const xRayConnectorMultiStrategy =
        new HighchartsConnectors.Morningstar.XRayConnector({
            api: {
                access: {
                    token: token.access_token
                }
            },
            currencyId: 'EUR',
            benchmarkId: 'EUCA000812', // Multistrategy EUR
            frequency: 'annual',
            dataPoints: {
                type: 'portfolio',
                dataPoints: [
                    ['HistoricalPerformanceSeries', 'TotalReturn', 'M1'],
                    ['PerformanceReturn', 'M1', 'M3', 'M6', 'M12', 'M36', 'M60']
                ]
            },
            holdings: [
                {
                    id: 'EUCA000812', // Multistrategy EUR
                    idType: 'MSID',
                    type: 'FO',
                    weight: 100
                }
            ],
            startDate: '2020-01-01'
    });


    // Load data
    await xRayConnectorFund.load();
    const fundData = xRayConnectorFund.table.getRows(0);

    console.log(fundData);

Zrzut ekranu 2025-01-8 o 10 23 18

@pawelfus pawelfus added the bugfix Something isn't working label Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant