Closed pcaro90 closed 1 year ago
Well, it seems that the import works by setting the dataSource
to MANUAL
, e.g.:
{
"activities": [
{
"date": "2015-10-30T00:00",
"symbol": "BME.MC",
"currency": "EUR",
"unitPrice": 33.68,
"quantity": 26,
"type": "BUY",
"fee": 10.76,
"dataSource": "MANUAL",
"accountId": "83ca9c73-97da-45ba-8adc-44a76198f1da"
}
]
}
I'll just close the issue, it may help someone one day.
Hi @pcaro90
it seems that the import works by setting the
dataSource
toMANUAL
The reason of this is, if no dataSource
is specified, the default dataSource
(YAHOO
) is used. Hence the validation error.
The Issue tracker is ONLY used for reporting bugs. New features should be discussed in our Slack community or in Discussions.
Bug Description
After following the guidelines given in #509 in order to add a new symbol (in this case, BME.MC, a Spanish company that ceased trading on the stock market in 2020), I can use this symbol to manually create a new activity, without issue:
However, when trying to import activity (both using CSV and JSON), an error is raised for this symbol; probably related
To Reproduce
INSERT INTO "SymbolProfile" ("name", "symbol", "currency", "dataSource", "id", "updatedAt") VALUES ('Bolsas y Mercados Españoles', 'BME.MC', 'EUR', 'MANUAL', 'eb039bd7-2c57-4263-9816-b143baf57cee', current_timestamp);
).MarketData
. I added two:INSERT INTO "MarketData"("symbol", "dataSource", "id", "marketPrice", "date") VALUES ('BME.MC', 'MANUAL', 'a2f0cf54-32e8-4d6b-84b7-2381e5f26e18', 33.68, '2015-10-30');
INSERT INTO "MarketData"("symbol", "dataSource", "id", "marketPrice", "date") VALUES ('BME.MC', 'MANUAL', 'dbf88287-4d2b-427a-b51a-f81c37893d38', 29.19, '2018-06-15');
Expected behavior
The activities are imported.
Screenshots
Already given.
Logs
N/A
Environment
Additional context
N/A