Feature/connect or create logic for symbol profile (#153)

* Add connectOrCreate logic

* Extend seed

* Update changelog
This commit is contained in:
Thomas
2021-06-09 20:35:02 +02:00
committed by GitHub
parent f74b00446c
commit 9eb25f6c9e
3 changed files with 26 additions and 1 deletions

View File

@@ -144,6 +144,12 @@ async function main() {
id: '2bd26362-136e-411c-b578-334084b4cdcc',
symbol: 'AMZN'
},
{
countries: null,
dataSource: DataSource.YAHOO,
id: 'fdc42ea6-1321-44f5-9fb0-d7f1f2cf9b1e',
symbol: 'BTCUSD'
},
{
countries: [{ code: 'US', weight: 1 }],
dataSource: DataSource.YAHOO,
@@ -191,6 +197,7 @@ async function main() {
id: 'a1c5d73a-8631-44e5-ac44-356827a5212c',
quantity: 0.5614682,
symbol: 'BTCUSD',
symbolProfileId: 'fdc42ea6-1321-44f5-9fb0-d7f1f2cf9b1e',
type: Type.BUY,
unitPrice: 3562.089535970158,
userId: userDemo.id