Package Search Help

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.

Start My Free Trial

Python logo bxsolana-trader  1.7.0

One-liner (summary)

Python SDK for bloXroute's Solana Trader API

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:

```python import bxsolana

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.18.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.

Size

30.9 KB

Downloads

5

Status  Completed
Checksum (MD5) 13503f9342309546ce77323f7f834411
Checksum (SHA-1) 0d60174d0ae8f21f04a6457287cc98cb2a0588ee
Checksum (SHA-256) 935fb95e7aed253edd9fdbad69a7be616f2fdb3325abcbccbf6ae4414b9901c7
Checksum (SHA-512) 9feb186c40a91061c783ddbf975fc6c6bca435c7e5c39aaad1bb3ab8c7d8d9d75f…
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 Fetched by Cloudsmith
Slug Id bxsolana_trader-170-py3-none-anywhl-kv1g
Unique Id iTm9C0Zw7krR01IC
Version (Raw) 1.7.0
Version (Parsed)
  • Major: 1
  • Minor: 7
  • Patch: 0
  • Type: SemVer (Compat)
  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) | betterproto (==v2.0.0-beta5) | bx-jsonrpc-py (==0.2.0) | bxsolana-trader-proto (==0.0.24) | grpclib (==0.4.3) | protobuf (==4.21.8) | solana (==0.29.1) | solders (==0.14.4)
pkg bxsolana_trader-1.7.0-py3-none-… 5
30.9 KB
md5 sha1 sha256 sha512
Package Contents (bxsolana_trader-1.7.0-py3-none-any.whl)
Loading...

This package has 45 files/directories.

 Newer Python logo
bxsolana-trader
 2.1.8
5 Fetched by Cloudsmith
 Newer Python logo
bxsolana-trader
 2.1.7
4 Fetched by Cloudsmith
 Newer Python logo
bxsolana-trader
 2.1.6
5 Fetched by Cloudsmith
 Newer Python logo
bxsolana-trader
 2.1.5
5 Fetched by Cloudsmith
 Newer Python logo
bxsolana-trader
 2.1.4
5 Fetched by Cloudsmith
 Newer Python logo
bxsolana-trader
 2.1.3
5 Fetched by Cloudsmith
 Newer Python logo
bxsolana-trader
 2.1.2
5 Fetched by Cloudsmith
 Newer Python logo
bxsolana-trader
 2.1.1
5 Fetched by Cloudsmith
 Newer Python logo
bxsolana-trader
 2.1.0
5 Fetched by Cloudsmith
 Newer Python logo
bxsolana-trader
 2.0.2
5 Fetched by Cloudsmith
  Python logo
bxsolana-trader
 1.7.0
5 Fetched by Cloudsmith
 Older Python logo
bxsolana-trader
 1.6.0
5 Fetched by Cloudsmith
 Older Python logo
bxsolana-trader
 1.5.0
6 Fetched by Cloudsmith
 Older Python logo
bxsolana-trader
 1.4.1
4 Fetched by Cloudsmith
 Older Python logo
bxsolana-trader
 1.4.0
5 Fetched by Cloudsmith
 Older Python logo
bxsolana-trader
 1.3.3
5 Fetched by Cloudsmith
 Older Python logo
bxsolana-trader
 1.3.2
5 Fetched by Cloudsmith
 Older Python logo
bxsolana-trader
 1.3.1
5 Fetched by Cloudsmith
 Older Python logo
bxsolana-trader
 1.3.0
5 Fetched by Cloudsmith
 Older Python logo
bxsolana-trader
 1.2.0
5 Fetched by Cloudsmith

Last scanned

4 months, 3 weeks ago

Scan result

Clean

Vulnerability count

0

Max. severity

Unknown

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:

[![This version of 'bxsolana-trader' @ Cloudsmith](https://api.cloudsmith.com/v1/badges/version/demo-docs/awesome-repo/python/bxsolana-trader/1.7.0/a=noarch;xf=bdist_wheel;xn=bxsolana-trader;xv=py3/?render=true)](https://cloudsmith.io/~demo-docs/repos/awesome-repo/packages/detail/python/bxsolana-trader/1.7.0/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/1.7.0/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/1.7.0/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/1.7.0/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/1.7.0/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/1.7.0/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/1.7.0/a=noarch;xf=bdist_wheel;xn=bxsolana-trader;xv=py3/?render=true" alt="This version of 'bxsolana-trader' @ Cloudsmith" /></a>

rendered as: This version of 'bxsolana-trader' @ Cloudsmith

To embed the badge for the latest package version, use the following:

[![Latest version of 'bxsolana-trader' @ Cloudsmith](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)](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: Latest version of 'bxsolana-trader' @ Cloudsmith

These instructions assume you have setup the repository first (or read it).

To install/use bxsolana-trader @ version 1.7.0 ...

pip install 'bxsolana-trader==1.7.0'

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==1.7.0

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==1.7.0

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==1.7.0
Warning: We highly recommend using pip (or similar) rather than installing directly.
Top