Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
install it using pip
pip install request
install it using pip
pip install pandas
class ApiClient
in qtx.py
is provisioned to make API requests. In the constructor of the ApiClient
class, a dictionary of default headers for all requests can be supplied so that headers need not be supplied with each request.
default_headers = { 'x-api-key' : '<token>' }
client = ApiClient(default_headers)
To make a GET request, ApiClient.get()
method is used with following params
api_key
: API key required for authenticating the requestsname
: string
api name which will be appended to base_urlparams
: dict
of url paramsEXAMPLE
import qtx
api = "market-data-eod"
params = {
'securityId': 'NSE:NNFM',
'startDate': '2017-02-08',
'endDate': '2017-02-10'
}
api_key = '<token>'
client = api_client.ApiClient()
print client.get(api_key, api, params).data_frame()
The get()
method returns a Response
object from which below methods can be used to get response data as json or Pandas DataFrame.
client.get(api_key, name, queryparams).json()
will return response data as json, andclient.get(api_key, name, queryparams).data_frame()
will return response data as pandas DataFramepython tests/test.py
FAQs
API client for Quantextive AEX Data Platform
We found that qtx demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.