-
Notifications
You must be signed in to change notification settings - Fork 0
Sample State
davidrichard23 edited this page Jan 22, 2019
·
2 revisions
{
entities: {
assets: {
1: {
id: 1,
name: 'Stock 1',
ticker: 'ST1',
description: 'description of stock 1',
},
2: {
id: 2,
name: 'Stock 2',
ticker: 'ST2',
description: 'description of stock 2',
},
},
user: {
id: 1,
username: 'user1',
email: 'user1@email.com',
balance: 1000
},
portfolio_actions: {
1 : {
id: 1,
user_id: 1,
asset_id: 1,
shares: 100,
price: 32.00,
action: 'buy'
},
2 : {
id: 2,
user_id: 1,
asset_id: 2,
shares: 50,
price: 7.00,
action: 'sell'
},
},
ui: {
loading: false,
},
errors: {
login: ["Invalid credentials"],
portfolioForm: ['Must include share count'],
},
}
}