Skip to content

Releases: drift-labs/gateway

v1.2.3

11 Dec 04:22
Compare
Choose a tag to compare

Fixes

  • Failed txs return error code from txEvents endpoint #96

Changes

  • Updated to support program version 2.103.0

v1.2.2

06 Dec 17:35
5aa8c6a
Compare
Choose a tag to compare

Fixes

  • Make --extra-rpcs non-optional (again)
  • handle margin calculations for accounts in high-leverage mode

v1.2.1

22 Nov 15:38
Compare
Choose a tag to compare

Fixes:

  • fix issue where --extra-rpcs was non-optional

v1.2.0

11 Nov 05:34
Compare
Choose a tag to compare

Changes

  • endpoints which send txs now accept a ?ttl=<SECONDS> parameter to control how long gateway will rebroadcast a tx until it is either confirmed or timed out (see #88) by default this is 4s/~10 slots

  • New flag --extra-rpcs used to allow gateway to broadcast txs via multiple RPC providers simultaneously. This can help to improve a txs chance of confirmation (#67)

v1.1.1

24 Oct 04:38
32b31af
Compare
Choose a tag to compare

Fixes

  • allow gateway to fallback to network queries when a market/oracle subscriptions does not exist ("it just works")
  • users can debug slow queries with --verbose
    e.g. in the following output the query is making network fetch for perp market 24.
[2024-10-24T03:47:58Z INFO  gateway] 127.0.0.1 | 200 | GET /v2/positionInfo/24 HTTP/1.1 | (546.571000ms)
[2024-10-24T03:48:01Z DEBUG rpc] fetch market: perp/24
[2024-10-24T03:48:01Z DEBUG rpc] fetch oracle account: perp/24

starting gateway with --markets jup-perp (i.e perp/24) would improve performance

v1.1.0

23 Oct 03:49
577f709
Compare
Choose a tag to compare

This release greatly reduces the number of network connections made by gateway.

Users can provide the new flag --markets sol-perp,sol,wbtc on startup to indicate which markets will be traded.
Gateway will use these flags and any open positions to determine appropriate network subscriptions.

Changes

  • Gateway makes minimal network subscriptions by default. Alleviates the issue with user's facing 429s / rate limits (#86 )
  • INIT_RPC_THROTTLE env can be set to some int (in seconds) to control request rate during gateway start phase

v1.0.4

04 Oct 02:57
Compare
Choose a tag to compare

Changes

  • adds a priority fee subscriber, before it was on-demand. should reduce latency for tx sending endpoints
  • Built from drift-rs 1.0 release
    • anchor-lang version unpinned
    • solana-client crates updated to v2.x.x versions

Fixes

  • Allows support for more RPC providers e.g. helius non-dedicated plans, quicknode (#52). less reliance on getProgramAccounts

Other

  • Gateway can be built with any rust stable version. no more requirement for <= 1.76.0
    however, requirement for x86_64 arch/toolchain remains

v1.0.3

23 Sep 03:28
9980077
Compare
Choose a tag to compare

Fix:

  • empty USDC spot position causing issue for margin calc (fix: #75)

v1.0.2

19 Sep 04:05
0c5ad06
Compare
Choose a tag to compare

Replace RPC queries with Ws backed datastructures (#74)

  • Noticeable improvement speed to most endpoints
  • Reduces load on RPC servers (may see less 429s)

v1.0.1

21 Aug 02:58
14c8e20
Compare
Choose a tag to compare

QoL updates for event subscription

  • allow more backpressure
  • fix issue where events with empty tx signatures were returned