Open Abhinavcode13 opened 1 year ago
Please assign me this issue under gssoc 23 @ighoshsubho thanks mate!!
Sure go ahead @Abhinavcode13 ;)
Hello @Abhinavcode13, this is Version 2 of Fintech API repository, there had been few major updates, please go through the CONTRIBUTING.md to make further contributions. Thanks.
Are you adding a new feature?
Are you enhancing the old feature?
[x] NO
Is your feature request related to a problem?
Describe your feature/enhancement.
Can you add the feature by yourself?
Additional Information
The placeStopOrder function takes parameters such as symbol (the trading symbol of the security), quantity (the quantity of securities to be bought or sold), stop_price (the specified stop price at which the order should be triggered), and order_type (specifying whether it is a 'buy' or 'sell' order). The function connects to the API or trading platform using the connect_to_api function (which needs to be implemented based on the specific API documentation). It constructs the stop order request using the provided parameters. The api.place_order method is called to place the order, passing the order request as a parameter. The response is checked to determine if the order was successfully placed. If successful, it retrieves the order ID and prints a success message. Otherwise, it prints an error message. Finally, the function disconnects from the API or trading platform using the disconnect_from_api function (which needs to be implemented based on the specific API documentation).