CityFalcon

Connect to cityfalcon api and get a dataframe

Get

Action

You can request only tickers on Cityfalcon free plan

import naas_drivers
naas_drivers.cityfalcon.connect("YOUR_API_KEY").get("TSLA")

Fields

Choose fields you want to get in result, list available below:

  • title

  • image

  • link

  • description

  • score

  • sentiment

  • source

  • source_logo

  • image

fields = ["image", "title"]
naas_drivers.cityfalcon.connect("YOUR_API_KEY").get("TSLA", fields=fields)

Country

Country of the stock exchange

country = "US"
naas_drivers.cityfalcon.connect("YOUR_API_KEY").get("TSLA", country=country)

Limit

Limit the number of results

limit = 5
naas_drivers.cityfalcon.connect("YOUR_API_KEY").get("TSLA", limit=limit)

Minimum Score

minimum Score of Cityfalcon

min_score = 30
naas_drivers.cityfalcon.connect("YOUR_API_KEY").get("TSLA", min_score=min_score)

Paywall

Show article with a paywall

paywall = True
naas_drivers.cityfalcon.connect("YOUR_API_KEY").get("TSLA", paywall=paywall)

Identifier_type

identifier_type = "full_tickers"
naas_drivers.cityfalcon.connect("YOUR_API_KEY").get("TSLA", identifier_type=identifier_type)

Time_filter

time_filter = "d21"
naas_drivers.cityfalcon.connect("YOUR_API_KEY").get("TSLA", time_filter=time_filter)

Language

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

Connect

You can also save your connection and don't repeat it for each method.

naas_drivers.cityfalcon.connect("YOUR_API_KEY")
# You can use our default apikey limited to 200/hours request for all users
cityfalcon = naas_drivers.cityfalcon.connect()
appl = cityfalcon.get("AAPL")
tsla = cityfalcon.get("TSLA")

Official documentation