Coder Social home page Coder Social logo

Comments (6)

mr-yoo avatar mr-yoo commented on August 14, 2024

MKD30015 can be called directly as follows:

from pykrx.website.krx.market.core import MKD30015

df = MKD30015().fetch(date="20200916", market="ALL")
df.head()

It is recommended to use stock.get_market_cap_by_ticker as a user-friendly API.

from pykrx import stock
df = stock.get_market_cap_by_ticker(date="20200916", market="ALL")

In my environment, the API prints out the correct results. If you attach the code you wrote, I will check it in detail.

from pykrx.

mr-yoo avatar mr-yoo commented on August 14, 2024

In the current version, the business day of the stock market should be passed by variable date of the API.

from pykrx.

mr-yoo avatar mr-yoo commented on August 14, 2024

targetDayStr="20200917"
print(stock.get_market_ticker_list("20200921"))
dfTargetDay = stock.get_market_cap_by_ticker(targetDayStr)
if (dfTargetDay.empty):
print('targetDay empty. day: ' + targetDayStr)

It seems to be a version problem or a module dependency problem. Please check PYKRX version first.

import pykrx
print(pykrx.__version__)

If the version is lower than 0.1.41, upgrade to the latest version.
pip install -U pykrx

If the latest version does not fix the problem, please attach a list of installed modules that you see as a result of pip freeze.

from pykrx.

myeongjong-kim avatar myeongjong-kim commented on August 14, 2024

asgiref==3.2.10
astroid==2.4.2
certifi==2020.6.20
chardet==3.0.4
colorama==0.4.3
comtypes==1.1.7
DateTime==4.3
Django==3.0.8
et-xmlfile==1.0.1
excel2img==1.4.0
idna==2.10
image==1.5.32
isort==4.3.21
jdcal==1.4.1
lazy-object-proxy==1.4.3
mccabe==0.6.1
numpy==1.19.1
openpyxl==3.0.4
pandas==1.0.5
Pillow==7.2.0
pykrx==0.1.41
pylint==2.5.3
pypiwin32==223
PyQt5==5.15.0
PyQt5-sip==12.8.0
python-dateutil==2.8.1
pytz==2020.1
pywin32==228
pywinauto==0.6.8
requests==2.24.0
six==1.15.0
sqlparse==0.3.1
toml==0.10.1
urllib3==1.25.10
wrapt==1.12.1
xlrd==1.2.0
zope.interface==5.1.0

from pykrx.

mr-yoo avatar mr-yoo commented on August 14, 2024

The code works well in a virtual environment made from a list of modules you provide.

$ python --version
Python 3.7.6

$ virtualenv venv
$ source venv/Script/activate
venv $ pip intall -r requirement.txt

I will check the code with the latest Python (version 3.8.4). If it goes well, I think you'd better reinstall Python.

from pykrx.

mr-yoo avatar mr-yoo commented on August 14, 2024

It operates normally in the pure python 3.8.4 and the latest Anaconda (3.8.3).

  • I tested the codes with python 3.8.4 on https://repl.it/languages/python3 website and with anaconda on my desktop.

image

I don't think there's anything I can help with given information.

from pykrx.

Related Issues (20)

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.