CityFalcon
Connect to cityfalcon api and get a dataframe
CityFALCON: Your Personalised Financial News Feed
Website

Get

Action

You can request only tickers on Cityfalcon free plan
1
import naas_drivers
2
naas_drivers.cityfalcon.connect("YOUR_API_KEY").get("TSLA")
Copied!

Fields

Choose fields you want to get in result, list available below:
    title
    image
    link
    description
    score
    sentiment
    source
    source_logo
    image
1
fields = ["image", "title"]
2
naas_drivers.cityfalcon.connect("YOUR_API_KEY").get("TSLA", fields=fields)
Copied!

Country

Country of the stock exchange
1
country = "US"
2
naas_drivers.cityfalcon.connect("YOUR_API_KEY").get("TSLA", country=country)
Copied!

Limit

Limit the number of results
1
limit = 5
2
naas_drivers.cityfalcon.connect("YOUR_API_KEY").get("TSLA", limit=limit)
Copied!

Minimum Score

minimum Score of Cityfalcon
1
min_score = 30
2
naas_drivers.cityfalcon.connect("YOUR_API_KEY").get("TSLA", min_score=min_score)
Copied!

Paywall

Show article with a paywall
1
paywall = True
2
naas_drivers.cityfalcon.connect("YOUR_API_KEY").get("TSLA", paywall=paywall)
Copied!

Identifier_type

1
identifier_type = "full_tickers"
2
naas_drivers.cityfalcon.connect("YOUR_API_KEY").get("TSLA", identifier_type=identifier_type)
Copied!

Time_filter

1
time_filter = "d21"
2
naas_drivers.cityfalcon.connect("YOUR_API_KEY").get("TSLA", time_filter=time_filter)
Copied!

Language

1
naas_drivers.cityfalcon.connect("YOUR_API_KEY").get("TSLA", languages="en")
Copied!

Connect

You can also save your connection and don't repeat it for each method.
1
naas_drivers.cityfalcon.connect("YOUR_API_KEY")
2
# You can use our default apikey limited to 200/hours request for all users
3
​
4
cityfalcon = naas_drivers.cityfalcon.connect()
5
appl = cityfalcon.get("AAPL")
6
tsla = cityfalcon.get("TSLA")
Copied!

Official documentation

Financial News API Documentation | CityFALCON