Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 509 Bytes

readme.md

File metadata and controls

33 lines (21 loc) · 509 Bytes

Usage

How to use?

Setup

To run this program you have to setup your environment by below commands.

make install
make setup

Run the example

After you run the program, the output file will be stored in the root.

python examples/spy.py

Example code

You can change the STOCK variable to other symbol you want to request. (Only support US Stock).

import cnbc

STOCK = "SPY"

client = cnbc.Client()
client.apply(STOCK, client.queryQuote, client.save)