algo2t / alphatrade

Python APIs for SAS Online Alpha Trade Web platform for creating algo trading using python
https://algo2t.github.io/alphatrade
MIT License
44 stars 23 forks source link

place_order not working. Throwing error "order_side can't be blank" #66

Closed PushkarSaxena closed 5 months ago

PushkarSaxena commented 5 months ago

Describe the bug I hope I am not missing anything. And tried to scroll all issue pages before raising this issue. Details below:

Placing an order by calling place_order does not work and throws error - _requests.exceptions.HTTPError: {"data":{},"error_code":44000,"message":"order_side can't be blank","status":"error"}_

To Reproduce Steps to reproduce the behaviour:

  1. Go to alphatrade.py
  2. on line 641, change key 'transaction__type' to 'order_side'
  3. call place_order function as mentioned in README file
  4. See error

Expected behavior An order should have placed and order id should be returned

Screenshots image

nevatia commented 5 months ago

O bhai jo wo bataa raha hai wo kar to rahe nahi ho

PushkarSaxena commented 5 months ago

sorry bhai ... my mistake... I had literally made changes and tried everything before posting this issue. EXCEPT that I made changes in python virtual env module while I was using Python original installation path module.

RESOLVED :)