fintech-api icon indicating copy to clipboard operation
fintech-api copied to clipboard

[Feature] Limit order function

Open Abhinavcode13 opened this issue 2 years ago • 14 comments

Are you adding a new feature?

  • [x] YES
  • [ ] NO

Are you enhancing the old feature?

  • [] YES
  • [x] NO

Is your feature request related to a problem?

  • [x] YES
  • [ ] NO

Describe your feature/enhancement.

Can you add the feature by yourself?

  • [x] YES
  • [ ] NO

Additional Information

Limit Orders: Functions for placing limit orders to buy or sell securities at a specified price or better.

placeLimitOrder(): Places a limit order to buy or sell securities at a specified price or better.

The placeLimitOrder function takes parameters such as symbol (the trading symbol of the security), quantity (the quantity of securities to be bought or sold), limit_price (the specified price at which the order should be executed), 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 limit 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 avatar Jun 09 '23 18:06 Abhinavcode13

Please assign me this issue under gssoc 23 @ighoshsubho thanks

Abhinavcode13 avatar Jun 09 '23 18:06 Abhinavcode13

Sure go ahead @Abhinavcode13 ;)

ighoshsubho avatar Jun 12 '23 16:06 ighoshsubho

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.

ighoshsubho avatar Jun 30 '23 03:06 ighoshsubho

@ighoshsubho so can i still contribute for this issue

bhavya1857 avatar Jul 04 '23 08:07 bhavya1857

why isn't this issue closed

bhavya1857 avatar Jul 04 '23 09:07 bhavya1857

why isn't this issue closed

Can you work on it @bhavya1857?

ighoshsubho avatar Jul 04 '23 09:07 ighoshsubho

yes, but why isn't this issue closed? And what do you mean by version 2

bhavya1857 avatar Jul 04 '23 09:07 bhavya1857

It was raised by @Abhinavcode13, and it was not done as expected. I kept it open so that he or any other contributor if comes can work on making this feature.

Version 2 is for adding more features to this API repo. Now the entire repo is:

  1. Modular
  2. Has request validation
  3. Auth for certain routes
  4. API docs

These were not there in prev version.

Any more clarification @bhavya1857?

ighoshsubho avatar Jul 04 '23 10:07 ighoshsubho

Oh ok, I can do this

bhavya1857 avatar Jul 04 '23 10:07 bhavya1857

Sure thing!

ighoshsubho avatar Jul 04 '23 10:07 ighoshsubho

Hello @Abhinavcode13, thank you for raising an issue. 🙌 I have assigned the issue to you. You can now start working on it. If you encounter any problems, please feel free to connect with us. 👍

github-actions[bot] avatar Jul 04 '23 10:07 github-actions[bot]

is this the updated version Uploading github1.png… ?

bhavya1857 avatar Jul 04 '23 11:07 bhavya1857

The pic has not loaded and its pointing to this page URL.

Anyways the repo itself is updated. Fork the repo and then clone it locally. Else sync the previous changes. and your cloned repo will get upgraded to v2.

Then work on this feature locally.

ighoshsubho avatar Jul 04 '23 13:07 ighoshsubho

i'm sorry i couldn't figure this out, please assign it to someone else

bhavya1857 avatar Jul 08 '23 19:07 bhavya1857