An open API service indexing awesome lists of open source software.

https://github.com/tariqdaouda/pyalphavantage

Accurate Free Stock Market, Forex and Crypto, ... data from the AlphaVantage API
https://github.com/tariqdaouda/pyalphavantage

api buisness crypto cryptocoins cryptocurrencies cryptocurrency cryptocurrency-exchanges finance financial-analysis financial-data financial-markets forex-market forex-trading stock-market trading

Last synced: about 1 year ago
JSON representation

Accurate Free Stock Market, Forex and Crypto, ... data from the AlphaVantage API

Awesome Lists containing this project

README

          

# pyAlphaVantage
A mighty small (thanks to a bit of **Black_Magic**) python package for all AlphaVantage financial API. Retrieve both historical and current financial data for stocks, forex and crypto, ...
plus some nice metrics.

## Step 1
Install it however you want (git clone / pip)

## Step 2 use it
```python
import pyAlphaVantageAPI.AlphaVantageAPI as AVA

api = AVA.AlphaVantage(api_key=)
#make a call with arguments as definied in AlphaVantage documentation
data = api.TIME_SERIES_DAILY_ADJUSTED(symbol=SYMBOL, datatype="csv", outputsize="full")
```

*TIME_SERIES_DAILY_ADJUSTED* can be replaced by any function in the documentation as long as it is part of the API and defined in *api.functions_defs*.

## Adding a function to definitions can be done using
```python
api.add_function_definitions(function_name, argument_list)
```

## To know all functions available

```python
api.get_available_functions()
```

## To know the arguments of an available function

```python
api.get_function_arguments(function_name)
```

# That's it

Cheers,

T.