Code Monkey home page Code Monkey logo

pyfmpcloud's People

Contributors

dabrown645 avatar dlarsen5 avatar razorhash avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pyfmpcloud's Issues

pd.read_json() no longer accepts json strings

As of pandas 1.1.0 (apparently) pd.read_json() no longer accepts json strings as input, resulting in a "Protocol not known" exception. This breaks safe_read_json(). Details here, including a fix:
from io import StringIO
newdf = pd.read_json(StringIO(temp))

Have tested this, works.

Error in `sts.batch_request_eod_prices()` with just a date and no tickers

The following does not seem to work:

sts.batch_request_eod_prices(date='2020-04-15')

From reading through the documentation, it appears the API does not support this type of query (though I'm not sure why it wouldn't). From the documentation it seems you can only supply a date if you also supply a list of tickers . Otherwise, you just get all of the EOD prices from the last closing date (without the ability to supply a different date).

Private API key is committed to repo

Hi, just wanted to make sure that you know that your API key is committed to the repository in /pyfmpcloud/config.ini and it is usable by people installing this library.

Incorrect OHLC Intraday data

Requesting intraday time-series returns Incorrect OHLC data.

i.e: the first 5min bar for ALRN shows:
"date" : "2020-05-29 09:30:00",
"open" : 1.320000000000,
"low" : 1.320000000000,
"high" : 1.320000000000,
"close" : 1.320000000000,
"volume" : 3837788

From many sources (Yahoo, IB, Bloomberg) the values are:
O=1.42, H=1.61, L=1.42, C= 1.53, V=413k

1.42 is the lowest value for the day, not 1.32. That's a +7.5% difference.

Wrong volume

Requesting intraday time-series returns wrong volume values.

The issue (I assume): At every bar (1 min here), the volume shows the total shares traded for the whole day. It should show the volume for every 1 bar.

For example, requesting intraday data for the symbol 'MBIO' (by: sts.historical_stock_data('MBIO', start = '2020-05-26', period='1min')) from 9:30 to 11:50 shows 132621187 as the whole shares traded in the day while the volume traded in that timeframe was around 1.5M.

Plot for the dataframe:
download

pytest test cases

I have some pytest test cases developed mostly using the 'demo' apikey are you interested?
there are quite a few cases where the demo line they provide don't work so those tests may not be very accurate.

When I started out I remember reading the free account was 500/mo (at least that is my recollection) which was going to be enough for my very limited usage. However, I checked today and the free limit is now 250 max so doesn't look like I am going to be working with this much.

Looks like you had some thought of supporting financialmanagementprep with the inclusion of it's url in settings.py I might try looking into that.

Hope these test cases are useful.

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.