freqsignals-client
FreqSignals client for python! It assists in token management and abstracts the HTTP requests to make it easy to upload or download signals.
Install
pip install freqsignals-client
Docs
FreqSignalsClient
init
from freqsignals_client import FreqSignalsClient,
client = FreqSignalsClient(
client_id="1234",
client_secret="567890",
)
get_signals
client.get_signals()
Note: Might raise a freqsignals_client.FreqSignalsError if FreqSignals rejects the request
Note: Might raise a freqsignals_client.FreqSignalsTimeoutError if the request times out
post_signal
client.post_signal({
"symbol": "BTC",
"value": 0.1,
"ttl_minutes": 60,
"data_set_id": "DATA_SET_ID"
})
logging
To get visibility into logged events, override the log method and log however your app needs to log:
class CustomFreqSignalsClass(FreqSignalsClient):
def log(self, level, msg, **log_variables):
print(f"[{level}] {msg}", log_variables)
client = CustomFreqSignalsClass(client_id, client_secret)
Example
from freqsignals import FreqSignalsClient, FreqSignalsError, FreqSignalsTimeoutError
my_client = FreqSignalsClient("1234", "56-789")
try:
results = my_client.get_signals()
print(results)
except FreqSignalsError:
print("FreqSignals failure")
except FreqSignalsTimeoutError:
print("FreqSignals timed out")
Common Commands:
Black Formatting
$ black freqsignals_client --config freqsignals_client.toml
Build
$ python3 setup.py sdist
Pypi Distribution
$ python3 -m twine upload dist/*
License
FreqSignals Client is MIT licensed.
Metadata
Release files for freqsignals-client 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| freqsignals-client-0.1.2.tar.gz | 4.3 kB | Without provenance | Details for freqsignals-client-0.1.2.tar.gz |
Release files / freqsignals-client-0.1.2.tar.gz
| Download URL | freqsignals-client-0.1.2.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
910e5479e0e7f0d695f67d1419dbb8fd522fd52c9bb1cbe4eb8d27a618719210
|
|
BLAKE2b-256 checksum How to use checksums |
7a434eb4239fb4eed0a1d5cd1121cca3f8572c46203a3aa1717072ce28220722
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.10
|
Security for freqsignals-client 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.