Code Monkey home page Code Monkey logo

stockalgo / bandl Goto Github PK

View Code? Open in Web Editor NEW
61.0 6.0 22.0 4.67 MB

bandl is an open-source library, provides APIs for equity stocks, derivatives, and cryptocurrencies. APIs for NSE EQ/FNO data, Nasdaq, Samco, 5Paisa, AngelBroking, Binance, and Coinbase are available.

Home Page: http://bandl.io

License: MIT License

Python 100.00%
python nasqad nasdaq-python-api nse-python-api nasdaq-crawler optionchain 5paisa-trading-apis angelbroking-apis binance-python-api yfinance-api

bandl's Issues

FIIDII data is not working

Hello,

While Option OI data for Nifty and BankNifty is working perfectly, not able to make the FIIDII data.

Neither this:

part_oi_df = nd.get_part_oi_df(start=None,end=None,periods=None,dayfirst=False,workers=None)

When I changed it just to fetch today's FII/DII data around 10 PM, I got this error:

part_oi_df = nd.get_part_oi_df(start=today,end=today,periods=1,dayfirst=False,workers=1)
print(part_oi_df)

Error: 
Exception: ('Error occurred while getting part_oi :', 'Of the four parameters: start, end, periods, and freq, exactly three must be specified')

What's the mistake I am doing here?

bandl installation failed in python39

PS C:\Users\sai-s\Documents> pip install bandl --user
Collecting bandl
Using cached bandl-0.1.0-py3-none-any.whl (25 kB)
Requirement already satisfied: openpyxl in c:\users\sai-s\appdata\roaming\python\python39\site-packages (from bandl) (3.0.10)
Requirement already satisfied: lxml in c:\users\sai-s\appdata\roaming\python\python39\site-packages (from bandl) (4.9.1)
Collecting datetime
Using cached DateTime-4.5-py2.py3-none-any.whl (52 kB)
Requirement already satisfied: requests in c:\users\sai-s\appdata\local\programs\python\python39\lib\site-packages (from bandl) (2.28.1)
Requirement already satisfied: pandas in c:\users\sai-s\appdata\roaming\python\python39\site-packages (from bandl) (1.4.3)
Requirement already satisfied: beautifulsoup4 in c:\users\sai-s\appdata\roaming\python\python39\site-packages (from bandl) (4.11.1)
Collecting futures
Using cached futures-3.0.5.tar.gz (25 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [27 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 14, in
File "C:\Users\sai-s\AppData\Roaming\Python\Python39\site-packages\setuptools_init_.py", line 247, in
monkey.patch_all()
File "C:\Users\sai-s\AppData\Roaming\Python\Python39\site-packages\setuptools\monkey.py", line 99, in patch_all
patch_for_msvc_specialized_compiler()
File "C:\Users\sai-s\AppData\Roaming\Python\Python39\site-packages\setuptools\monkey.py", line 159, in patch_for_msvc_specialized_compiler
patch_func(*msvc14('get_vc_env'))
File "C:\Users\sai-s\AppData\Roaming\Python\Python39\site-packages\setuptools\monkey.py", line 149, in patch_params
mod = import_module(mod_name)
File "C:\Users\sai-s\AppData\Local\Programs\Python\Python39\lib\importlib_init
.py", line 127, in import_module
return bootstrap.gcd_import(name[level:], package, level)
File "C:\Users\sai-s\AppData\Roaming\Python\Python39\site-packages\setuptools_distutils_msvccompiler.py", line 20, in
import unittest.mock as mock
File "C:\Users\sai-s\AppData\Local\Programs\Python\Python39\lib\unittest\mock.py", line 26, in
import asyncio
File "C:\Users\sai-s\AppData\Local\Programs\Python\Python39\lib\asyncio_init
.py", line 8, in
from .base_events import *
File "C:\Users\sai-s\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 18, in
import concurrent.futures
File "C:\Users\sai-s\AppData\Local\Temp\pip-install-2vk14co1\futures_5710be2a01934fc18ba958bfb2b9512f\concurrent\futures_init
.py", line 8, in
from concurrent.futures._base import (FIRST_COMPLETED,
File "C:\Users\sai-s\AppData\Local\Temp\pip-install-2vk14co1\futures_5710be2a01934fc18ba958bfb2b9512f\concurrent\futures_base.py", line 357
raise type(self._exception), self._exception, self._traceback
^
SyntaxError: invalid syntax
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.