You can use boolean logic (e.g. AND/OR/NOT) for complex search queries. For more help and examples, see the search documentation.
Search by package name:
my-package (implicit)
name:my-package (explicit)
Search by package filename:
filename:my-package.ext
Search by package tag:
tag:latest
Search by package version:
version:1.0.0
prerelease:true (prereleases)
prerelease:false (no prereleases)
Search by package architecture:
architecture:x86_64
Search by package distribution:
distribution:el
Search by package license:
license:MIT
Search by package format:
format:deb
Search by package status:
status:in_progress
Search by package file checksum:
checksum:5afba
Search by package security status:
severity:critical
Search by package vulnerabilities:
vulnerabilities:>1
vulnerabilities:<1000
Search by # of package downloads:
downloads:>8
downloads:<100
Search by package type:
type:binary
type:source
Search by package size (bytes):
size:>50000
size:<10000
Search by dependency name/version:
dependency:log4j
dependency:log4j=1.0.0
dependency:log4j>1.0.0
Search by uploaded date:
uploaded:>"1 day ago"
uploaded:<"August 14, 2022 EST"
Search by entitlement token (identifier):
entitlement:3lKPVJPosCsY
Search by policy violation:
policy_violated:true
deny_policy_violated:true
license_policy_violated:true
vulnerability_policy_violated:true
Search by repository:
repository:repo-name
Search by last download date:
last_downloaded:<"30 days ago"
last_downloaded:>"August 14, 2022 EST"
Search queries for all Debian-specific (and related) package types
Search by component:
deb_component:unstable
Search queries for all Maven-specific (and related) package types
Search by group ID:
maven_group_id:org.apache
Search queries for all Docker-specific (and related) package types
Search by image digest:
docker_image_digest:sha256:7c5..6d4
(full hashref only)
Search by layer digest:
docker_layer_digest:sha256:4c4..ae4
(full hashref only)
Search queries for all Generic-specific package types
Search by file path:
generic_filepath:path/to/file.txt
Search by directory:
generic_directory:path/to
Field type modifiers (depending on the type, you can influence behaviour)
For all queries, you can use:
~foo for negation
For string queries, you can use:
^foo to anchor to start of term
foo$ to anchor to end of term
foo*bar for fuzzy matching
For number/date or version queries, you can use:
>foo for values greater than
>=foo for values greater / equal
<foo for values less than
<=foo for values less / equal
Need a secure and centralised artifact repository to deliver Alpine,
Cargo,
CocoaPods,
Composer,
Conan,
Conda,
CRAN,
Dart,
Debian,
Docker,
Generic,
Go,
Helm,
Hex,
HuggingFace,
LuaRocks,
Maven,
MCP,
npm,
NuGet,
P2,
Python,
RedHat,
Ruby,
Swift,
Terraform,
Vagrant,
VSX,
Raw & More packages?
Cloudsmith is the new standard in Package / Artifact Management and Software Distribution.
With support for all major package formats, you can trust us to manage your software supply chain.
bxsolana-trader
2.1.4
One-liner (summary)
Description
# Solana Trader Python Client
Provides a Python SDK for bloXroute's Solana Trader API.
## Installation
` $ pip install bxsolana-trader `
## Usage
This library supports HTTP, websockets, and GRPC interfaces. You can use it with a context manager or handle open/closing yourself.
For any methods involving transaction creation you will need to provide your Solana private key. You can provide this via the environment variable PRIVATE_KEY, or specify it via the provider configuration if you want to load it with some other mechanism. See samples for more information. As a general note on this: methods named post_* (e.g. post_order) typically do not sign/submit the transaction, only return the raw unsigned transaction. This isn't very useful to most users (unless you want to write a signer in a different language), and you'll typically want the similarly named submit_* methods (e.g. submit_order). These methods generate, sign, and submit the transaction all at once.
You will also need your bloXroute authorization header to use these endpoints. By default, this is loaded from the AUTH_HEADER environment variable.
Context manager:
```python from bxsolana import provider
- async with provider.http() as api:
- print(await api.get_orderbook(market="ETHUSDT"))
- async with provider.ws() as api:
- async for update in api.get_orderbooks_stream(market="ETHUSDT"):
- print(update)
Manual:
from bxsolana import provider
p = provider.grpc() api = await bxsolana.trader_api(p)
- try:
- await api.get_orderbook(market="ETHUSDT")
- finally:
- await p.close()
Refer to the examples/ for more info.
## Development
bloXroute Solana Trader API's interfaces are primarily powered by protobuf, so you will need to install it for your system: https://grpc.io/docs/protoc-installation/
In order to install local version of bxsolana_trader_proto dependency
you can build the solana-trader-proto/python directory using these commands
- ```
$ cd ~/solana-trader-proto/
upgrade the version in pyproject.toml
$ make proto-build-api-python $ cd python
you can also push the package to pypi $ rm -rf python/dist/ $ python3 -m build $ python3 -m twine upload --repository pypi dist/*
and install the package locally now $ pip install dist/bxsolana-trader-proto-0.0.42.tar.gz
now you can update the depdendency in solana-trader-client-python update the version of bxsolana-trader-proto in setup.cfg and run $ pip install -r requirements.txt
Clone project and install dependencies:
` $ git clone https://github.com/bloXroute-Labs/solana-trader-client-python.git $ cd solana-trader-client-python $ pip install -r requirements.txt `
Run tests:
``` $ make test
Linting: ` $ make lint `
MIT License
Copyright (c) 2022 bloXroute Labs
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
| Status | Completed |
|---|---|
| Checksum (MD5) | e159a6213eb0d9d9b0a33a11d5e131bb |
| Checksum (SHA-1) | e246fef672e3d4138c43312b35b30440ac8c0202 |
| Checksum (SHA-256) | 0442030eb4c70e41e301f83db65bb367691ccbda937842bab88c7df7b55f8c9f |
| Checksum (SHA-512) | 76caa18ac11fde1829c83e037ce7160a80eeb3f8ebccb4160c00758680abbd5bad… |
| GPG Signature | |
| GPG Fingerprint | 6811684bac0b8895434e97bdd4391b8fb999e537 |
| Storage Region | Dublin, Ireland |
| Type | Binary (contains binaries and binary artifacts) |
| Uploaded At | 4 months, 3 weeks ago |
| Uploaded By |
|
| Slug Id | bxsolana_trader-214-py3-none-anywhl-fbhb |
| Unique Id | J0ut2sTHkE1pIcVY |
| Version (Raw) | 2.1.4 |
| Version (Parsed) |
|
| extended metadata | |
| Author | bloXroute Labs <support@bloxroute.com> |
| Classifiers | Programming Language :: Python :: 3 |
| Homepage URL | https://github.com/bloXroute-Labs/solana-trader-client-python |
| Keywords | serum,solana,blockchain,trader,grpc,stream |
| Metadata Version | 2.1 |
| Py Filetype | bdist_wheel |
| Py Version | py3 |
| Requires Dist | aiohttp ==3.8.1 | aiounittest ==1.4.1 | base58 ==2.1.1 | bx-jsonrpc-py ==0.2.0 | bxsolana-trader-proto ==0.0.74 | grpclib ==0.4.3 | solana ==0.31.0 | solders ==0.19.0 |
| pkg | bxsolana_trader-2.1.4-py3-none-… |
5
33.4 KB |
md5 | sha1 | sha256 | sha512 |
This package has 48 files/directories.
| Newer |
|
bxsolana-trader |
4 |
|
||
| Newer |
|
bxsolana-trader |
5 |
|
||
| Newer |
|
bxsolana-trader |
4 |
|
||
| Newer |
|
bxsolana-trader |
5 |
|
||
| Newer |
|
bxsolana-trader |
5 |
|
||
| Newer |
|
bxsolana-trader |
5 |
|
||
| Newer |
|
bxsolana-trader |
5 |
|
||
| Newer |
|
bxsolana-trader |
4 |
|
||
| Newer |
|
bxsolana-trader |
5 |
|
||
| Newer |
|
bxsolana-trader |
5 |
|
||
|
|
bxsolana-trader |
5 |
|
|||
| Older |
|
bxsolana-trader |
5 |
|
||
| Older |
|
bxsolana-trader |
5 |
|
||
| Older |
|
bxsolana-trader |
5 |
|
||
| Older |
|
bxsolana-trader |
5 |
|
||
| Older |
|
bxsolana-trader |
5 |
|
||
| Older |
|
bxsolana-trader |
5 |
|
||
| Older |
|
bxsolana-trader |
5 |
|
||
| Older |
|
bxsolana-trader |
6 |
|
||
| Older |
|
bxsolana-trader |
5 |
|
Last scanned
4 months, 3 weeks ago
Scan result
Clean
Vulnerability count
0
Max. severity
UnknownPackage statistics are no longer available on cloudsmith.io. Please visit our new web app to access this feature.
You can embed a badge in another website that shows this or the latest version of this package.
To embed the badge for this specific package version, use the following:
[](https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/bxsolana-trader/2.1.4/a=noarch;xf=bdist_wheel;xn=bxsolana-trader;xv=py3/)
|This version of 'bxsolana-trader' @ Cloudsmith|
.. |This version of 'bxsolana-trader' @ Cloudsmith| image:: https://api.cloudsmith.com/v1/badges/version/demo-docs/awesome-repo/python/bxsolana-trader/2.1.4/a=noarch;xf=bdist_wheel;xn=bxsolana-trader;xv=py3/?render=true
:target: https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/bxsolana-trader/2.1.4/a=noarch;xf=bdist_wheel;xn=bxsolana-trader;xv=py3/
image::https://api.cloudsmith.com/v1/badges/version/demo-docs/awesome-repo/python/bxsolana-trader/2.1.4/a=noarch;xf=bdist_wheel;xn=bxsolana-trader;xv=py3/?render=true[link="https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/bxsolana-trader/2.1.4/a=noarch;xf=bdist_wheel;xn=bxsolana-trader;xv=py3/",title="This version of 'bxsolana-trader' @ Cloudsmith"]
<a href="https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/bxsolana-trader/2.1.4/a=noarch;xf=bdist_wheel;xn=bxsolana-trader;xv=py3/"><img src="https://api.cloudsmith.com/v1/badges/version/demo-docs/awesome-repo/python/bxsolana-trader/2.1.4/a=noarch;xf=bdist_wheel;xn=bxsolana-trader;xv=py3/?render=true" alt="This version of 'bxsolana-trader' @ Cloudsmith" /></a>
rendered as:
To embed the badge for the latest package version, use the following:
[](https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/bxsolana-trader/latest/a=noarch;xf=bdist_wheel;xn=bxsolana-trader;xv=py3/)
|Latest version of 'bxsolana-trader' @ Cloudsmith|
.. |Latest version of 'bxsolana-trader' @ Cloudsmith| image:: https://api.cloudsmith.com/v1/badges/version/demo-docs/awesome-repo/python/bxsolana-trader/latest/a=noarch;xf=bdist_wheel;xn=bxsolana-trader;xv=py3/?render=true&show_latest=true
:target: https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/bxsolana-trader/latest/a=noarch;xf=bdist_wheel;xn=bxsolana-trader;xv=py3/
image::https://api.cloudsmith.com/v1/badges/version/demo-docs/awesome-repo/python/bxsolana-trader/latest/a=noarch;xf=bdist_wheel;xn=bxsolana-trader;xv=py3/?render=true&show_latest=true[link="https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/bxsolana-trader/latest/a=noarch;xf=bdist_wheel;xn=bxsolana-trader;xv=py3/",title="Latest version of 'bxsolana-trader' @ Cloudsmith"]
<a href="https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/bxsolana-trader/latest/a=noarch;xf=bdist_wheel;xn=bxsolana-trader;xv=py3/"><img src="https://api.cloudsmith.com/v1/badges/version/demo-docs/awesome-repo/python/bxsolana-trader/latest/a=noarch;xf=bdist_wheel;xn=bxsolana-trader;xv=py3/?render=true&show_latest=true" alt="Latest version of 'bxsolana-trader' @ Cloudsmith" /></a>
rendered as:
These instructions assume you have setup the repository first (or read it).
To install/use bxsolana-trader @ version 2.1.4 ...
pip install 'bxsolana-trader==2.1.4'
You can also install the latest version of this package:
pip install --upgrade 'bxsolana-trader'
If necessary, you can specify the repository directly:
pip install \
--index-url=https://dl.cloudsmith.io/public/demo-docs/awesome-repo/python/simple/ \
bxsolana-trader==2.1.4
If you've got a project requirements.txt file, you can specify this as a dependency:
--index-url=https://dl.cloudsmith.io/public/demo-docs/awesome-repo/python/simple/
bxsolana-trader==2.1.4
In addition, you can use this repository as an extra index url. However, please read our documentation on this parameter before using it. For example in a requirements.txt file:
--extra-index-url=https://dl.cloudsmith.io/public/demo-docs/awesome-repo/python/simple/
bxsolana-trader==2.1.4