I am new to this

dsk
Hi All,

I am new to this but very much interested to use this. I know C language and Excel Macros, with this can I use API to do trading as per my plans. One of my requirement is to use trailing stoploss in BO like below:

- I bought script at 100 and target is 110 and stop loss is 90
- Now I want to use stop loss such that if it moves 5 points in my direction (i.e. Script goes to 105), then my stop loss should move to 102 (I know with existing set up it can go to 95).

If above can be achieved can some one help me where from I should I start.

Thanks a lot in advance.

Regards
DSK

  • Kailash
    This can be programmed. You can use the streaming (WebSocket) API to subscribe to live quotes and trigger an order or an order modification based on whatever price condition you set.

    You can get started by reading the documentation (https://kite.trade/docs/connect/v1/). Our official Python client will be the easiest to use.
  • dsk
    Thanks Kailash.
  • dsk
    I have gone through the documentation but still confused how to start.

    Do we need to install Phython client (By downloading from https://www.python.org/downloads/ ) or directly we can create apps from developer logon. I tried creating one app from developer login using publisher but not sure how to test it.

    I am interested to subscribe for API also but before that I want to have hands on. Can somebody help here with initial start up, may be some document which shows screen shot etc.

    Thanks
    Shiva
  • Kailash
    @dsk The APIs are REST-like HTTP endpoints. You don't need Python, you can make HTTP requests from any platform or programming language to interact with the APIs. We have official Python and PHP clients though.

    In the developer console, you should create a "Connect" app and obtain API keys to start using the API.

    However, if you are not familiar with the concept of HTTP APIs, I'm afraid a broad discussion would be out of the scope.
  • dsk
    Yes I am not aware of HTTP API but will learn that and then I will try. However if you have any link which helps me to learn quickly from using Kite connect perspective, do let me know.

    Since you mentioned we can make http requests from any platform or programming language, can I use "C" programming language, if so than from next step will be how to make http request from "C" program. Is my understanding correct?

    Thanks Kailash for your quick reply and help.
  • Kailash
    Yes, any language with an http library that can make requests.

    The easiest place to learn is the documentation itself https://kite.trade/docs/connect/v1/

    There are simple HTTP curl requests, that can be run from a terminal, given as example for every API end point.
  • dsk
    Thanks Kailash.

    I already started reading.

    What is the difference between working through Kite Connect API and Pi bridge.

    Thanks
    Shiva
  • Kailash
    Connect APIs, as they are HTTP, are universal. You can use them on almost any platform without any dependencies. Also, the APIs are very simple to use and understand.

    Pi Bridge is an addon that sits on top of Pi, the windows application. You need Pi running on a Windows machine to use Pi bridge.
Sign In or Register to comment.