Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mvines/rust-jup-ag
Jupiter Aggregator API Binding for Rust
https://github.com/mvines/rust-jup-ag
Last synced: 10 days ago
JSON representation
Jupiter Aggregator API Binding for Rust
- Host: GitHub
- URL: https://github.com/mvines/rust-jup-ag
- Owner: mvines
- License: wtfpl
- Created: 2022-05-11T23:46:29.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-07-01T14:36:40.000Z (4 months ago)
- Last Synced: 2024-10-05T19:52:36.041Z (about 1 month ago)
- Language: Rust
- Homepage:
- Size: 38.1 KB
- Stars: 60
- Watchers: 5
- Forks: 28
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-solana - Jupiter Aggregator API Rust Bindings - jup-ag.svg?style=social) (Code / Defi)
README
# jup-ag
[Jupiter Aggregator](https://jup.ag/) API bindings for Rust.Basic usage examples can be found in the [examples](examples) directory.
## Usage
* Crates.io: https://crates.io/crates/jup-ag
* API Documentation: https://docs.rs/jup-ag/
* Jupiter Swap API Documentation: https://station.jup.ag/docs/v6/swap-api
* jup.ag Website: https://jup.ag/## Examples
To run the examples:
```sh
$ cargo run --example
```### Using Self-hosted APIs
You can set custom API endpoints via environment variables to use any self-hosted Jupiter APIs. Like the [self-hosted V6 Swap API](https://station.jup.ag/docs/apis/self-hosted) or [paid hosted APIs](https://station.jup.ag/docs/apis/self-hosted#paid-hosted-apis). Here are the ENV vars:
```
QUOTE_API_URL=https://hosted.api
PRICE_API_URL=https://price.jup.ag/v1
```