https://github.com/arcofdescent/kite_connect
Elixir module for the Zerodha Kite Connect API
https://github.com/arcofdescent/kite_connect
elixir-library trading-api
Last synced: 10 months ago
JSON representation
Elixir module for the Zerodha Kite Connect API
- Host: GitHub
- URL: https://github.com/arcofdescent/kite_connect
- Owner: arcofdescent
- License: apache-2.0
- Created: 2019-02-13T12:18:12.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-06-08T18:35:47.000Z (about 6 years ago)
- Last Synced: 2025-07-11T18:38:11.503Z (11 months ago)
- Topics: elixir-library, trading-api
- Language: Elixir
- Size: 17.6 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# KiteConnect
Elixir module for the Zerodha Kite Connect API
## Installation
Add `kite_connect` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[
{:kite_connect, "~> 0.1"}
]
end
```
## Setup
Your project should be an OTP application. In your `application.ex`
file start `KiteConnect.State` as a worker.
```elixir
# Define workers and child supervisors to be supervised
children = [
# Start your own worker
worker(KiteConnect.State, []),
]
```
A sample iex session:
```
iex(1)> KiteConnect.init(your_api_key, your_api_secret)
:ok
iex(2)> KiteConnect.set_access_token(your_request_token)
:ok
iex(3)> KiteConnect.Quote.ltp("NSE:INFY")
724.3
```