Pairing session - Carlos Jimenez
Never
## Multiple Stocks Now we should consider multiple tickers, so the input for an operation will also contain a new information called "ticker" that will be an identifier of which asset you're selling. The profit calculation (through weighted-average price) and quantity validation (if implemented) on selling should also consider the ticker. When you sell at a loss, you should use the loss from one ticker toward any other ticker. ````````` Input #1 [{"operation":"buy", "unit-cost":10, "quantity": 10000, "ticker":"AAPL"}, {"operation":"buy", "unit-cost":15, "quantity": 10000, "ticker":"MANU"}, {"operation":"sell", "unit-cost":20, "quantity": 10000, "ticker":"AAPL"}, {"operation":"sell", "unit-cost":30, "quantity": 10000, "ticker":"MANU"}] Output #1 [{"tax":0}, {"tax":0}, {"tax":20000}, {"tax":30000}] Input #2 [{"operation":"buy", "unit-cost":10, "quantity": 10000, "ticker":"AAPL"}, {"operation":"buy", "unit-cost":15, "quantity": 10000, "ticker":"MANU"}, {"operation":"sell", "unit-cost":5, "quantity": 10000, "ticker":"AAPL"}, {"operation":"sell", "unit-cost":30, "quantity": 10000, "ticker":"MANU"}] Output #2 [{"tax":0}, {"tax":0}, {"tax":0}, {"tax":20000}] Input #3 [{"operation":"buy", "unit-cost":10, "quantity": 10000, "ticker":"AAPL"}, {"operation":"buy", "unit-cost":15, "quantity": 10000, "ticker":"MANU"}, {"operation":"sell", "unit-cost":30, "quantity": 10000, "ticker":"MANU"}, {"operation":"sell", "unit-cost":5, "quantity": 10000, "ticker":"AAPL"}] Output #3 [{"tax":0}, {"tax":0}, {"tax":30000}, {"tax":0}] `````````
Raw Text
-
I Taught My Nymphomaniac Stepsister How To Use A Condom With Subtitles
10 min ago
-
ft6rd fcghjk
19 min ago
-
FUCKING♥️😏 SLEEPING💤 LITTLE GIRL🍼👧
25 min ago
-
FamilyXXX - Teen Latina Stepsister Gets The Dick She Needs (Maya Farrell)
40 min ago
-
Untitled
41 min ago
-
My boss wants me to do a better job so he can just fuck me on his desk like a whore
1 hour ago
-
SG Mechanical AC Installation
1 hour ago
-
get real data
1 hour ago
-
(ANAL) - O MELHOR CU DO BRASIL, É DA SUZY SILVA!
1 hour ago
-
dsgasdasfgfsa
1 hour ago