Commit Graph

5854 Commits

Author SHA1 Message Date
Diogo Sousa
931c8b40fc add comment async/sync 2023-11-23 15:27:23 +00:00
Diogo Sousa
f85d9fedc8 rename rest_api_settings file 2023-11-23 14:55:30 +00:00
Diogo Sousa
d94b404f08 remove dynamic default 2023-11-23 13:35:36 +00:00
Diogo Sousa
0b8e150e93 fix 2023-11-23 13:13:25 +00:00
Diogo Sousa
30ac1fbafa Merge branch 'develop' into feature/general_fixes 2023-11-23 13:08:08 +00:00
Diogo Sousa
e810d897a7 improve missing api key msg 2023-11-23 13:02:53 +00:00
teh_coderer
bc2fa9b3e1 Feature/platform async (#5763)
* init

* updates

* Update helpers.py

* tests

* Update helpers.py

* Update command_runner.py

* Update helpers.py

* deps

* Update helpers.py

* only check `async` if model is specified, revert `qa`, `ta`, and `econometrics`

* merge issues

* Update command_runner.py

* remove typing and type: ignore

* fix helpers typing

* add aiohttp to core deps, remove from charting

* remove @overload

* ruff

* import helper from source

* helpers typing+pylint

* black

---------

Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
Co-authored-by: Pratyush Shukla <ps4534@nyu.edu>
Co-authored-by: Henrique Joaquim <h.joaquim@campus.fct.unl.pt>
Co-authored-by: Diogo Sousa <montezdesousa@gmail.com>
2023-11-23 13:01:56 +00:00
Diogo Sousa
0400bea644 import helper from source 2023-11-23 12:51:27 +00:00
Diogo Sousa
199f995882 fix mypy 2023-11-23 11:16:49 +00:00
Danglewood
5cc5cce263 hotfix/fix-technical-output: Include Dates in Output (#5754)
* fixes output to include dates

* ichimoku

* add trading_periods param to cones

* add param to integration tests

---------

Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
2023-11-22 21:09:55 +00:00
Henrique Joaquim
4400cd9a8f Merge provider and core into core (#5774)
* small changes - moving provider inside the core

* uptade readme

* lint

* remove old provider readme

* leftovers

* refactor website examples

* ruff

* fix nox

* relock

* fix fails_to_deliver headers

* fix for tests that have renamed endpoints

* fix discovery

* removed test for renamed endpoint

* fix broken syntax - test_search_financial_attributes

* fix cash/income/balance

* fix derivatives tests

* fix etf tests

* fix news tests

* fix regulators

* black

* wrong test param

* sort equity gainers/losers by percent

* platform markdown generation import

* Hotfix/fix int tests core merge (#5779)

* removing tests on old endpoint

* removing visualization on old endpoint

* fixing equity tests

* fixing examples

* fix news tests

* fix index test

* example

* add comments

* example

---------

Co-authored-by: Diogo Sousa <montezdesousa@gmail.com>

---------

Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
Co-authored-by: Diogo Sousa <montezdesousa@gmail.com>
Co-authored-by: Danglewood <85772166+deeleeramone@users.noreply.github.com>
Co-authored-by: Pratyush Shukla <ps4534@nyu.edu>
2023-11-22 13:48:01 +00:00
Luqman
9da18eefe3 small changes (#5781) 2023-11-22 13:17:45 +00:00
Luqman
48dd13e004 fix github pages deployment (#5780) 2023-11-22 12:58:41 +00:00
montezdesousa
24bc6ec52f Rename session file (#5771)
* rename session file

* rename method

* Update README.md

* placed  as note

* revert readme change

---------

Co-authored-by: Pratyush Shukla <ps4534@nyu.edu>
2023-11-22 11:17:39 +00:00
DidierRLopes
467f248705 Small fix (#5777)
This file gets automatically generated
2023-11-22 10:11:34 +00:00
teh_coderer
1e4feffd77 Docs/fix doc generations (#5775)
* few changes

* Update get_search_results.md

* updates

* undo build

* Update test_generate_docs.py

* Update controller_doc_classes.py

* Update params_controller.py

* Update params_controller.py
2023-11-21 21:10:45 +00:00
Luqman
40dece279d Feature/fix platform unit test (#5772)
* changed checkout ref

* Testing

* revert changes
2023-11-21 17:43:55 +00:00
montezdesousa
c0d93e4dc1 Released this code (#5761)
* updates after release

* bump pytest-recorder

* Revert "bump pytest-recorder"

This reverts commit 245f178a7e.

* needs to be in dev group

* rerecord yfinance tests

* record in us

---------

Co-authored-by: Pratyush Shukla <ps4534@nyu.edu>
2023-11-21 14:08:02 +00:00
Igor Radovanovic
2f1bbb2ab3 Add support for multiple ticker (#5770)
Co-authored-by: Pratyush Shukla <ps4534@nyu.edu>
2023-11-21 11:15:19 +00:00
DidierRLopes
ab746ceb4e Generate widgets library (#5767)
* generate widgets library

* Update gh-pages.yml

* black

* ruff fix

* add index to widgets-library

* linter
2023-11-21 10:01:52 +00:00
James Maslek
dce447b423 install v4 (#5766)
* install v4

* add run on pr

* this seems sus

* thnx juan

* flip

* thnx juan

* idk

* Update index.js

* Update Root.tsx

* Update index.js

* try again

* fix front matter

* fix description front matter

* Revert "fix description front matter"

This reverts commit cccc7b2469.

* try to fix this mickey

* fixed all that mickey @DidierRLopes broke

* Update index.js

* generate platform fix

* black fix

---------

Co-authored-by: DidierRLopes <dro.lopes@campus.fct.unl.pt>
Co-authored-by: tehcoderer <me@tehcoderer.com>
Co-authored-by: andrewkenreich <andrew.kenreich@gmail.com>
2023-11-21 06:38:50 +00:00
DidierRLopes
c680a74872 Add Pro videos to docs + fix CI (#5765)
* add pro vids

* Update gh-pages.yml
2023-11-20 20:53:28 +00:00
Danglewood
7bcef37874 docs/working-docs: Working V4 Docs PR (#5747)
* post-install clarification, fix links

* more links

* change word

* toolkit cleanup

* rename 'contributing' to 'development'

* update extensions

* some urls

* Update sdk-platform and v4-develop in urls (#5730)

* Update sdk-platform and v4-develop in urls

* Seprate Intrinio financials data tags into a different command (#5723)

* add `ebit` field in income statement standard model

* only add required data tags

* remove calculations data

* use `name` key instead of `tag` key

* set `period` as required in data

* remove `period` and `cik` from provider models

* add `equity/fundamental/search_financial_attributes` with tests

* clean descriptions file

* add `equity/fundamental/financial_attributes` with tests

* set `value` as `Optional`

* Fix threadpool test error (#5734)

* Remove ultima from deps (#5736)

* remove ultima from deps

* skip ultima test

* black

* change skip location

* try except statement to avoid error on the ci

* new currency reference rates pr (#5724)

* point files to linters (#5739)

* remove news from equity (#5741)

* Add tiingo provider (#5740)

* first commit

* things

* Add news endpoints

* CryptoHistorical

* Add currency and trailing dividend yield

* things working

* deps

* fix pre commit things

* tests?

* black on the tests

* pratty told me to add it

* integration tests

* added helpers

* crypto revamped

* currency revamped

* trailing dividend yield revamped

* equity historical revamped

* company news overhauled

* global news overhauled

* remove `tags` param from news models

* crypto correct `exchanges` description

* james smh

* re-recorded fetcher tests

* fixed integration tests

* econometrics smh

* james smh again

---------

Co-authored-by: Pratyush Shukla <ps4534@nyu.edu>

* Add `derivatives` extension for `futures` and `options` (#5742)

* removed options and futures

* add derivatives extension

* cleanup

* bug #5649 (#5722)

* bug #5649

* fixing --a upmom, downmom

---------

Co-authored-by: Danglewood <85772166+deeleeramone@users.noreply.github.com>

* Rename the fmp search -> screener (#5744)

* Rename the fmp search -> screener

* misses some

* i cant copy paste

* docs/fix-urls: Updates the Terminal About URLs to match `/develop` (#5720)

* update Terminal about URLs and some other broken links

* ruff

* intro

* changing the heading levels

* dependency management sections

* structure

* developer guides

* structure

* contributor guides

* keywords and descriptions

* broken urls

* cool cards

* Cool cards (#5727)

* tidy up terminal/content

* some more tidy up

* fix styling for platform that was missing

* more tidy up

* improve color for dark and light mode

* create new reference card for more basic cards

* rename back to menus

* implement all index.md for terminal, except reference

* improve bot title

* more refactoring

* fix remaining index

* header styling

* more styling

* heheheheheheeh

* Revert "heheheheheheeh"

This reverts commit 7d095fcfd2.

* Ccards (#5733)

* links

* more links

* improved styling and chevron aligned to title

* fix index.mdx urls for Terminal

* update package.json

* update index.mdx

* fix generation

* spelling

* toolkit_extensions

* update data extensions

* couple of links

* add tiingo to data extensions list

---------

Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt>
Co-authored-by: andrewkenreich <andrew.kenreich@gmail.com>
Co-authored-by: DidierRLopes <dro.lopes@campus.fct.unl.pt>
Co-authored-by: James Maslek <jmaslek11@gmail.com>

* Stock leftover cleanup (#5745)

* change to equity in `.md` files

* `HistoricalStockSplits`->`HistoricalSplits`

* `StockInsiderTrading`->`InsiderTrading`

* sorry fmp

* `EquityHistorical` cleanup

* `EquityNBBO` cleanup

* .md leftover

* the last of stocks

* post-install clarification, fix links

* more links

* change word

* toolkit cleanup

* rename 'contributing' to 'development'

* Hotfix/urllib to dev group (#5732)

* use the urllib3 dependency on the dev group instead

* adapt the version script for the nightlies - if it's a nightly the package distribution name will have a different name

* add dev dependencies to the dev installation bc of the ci

* updating the import on validate_call according to: https://docs.pydantic.dev/latest/concepts/validation_decorator/
the way we were importing it breaks if pydantic=2.5
@montezdesousa

* loosing urllib3 version specification on the provider and adding it to platform dev deps

* rmeoving urllib from top level deps; and removing --with dev flag

* changing to ^ instead

* Revert "changing to ^ instead"

This reverts commit 7300904e9f.

* unnecessary dep

---------

Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>

* feature/v4-bop - Add ECB Balance of Payments (Replaces #5716) (#5726)

* add ecb balance of payments

* missing __init__.py files

* Nasdaq calendar earnings and fix FMP calendar earnings (#5718)

Co-authored-by: James Maslek <jmaslek11@gmail.com>

* feature/us-treasury-auctions: Adds Treasury Auctions endpoint and provider for US Government Data. (#5746)

* add government_us provider and treasury auctions endpoint

* black

* add param for cusip

* move logic for setting default start/end date

* Update hub<>platform credentials map (#5749)

* update hub<>platform credentials map

* typo

* Add API settings schema to system settings (#5743)

Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>

* Skip checking creds (#5737)

* skip checking creds

* fix bug

* ok mypy

* add comment

* rename required_credentials

* fix

* fix top_retail bug

* don't require creds in some nasdaq fetchers

* black

* this was not here before

* fix tests

* update fetcher test

* update contributing guidelines

* Fix Quote (#5752)

* Fix Quote

* fixed return type and model validation

---------

Co-authored-by: Pratyush Shukla <ps4534@nyu.edu>

* Wrap up renaming global news to world news on a model level (#5750)

* Wrap up renaming global news to world news on a model level

* cleanup

---------

Co-authored-by: Pratyush Shukla <ps4534@nyu.edu>

* update extensions

* some urls

* Revert changes to v3 docs

---------

Co-authored-by: Henrique Joaquim <h.joaquim@campus.fct.unl.pt>
Co-authored-by: Pratyush Shukla <ps4534@nyu.edu>
Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
Co-authored-by: Danglewood <85772166+deeleeramone@users.noreply.github.com>
Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
Co-authored-by: Ramazan <guvencramazan@yandex.com>
Co-authored-by: andrewkenreich <andrew.kenreich@gmail.com>
Co-authored-by: DidierRLopes <dro.lopes@campus.fct.unl.pt>

* POST request example

* update post example

* find symbols

* market calendars

* codespell

* codespell ftw

* improve main page light mode

---------

Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
Co-authored-by: Henrique Joaquim <h.joaquim@campus.fct.unl.pt>
Co-authored-by: Pratyush Shukla <ps4534@nyu.edu>
Co-authored-by: Igor Radovanovic <74266147+IgorWounds@users.noreply.github.com>
Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
Co-authored-by: Ramazan <guvencramazan@yandex.com>
Co-authored-by: andrewkenreich <andrew.kenreich@gmail.com>
Co-authored-by: DidierRLopes <dro.lopes@campus.fct.unl.pt>
2023-11-20 20:14:00 +00:00
montezdesousa
ddcd1e7b0f Squeeze build time (#5756)
* squeeze build time

* bug fix

* fix test

* typo?

* rebuild

* keep tradingeconomics
2023-11-18 20:03:02 +00:00
montezdesousa
7534c43546 Updates system and api settings (#5753)
* remove uncessary import on rest api

* remove FrozenField and add api.version

* allow setup from json

* remove id tag

* computed field is better

* formatting

---------

Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
2023-11-18 14:56:48 +00:00
Pratyush Shukla
d07c7eff11 Massive docstring cleanup (#5755)
* sec router remove command

* standard models cleanup

* fmp cleanup

* av cleanup

* benzinga cleanup

* biztoc cleanup

* cboe cleanup

* ecb cleanup

* finra cleanup

* fred cleanup

* us cleanup

* intrinio cleanup

* nasdaq cleanup

* oecd cleanup

* polygon cleanup

* sec cleanup

* seeking alpha cleanup

* stockgrid cleanup

* tiingo cleanup

* tradingeconomics cleanup

* ultima cleanup

* wsj cleanup

* yfinance cleanup

* sec router lint

* fix date query param description
2023-11-18 00:15:44 +00:00
Theodore Aptekarev
5981dfdb11 Remove eod from docstrings (#5751)
* Wrap up renaming global news to world news on a model level

* Remove "end of day" from historical price model docstrings

---------

Co-authored-by: Pratyush Shukla <ps4534@nyu.edu>
2023-11-17 19:16:13 +00:00
Theodore Aptekarev
cfab062eae Wrap up renaming global news to world news on a model level (#5750)
* Wrap up renaming global news to world news on a model level

* cleanup

---------

Co-authored-by: Pratyush Shukla <ps4534@nyu.edu>
2023-11-17 16:54:21 +00:00
Igor Radovanovic
7e59a07aaa Fix Quote (#5752)
* Fix Quote

* fixed return type and model validation

---------

Co-authored-by: Pratyush Shukla <ps4534@nyu.edu>
2023-11-17 16:41:36 +00:00
montezdesousa
565cafba53 Skip checking creds (#5737)
* skip checking creds

* fix bug

* ok mypy

* add comment

* rename required_credentials

* fix

* fix top_retail bug

* don't require creds in some nasdaq fetchers

* black

* this was not here before

* fix tests

* update fetcher test

* update contributing guidelines
2023-11-17 16:15:34 +00:00
Theodore Aptekarev
86aa18b7d0 Add API settings schema to system settings (#5743)
Co-authored-by: montezdesousa <79287829+montezdesousa@users.noreply.github.com>
2023-11-17 15:59:57 +00:00
montezdesousa
551b7f79ec Update hub<>platform credentials map (#5749)
* update hub<>platform credentials map

* typo
2023-11-17 15:30:32 +00:00
Danglewood
ef662e17e6 feature/us-treasury-auctions: Adds Treasury Auctions endpoint and provider for US Government Data. (#5746)
* add government_us provider and treasury auctions endpoint

* black

* add param for cusip

* move logic for setting default start/end date
2023-11-17 14:54:43 +00:00
Danglewood
0c8da91473 Nasdaq calendar earnings and fix FMP calendar earnings (#5718)
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-11-17 14:54:12 +00:00
Danglewood
7ceacb391b feature/v4-bop - Add ECB Balance of Payments (Replaces #5716) (#5726)
* add ecb balance of payments

* missing __init__.py files
2023-11-17 14:53:52 +00:00
Henrique Joaquim
8467ac5acc Hotfix/urllib to dev group (#5732)
* use the urllib3 dependency on the dev group instead

* adapt the version script for the nightlies - if it's a nightly the package distribution name will have a different name

* add dev dependencies to the dev installation bc of the ci

* updating the import on validate_call according to: https://docs.pydantic.dev/latest/concepts/validation_decorator/
the way we were importing it breaks if pydantic=2.5
@montezdesousa

* loosing urllib3 version specification on the provider and adding it to platform dev deps

* rmeoving urllib from top level deps; and removing --with dev flag

* changing to ^ instead

* Revert "changing to ^ instead"

This reverts commit 7300904e9f.

* unnecessary dep

---------

Co-authored-by: Theodore Aptekarev <aptekarev@gmail.com>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-11-17 11:43:45 +00:00
Pratyush Shukla
63fe4422fe Stock leftover cleanup (#5745)
* change to equity in `.md` files

* `HistoricalStockSplits`->`HistoricalSplits`

* `StockInsiderTrading`->`InsiderTrading`

* sorry fmp

* `EquityHistorical` cleanup

* `EquityNBBO` cleanup

* .md leftover

* the last of stocks
2023-11-16 22:03:18 +00:00
Danglewood
757fc57174 docs/fix-urls: Updates the Terminal About URLs to match /develop (#5720)
* update Terminal about URLs and some other broken links

* ruff

* intro

* changing the heading levels

* dependency management sections

* structure

* developer guides

* structure

* contributor guides

* keywords and descriptions

* broken urls

* cool cards

* Cool cards (#5727)

* tidy up terminal/content

* some more tidy up

* fix styling for platform that was missing

* more tidy up

* improve color for dark and light mode

* create new reference card for more basic cards

* rename back to menus

* implement all index.md for terminal, except reference

* improve bot title

* more refactoring

* fix remaining index

* header styling

* more styling

* heheheheheheeh

* Revert "heheheheheheeh"

This reverts commit 7d095fcfd2.

* Ccards (#5733)

* links

* more links

* improved styling and chevron aligned to title

* fix index.mdx urls for Terminal

* update package.json

* update index.mdx

* fix generation

* spelling

* toolkit_extensions

* update data extensions

* couple of links

* add tiingo to data extensions list

---------

Co-authored-by: hjoaquim <h.joaquim@campus.fct.unl.pt>
Co-authored-by: andrewkenreich <andrew.kenreich@gmail.com>
Co-authored-by: DidierRLopes <dro.lopes@campus.fct.unl.pt>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-11-16 17:02:59 -05:00
James Maslek
be7f0c30d2 Rename the fmp search -> screener (#5744)
* Rename the fmp search -> screener

* misses some

* i cant copy paste
2023-11-16 21:00:15 +00:00
Ramazan
e6894042c1 bug #5649 (#5722)
* bug #5649

* fixing --a upmom, downmom

---------

Co-authored-by: Danglewood <85772166+deeleeramone@users.noreply.github.com>
2023-11-16 20:55:34 +00:00
Pratyush Shukla
4230a2680c Add derivatives extension for futures and options (#5742)
* removed options and futures

* add derivatives extension

* cleanup
2023-11-16 17:00:05 +00:00
James Maslek
2b058c664c Add tiingo provider (#5740)
* first commit

* things

* Add news endpoints

* CryptoHistorical

* Add currency and trailing dividend yield

* things working

* deps

* fix pre commit things

* tests?

* black on the tests

* pratty told me to add it

* integration tests

* added helpers

* crypto revamped

* currency revamped

* trailing dividend yield revamped

* equity historical revamped

* company news overhauled

* global news overhauled

* remove `tags` param from news models

* crypto correct `exchanges` description

* james smh

* re-recorded fetcher tests

* fixed integration tests

* econometrics smh

* james smh again

---------

Co-authored-by: Pratyush Shukla <ps4534@nyu.edu>
2023-11-16 09:34:29 +00:00
Pratyush Shukla
3ce696feeb remove news from equity (#5741) 2023-11-15 23:57:26 +00:00
montezdesousa
f0002b2373 point files to linters (#5739) 2023-11-15 17:33:44 +00:00
Danglewood
e1ecb3ca23 new currency reference rates pr (#5724) 2023-11-15 16:02:47 +00:00
Henrique Joaquim
d4207527eb Remove ultima from deps (#5736)
* remove ultima from deps

* skip ultima test

* black

* change skip location

* try except statement to avoid error on the ci
2023-11-15 15:16:00 +00:00
Igor Radovanovic
cffd302b0f Fix threadpool test error (#5734) 2023-11-15 08:35:32 +00:00
Pratyush Shukla
68965c4cec Seprate Intrinio financials data tags into a different command (#5723)
* add `ebit` field in income statement standard model

* only add required data tags

* remove calculations data

* use `name` key instead of `tag` key

* set `period` as required in data

* remove `period` and `cik` from provider models

* add `equity/fundamental/search_financial_attributes` with tests

* clean descriptions file

* add `equity/fundamental/financial_attributes` with tests

* set `value` as `Optional`
2023-11-14 21:59:49 +00:00
James Maslek
139efd31ab Run tests on develop (#5725)
* Run tests on develop

* Add a check that files changes in platform
2023-11-14 16:47:21 +00:00
Henrique Joaquim
2db0144229 Finishing touches to the publishing procedure (#5728)
* finishing touches to the publishing procedure

* grammar improvements
2023-11-14 12:11:56 +00:00