Skip to content

Commit

Permalink
feat: added contribute section + api endpoints comments (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
ilkamo committed Jun 4, 2024
1 parent f3630e3 commit 6efe99d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,15 +219,17 @@ WaitForCommitmentStatus(
) (MonitorResponse, error)
```

## API Urls
## 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`.

## Contribute

Contributions are welcome! Feel free to open an issue or submit a pull request if you find a bug or want to add a new feature.

## License

Expand Down
9 changes: 7 additions & 2 deletions jupiter/api.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
package jupiter

const DefaultAPIURL = "https://quote-api.jup.ag/v6"
const JupiterAPIURL = "https://public.jupiterapi.com"
const (
// DefaultAPIURL is the default Jupiter API provided by the official Jupiter team.
DefaultAPIURL = "https://quote-api.jup.ag/v6"

// JupiterAPIURL provides higher rate limits, but includes a small 0.2% platform fee.
JupiterAPIURL = "https://public.jupiterapi.com"
)

0 comments on commit 6efe99d

Please sign in to comment.