Skip to main content

FINTER API

Project description

Finter API client Package

Overview

Python client SDK for finter platform

  • You can get Authorization of finter API with authToken.
    • Type: API key
    • API key parameter name: Authorization
    • Location: HTTP header
  • This Python package is automatically generated by the Swagger Codegen project.
  • Please contact with finter_support@quantit.io if you have any problems, troubles, ... etc.

Requirements.

Python 2.7 and 3.4+

Installation & Usage

pip install finter

Then import the package:

import finter 

Getting Started

Please follow the installation procedure and then run the following:

Get CM Example

from __future__ import print_function
import time
import finter
from finter.rest import ApiException
from pprint import pprint
# Configure API key authorization: tokenAuth
configuration = finter.Configuration()
# Token-based authentication with required prefix "Token"
configuration.api_key['Authorization'] = 'Token YOUR_API_KEY' # prefix "Token" is required

# create an instance of the API class
api_instance = finter.ContentApi(finter.ApiClient(configuration))
code_format = 'code_format_example' # str | data column code format (optional)
end = 'end_example' # str | data end date (optional)
identity_name = 'identity_name_example' # str | content model identity name (required)
tail = 56 # int | data tail row number (optional)

try:
    api_response = api_instance.content_model_retrieve(code_format=code_format, end=end, identity_name=identity_name, tail=tail)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ContentApi->content_model_retrieve: %s\n" % e)
  • Convert to Pandas DataFrame
import finter

json_response = api_response.to_dict()['cm']
df = finter.to_dataframe(json_response)

Get Calendar Example

from __future__ import print_function
import time
import finter
from finter.rest import ApiException
from pprint import pprint
# Configure API key authorization: tokenAuth
configuration = finter.Configuration()
configuration.api_key['Authorization'] = 'Token YOUR_API_KEY' # prefix "Token" is required

# create an instance of the API class
api_instance = finter.CalendarApi(finter.ApiClient(configuration))
date_type = 1 # int | 0:all day 1: trading day, 2: closed day, 3: weekends (optional, default: 0)
start_date = 'start_date_example' # str |  (required)
end_date = 'end_date_example' # str |  (required)
exchange = 'exchange_example' # str |  (optional)

try:
    api_response = api_instance.calendar_retrieve(date_type=date_type, end_date=end_date, exchange=exchange, start_date=start_date)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CalendarApi->calendar_retrieve: %s\n" % e)

Get Metafund Model Example

from __future__ import print_function
import time
import finter
from finter.rest import ApiException
from pprint import pprint
# Configure API key authorization: tokenAuth
configuration = finter.Configuration()
configuration.api_key['Authorization'] = 'Token YOUR_API_KEY' # prefix "Token" is required

# create an instance of the API class
api_instance = finter.MetafundApi(finter.ApiClient(configuration))
code_format = 'code_format_example' # str | data column code format (optional)
forward_fill = True # bool |  (optional)
metafund_name = 'metafund_name_example' # str |  (required)

try:
    api_response = api_instance.metafund_model_retrieve(code_format=code_format, forward_fill=forward_fill, metafund_name=metafund_name)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MetafundApi->metafund_model_retrieve: %s\n" % e)

You can apply same code frame to use other endpoints.

api_instance module name Api url
ContentApi content_identities_retrieve content/identities
content_model_retrieve content/model
ews_retrieve ews/
AlphaApi alpha_identities_retrieve alpha/identities
alpha_model_retrieve alpha/model
PortfolioApi portfolio_identities_retrieve portfolio/identities
portfolio_model_retrieve portfolio/model
FundApi fund_identities_retrieve fund/identities
fund_model_retrieve fund/model
FlexibleFundApi flexiblefund_identities_retrieve flexiblefund/identities
flexiblefund_model_retrieve flexiblefund/model
MetafundApi metafund_list_retrieve metafund/list
metafund_model_retrieve metafund/model
metafund_performance_retrieve metafund/performance
Calendar calendar_retrieve calendar/

Finter Utils

name description
to_dataframe convert json-formed data to dataframe

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

finter-0.0.19-py3-none-any.whl (133.9 kB view details)

Uploaded Python 3

File details

Details for the file finter-0.0.19-py3-none-any.whl.

File metadata

  • Download URL: finter-0.0.19-py3-none-any.whl
  • Upload date:
  • Size: 133.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/34.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.12 tqdm/4.64.0 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.3 CPython/3.6.4

File hashes

Hashes for finter-0.0.19-py3-none-any.whl
Algorithm Hash digest
SHA256 091ce9f9d98a8d44a9afcc4052062c26a7ba2e89b1430995bcb71154ee528a92
MD5 798bc5e8c45c625613bfbf48694e2b56
BLAKE2b-256 3d183a06b22323cb066232d1cc87bacbc4ebf6bfdd113c1c776a75c544365db7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page