Buying and selling shares
|
Buying and selling shares
|
|
4 |
Given Tom Smith is a registered trader
When he purchases 5 AAPL shares at $100 each
And he sells 3 AAPL shares for $150 each
Then he should have the following positions:
| securityCode | amount |
|---|---|
| CASH | 95000 |
| AAPL | 2 |
|
19:49:39 |
3s 829ms |
SUCCESS
|
Buying and selling shares
|
Buying shares
|
|
3 |
Given Tom Smith is a registered trader
When he purchases 5 AAPL shares at $100 each
Then he should have the following positions:
| securityCode | amount |
|---|---|
| CASH | 50000 |
| AAPL | 5 |
|
19:49:42 |
313ms |
SUCCESS
|
Viewing positions
|
Making a profit on a single share
|
|
4 |
Given the following market prices:
| securityCode | price |
|---|---|
| SNAP | 200 |
| IBM | 60 |
And Sarah Smith is a registered trader
Given Sarah has purchased 5 SNAP shares at $100 each
Then she should have the following position details:
| securityCode | amount | totalValueInDollars | profit |
|---|---|---|---|
| CASH | 50000 | 500.00 | 0.00 |
| SNAP | 5 | 1000.00 | 500.00 |
|
19:49:39 |
3s 770ms |
SUCCESS
|