Advertisement
webzaytsev

Untitled

Nov 9th, 2022
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. URL: {{baseUrl}}/orders/calculate_loss
  2. HEADERS: {"X-CSRFToken": returnCookieValue('csrftoken')}
  3. BODY: {
  4. "previous_quantity": 2500,
  5. "transactions_buy": [
  6. {"quantity": 2000, "price": 26.54, "date" : "2015-04-23"},
  7. {"quantity": 1500, "price": 27.17, "date" : "2015-06-12"},
  8. {"quantity": 2500, "price": 25.03, "date" : "2015-04-22"},
  9. {"quantity": 1250, "price": 26.71, "date" : "2015-06-14"},
  10. {"quantity": 1250, "price": 24.89, "date" : "2015-07-17"}
  11. ],
  12. "transactions_sell": [
  13. {"quantity": 2500, "price": 31.31, "date" : "2015-05-15"},
  14. {"quantity": 750, "price": 29.19, "date" : "2015-05-16"},
  15. {"quantity": 1000, "price": 31.45, "date" : "2015-09-10"},
  16. {"quantity": 4000, "price": 28.19, "date" : "2015-10-13"}
  17. ]
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement