Skip to content

This is an all-in-one market data SDK that provides multiple SDKs from around the markets. Enjoy pre-built SDKs from the New York Fed, Options Clearing Corporation, Options Industry Council, Webull, Yahoo Finance, the Office of Financial Research, the Federal Register, and much more!

License

Notifications You must be signed in to change notification settings

chuckdustin12/fudstop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fudstop

Fudstop is a collection of Python utilities for market data, market research and trading automation. It bundles asynchronous wrappers for popular APIs and a set of helper functions for quick data analysis.

Features

  • Async clients for Polygon.io and Webull
  • Options Clearing Corporation and Yahoo Finance SDKs
  • Economic data helpers (New York Fed, FRED and more)
  • Utility functions for working with trading data
  • Example scripts in fudstop/examples

Installation

pip install fudstop4

Configuration

Create a .env file in the project root and populate it with the API keys you plan to use. A template is provided in this repository.

Quick start

from fudstop.apis.polygonio.async_polygon_sdk import Polygon

poly = Polygon()

async def main():
    trade = await poly.last_trade("AAPL")
    print(trade)

# asyncio.run(main())

More examples can be found in the examples folder.

Web interface

A small Flask app is provided in the webapp/ directory for viewing records stored in your PostgreSQL database. Populate the DB_HOST, DB_USER, DB_PW, DB_NAME and DB_PORT variables in .env and run:

python -m webapp.app

The homepage shows a snapshot from the wb_opts table.

License

This project is released under the MIT License.

The code is provided for educational purposes only and is not financial advice.

About

This is an all-in-one market data SDK that provides multiple SDKs from around the markets. Enjoy pre-built SDKs from the New York Fed, Options Clearing Corporation, Options Industry Council, Webull, Yahoo Finance, the Office of Financial Research, the Federal Register, and much more!

Topics

Resources

License

Stars

Watchers

Forks

Languages