Skip to content

Commit 0861cbe

Browse files
authored
bump drift-rs for jupiter api key requirement (#145)
1 parent 79fcc2e commit 0861cbe

File tree

3 files changed

+25
-20
lines changed

3 files changed

+25
-20
lines changed

Cargo.lock

Lines changed: 19 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ edition = "2021"
66
[dependencies]
77
actix-web = "*"
88
argh = "*"
9-
drift-rs = { git = "https://github.com/drift-labs/drift-rs", rev = "ab3fec7", features = ["titan"] }
9+
drift-rs = { git = "https://github.com/drift-labs/drift-rs", rev = "0618036", features = ["titan"] }
1010
base64 = "0.22.1"
1111
env_logger = "*"
1212
faster-hex = "0.10.0"

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@ These runtime environment variables are required:
130130
| `GRPC_HOST` | endpoint for gRPC subscription mode | `https://grpc.example.com`
131131
| `GRPC_X_TOKEN` | authentication token for gRPC subscription mode | `aabbccddeeff112233`
132132
| `INIT_RPC_THROTTLE` | Adds a delay (seconds) between RPC bursts during gateway startup. Useful to avoid 429/rate-limit errors. Can be set to `0`, if RPC node is highspec | `1` |
133+
| `JUPITER_API_KEY` | **Required for `/v2/swap`**. Jupiter API key for swap operations. Get a free key at [portal.jup.ag](https://portal.jup.ag). See [migration guide](https://dev.jup.ag/portal/migrate-from-lite-api) | `your-jupiter-api-key` |
134+
| `JUPITER_API_URL` | (Optional) Override Jupiter API base URL | `https://api.jup.ag/swap/v1` |
133135
| `TITAN_AUTH_TOKEN` | **Required for `/v2/titan-swap`**. Authentication token for Titan API | `your-titan-auth-token` |
134136
| `TITAN_BASE_URL` | (Optional) Titan API base URL | `https://api.titan.exchange` |
135137

@@ -713,6 +715,8 @@ $ curl localhost:8080/v2/orders/cancelAndPlace -X POST -H 'content-type: applica
713715
Executes a spot token swap using Jupiter routing and liquidity aggregation.
714716
for more info see jup docs: https://dev.jup.ag/docs/api/swap-api/quote
715717

718+
⚠️ **Requires `JUPITER_API_KEY` environment variable to be set.** Get a free API key at [portal.jup.ag](https://portal.jup.ag). See [Jupiter API migration guide](https://dev.jup.ag/portal/migrate-from-lite-api) for details.
719+
716720
**Endpoint**: `POST /v2/swap`
717721

718722
**Parameters**:
@@ -729,7 +733,7 @@ Request body:
729733
"excludeDexes": bool, // comma separated list of dexes to exclude
730734
}
731735
```
732-
dexes: https://lite-api.jup.ag/swap/v1/program-id-to-label
736+
dexes: https://api.jup.ag/swap/v1/program-id-to-label
733737

734738
**Response**:
735739

0 commit comments

Comments
 (0)