Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- URL: {{baseUrl}}/orders/calculate_loss
- HEADERS: {"X-CSRFToken": returnCookieValue('csrftoken')}
- BODY: {
- "previous_quantity": 2500,
- "transactions_buy": [
- {"quantity": 2000, "price": 26.54, "date" : "2015-04-23"},
- {"quantity": 1500, "price": 27.17, "date" : "2015-06-12"},
- {"quantity": 2500, "price": 25.03, "date" : "2015-04-22"},
- {"quantity": 1250, "price": 26.71, "date" : "2015-06-14"},
- {"quantity": 1250, "price": 24.89, "date" : "2015-07-17"}
- ],
- "transactions_sell": [
- {"quantity": 2500, "price": 31.31, "date" : "2015-05-15"},
- {"quantity": 750, "price": 29.19, "date" : "2015-05-16"},
- {"quantity": 1000, "price": 31.45, "date" : "2015-09-10"},
- {"quantity": 4000, "price": 28.19, "date" : "2015-10-13"}
- ]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement