Clueless-Community / fintech-api

An API that helps you to deal with your financial calculations
MIT License
90 stars 106 forks source link

[Feature] Stop order function #334

Open Abhinavcode13 opened 1 year ago

Abhinavcode13 commented 1 year ago

Are you adding a new feature?

Are you enhancing the old feature?

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).

Abhinavcode13 commented 1 year ago

Please assign me this issue under gssoc 23 @ighoshsubho thanks mate!!

ighoshsubho commented 1 year ago

Sure go ahead @Abhinavcode13 ;)

ighoshsubho commented 1 year ago

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.