Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Firipy is a Python wrapper for the Firi API. It provides a simple and intuitive way to interact with the Firi cryptocurrency exchange, allowing users to retrieve market data, manage orders, and more. With Firipy, you can easily integrate Firi's features into your Python applications.
FiriAPI is a Python client for the Firi API.
You can install FiriAPI using pip:
pip install firipy
First, import the FiriAPI
class from the firipy
module:
from firipy import FiriAPI
Then, initialize the client with your API token from Firi:
client = FiriAPI("your-token")
Now you can use the client to interact with the Firi API. For example, to get the current time:
time = client.time()
print(time)
To get history over all transactions:
history = client.history_transactions()
print(history)
To get balances:
balances = client.balances()
print(balances)
FiriAPI includes a rate limit, which is the number of seconds to wait between requests. By default, this is set to 1 second. You can change this when you initialize the client:
client = FiriAPI("your-token", rate_limit=2) # wait 2 seconds between requests
FiriAPI handles HTTP errors using the requests.Response.raise_for_status
method.
If a request fails, this method raises a requests.HTTPError
exception.
The client catches this exception and prints an error message.
The client also handles other exceptions that might occur during the execution of a request, and prints an error message in these cases.
Contributions to FiriAPI are welcome! Please submit a pull request or create an issue on the GitHub page.
This client was developed by Ove Aursland and is not officially associated with Firi.
FAQs
Firipy is a Python wrapper for the Firi API. It provides a simple and intuitive way to interact with the Firi cryptocurrency exchange, allowing users to retrieve market data, manage orders, and more. With Firipy, you can easily integrate Firi's features into your Python applications.
We found that firipy 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.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.