Skip to content

Commit

Permalink
feat: additional api endpoint (jupiterapi.com) (#14)
Browse files Browse the repository at this point in the history
* Update api.go and README.md

* URLs and README.md
  • Loading branch information
zer0cache authored Jun 4, 2024
1 parent bea5d80 commit f3630e3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,16 @@ WaitForCommitmentStatus(
) (MonitorResponse, error)
```

## API Urls

This library provides two options to leverage for Jupiter APIs.

The default Jupiter API provided by the official Jupiter team can be used via `jupiter.DefaultAPIURL`.

The second Jupiter API option leverages [jupiterapi.com](https://www.jupiterapi.com/) (Community Project). This endpoint provides higher rate limits, but *includes a small 0.2% platform fee*. This API can be used via `jupiter.JupiterAPIURL`.



## License

This library is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
Expand Down
1 change: 1 addition & 0 deletions jupiter/api.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package jupiter

const DefaultAPIURL = "https://quote-api.jup.ag/v6"
const JupiterAPIURL = "https://public.jupiterapi.com"

0 comments on commit f3630e3

Please sign in to comment.