Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: zerodha/pykiteconnect
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v3.8.1
Choose a base ref
...
head repository: zerodha/pykiteconnect
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Loading
Showing with 774 additions and 34,215 deletions.
  1. +44 −0 .github/workflows/test-conda.yml
  2. +51 −0 .github/workflows/test.yml
  3. +3 −0 .gitmodules
  4. +0 −36 .travis.yml
  5. +0 −131 CHANGELOG.md
  6. +1 −1 LICENSE
  7. +40 −13 README.md
  8. +0 −78 appveyor.yml
  9. +6 −6 dev_requirements.txt
  10. +0 −1,991 docs/exceptions.m.html
  11. +0 −4,963 docs/index.html
  12. +7 −4 examples/flask_app.py
  13. +56 −0 examples/gtt_order.py
  14. +137 −0 examples/order_margins.py
  15. +2 −2 examples/simple.py
  16. +3 −3 examples/threaded_ticker.py
  17. +5 −1 examples/ticker.py
  18. +6 −4 kiteconnect/__init__.py
  19. +2 −2 kiteconnect/__version__.py
  20. +161 −110 kiteconnect/connect.py
  21. +1 −1 kiteconnect/exceptions.py
  22. +37 −26 kiteconnect/ticker.py
  23. +58 −127 setup.py
  24. +7 −1 tests/helpers/utils.py
  25. +12 −5 tests/integration/test_connect_read.py
  26. +3 −216 tests/integration/test_connect_write.py
  27. +1 −0 tests/mock_responses
  28. +0 −1 tests/mock_responses/gtt_delete_order.json
  29. +0 −72 tests/mock_responses/gtt_get_order.json
  30. +0 −267 tests/mock_responses/gtt_get_orders.json
  31. +0 −1 tests/mock_responses/gtt_modify_order.json
  32. +0 −1 tests/mock_responses/gtt_place_order.json
  33. +0 −24,007 tests/mock_responses/historical_minute.json
  34. +0 −822 tests/mock_responses/holdings.json
  35. +0 −100 tests/mock_responses/instruments_all.csv
  36. +0 −100 tests/mock_responses/instruments_nse.csv
  37. +0 −9 tests/mock_responses/ltp.json
  38. +0 −47 tests/mock_responses/margins.json
  39. +0 −41 tests/mock_responses/mf_holdings.json
  40. +0 −100 tests/mock_responses/mf_instruments.csv
  41. +0 −47 tests/mock_responses/mf_orders.json
  42. +0 −24 tests/mock_responses/mf_orders_info.json
  43. +0 −19 tests/mock_responses/mf_sip_info.json
  44. +0 −22 tests/mock_responses/mf_sips.json
  45. +0 −15 tests/mock_responses/ohlc.json
  46. +0 −221 tests/mock_responses/order_info.json
  47. +0 −19 tests/mock_responses/order_trades.json
  48. +0 −215 tests/mock_responses/orders.json
  49. +0 −195 tests/mock_responses/positions.json
  50. +0 −31 tests/mock_responses/profile.json
  51. +0 −82 tests/mock_responses/quote.json
  52. +0 −19 tests/mock_responses/trades.json
  53. +0 −15 tests/mock_responses/trigger_range.json
  54. +129 −0 tests/unit/test_connect.py
  55. +2 −2 tests/unit/test_kite_object.py
44 changes: 44 additions & 0 deletions .github/workflows/test-conda.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Lint/Test Conda
on: [push, pull_request]

jobs:
test:
name: (${{ matrix.python-version }}, ${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 3
fail-fast: false
matrix:
os: ["ubuntu-20.04", "windows-latest"]
python-version: [3.5, 3.6, 3.7, 3.8, 3.9, "3.10"]
steps:
- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}

- name: Conda info
shell: bash -l {0}
run: conda info

- uses: actions/checkout@v2
with:
submodules: true
- name: Install dependencies
shell: bash -l {0}
run: |
conda install pip
pip install --upgrade setuptools
pip install -r dev_requirements.txt
pip install -e .
- name: Lint with flake8
shell: bash -l {0}
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --show-source --statistics
- name: Test with pytest
shell: bash -l {0}
run: |
py.test --cov=./
51 changes: 51 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Lint/Test
on: [push, pull_request]

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 3
fail-fast: false
matrix:
os: [ubuntu-20.04, windows-latest]
python-version: [3.5, 3.6, 3.7, 3.8, 3.9, "3.10"]
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install --upgrade setuptools
pip install --upgrade wheel
pip install -r dev_requirements.txt
pip install -e .
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --show-source --statistics
- name: Test with pytest
run: |
py.test --cov=./
# Build and publish if its a new tag and use latest Python version to push dists
- name: Build
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') && matrix.os == 'ubuntu-20.04' && matrix.python-version == '3.8'
run: |
python setup.py sdist bdist_wheel
- name: Publish package to TestPyPI
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') && matrix.os == 'ubuntu-20.04' && matrix.python-version == '3.8'
uses: pypa/gh-action-pypi-publish@master
with:
verbose: true
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "tests/mock_responses"]
path = tests/mock_responses
url = https://github.com/zerodha/kiteconnect-mocks
36 changes: 0 additions & 36 deletions .travis.yml

This file was deleted.

131 changes: 0 additions & 131 deletions CHANGELOG.md

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2018 Zerodha Technology Pvt. Ltd. (India)
Copyright (c) 2021 Zerodha Technology Pvt. Ltd. (India)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Loading