Skip to content

RiskAmerica/api-client-python

Repository files navigation

riam-api-client

This is an SDK to query RiskAmerica APIs which is a paid service offered by RiskAmerica, which is sold independently from its other offerings

Some points to keep in mind:

  • You can find a detailed documentation of the APIs on the site https://apidoc.riskamerica.com
  • The API Key is provided to you by RiskAmerica after purchasing the service, ask your Account Manager for these credentials.
  • The APIs could be billed per-query depending on the deal you signed with RiskAmerica, so be careful and avoid needless queries whenever possible.
  • The APIs are protected by an IP WhiteList. To add or alter the IPs please contact your Account Manager with said information.

This Python package was automatically generated by the Swagger Codegen project:

  • API version: 1.0.0
  • Package version: 1.0.0
  • Build package: io.swagger.codegen.v3.generators.python.PythonClientCodegen

Requirements.

Python 2.7 or 3.4+

Installation & Usage

pip install

You can install directly from Github

pip install git+https://github.com/RiskAmerica/api-client-python.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/RiskAmerica/api-client-python.git)

Then import the package:

import riam_api_client 

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import riam_api_client

Getting Started

Please follow the installation procedure and then run the following:

from __future__ import print_function
import riam_api_client
from riam_api_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: ApiKeyAuth
configuration = riam_api_client.Configuration()
configuration.api_key['X-API-Key'] = 'YOUR_API_KEY'

# create an instance of the API class. Here you should try one of the APIs you purchased.
api_instance = riam_api_client.RFNCalculadoraApi(riam_api_client.ApiClient(configuration))
nemo = 'BACEN-A1' # str | Nemotecnico del instrumento a valorizar
fecha = '2013-10-20' # date | Fecha para la cual se efectua la valorización
tir = 1.2 # float | Tasa usada para valorizar
nominal = 1000 # float | Nominal a valorizar (default to 1000)

try:
    # Obtiene la valorización de un instrumento para una tasa dada.
    api_response = api_instance.r_fn_calculadora_calculadora_calcular_con_tir(nemo, fecha, tir, nominal)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CalculadoraApi->r_fn_calculadora_calculadora_calcular_con_tir: %s\n" % e)

Documentation For Authorization

ApiKeyAuth

  • Type: API key
  • API key parameter name: X-API-Key
  • Location: HTTP header

Author

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages