Skip to content

Commit

Permalink
small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
NourAlharithi committed Feb 21, 2025
1 parent 825a304 commit 85a6249
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/includes/_fastlane.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Endpoints:
mainnet-beta: [https://fastlane.drift.trade/](https://fastlane.drift.trade/)
devnet: [https://master.fastlane.drift.trade/](https://master.fastlane.drift.trade/)

## Signing Messages
## Takers: Signing Order Messages

Fastlane relies on takers signing messages to send orders. This happens under the hood in the UI, but for programmatic traders, the best way to do this is via the DriftClient. In order to render useful messages to wallet providers, the process of encoding OrderParmas is quite involved -- so we recommend using the DriftClient utility functions. See the typescript example on how to do this.

Expand Down Expand Up @@ -45,7 +45,7 @@ const { orderParams: message, signature } =
driftClient.signSignedMsgOrderParamsMessage(orderMessage);
```

## Sending orders (/orders)
### Sending orders (/orders)

To submit an order to Fastlane, submit a POST request to the /orders path.

Expand Down Expand Up @@ -76,9 +76,9 @@ const response = await axios.default.post(
);
```

## Subscribing to Orders as a Market Maker
## Makers: Subscribing to Orders Messages

Drift sdks offer a FastlaneOrderSubscriber as a wrapper around the Fastlane websocket to easily subscribe to fastlane orders. Traders can also subscribe directly to the websocket feed and access trades that way.
Drift sdks offer a FastlaneOrderSubscriber as a wrapper around the Fastlane websocket to easily subscribe to fastlane orders. Traders can also subscribe directly to the websocket feed and gain access to trades that way.

To start receiving messages from the fastlane server, you must authenticate your connection with your wallet by signing a nonce sent by the server. This all happens under the hood in the FastlaneOrderSubscriber, but examples for how to do this for direct connections are given below

Expand Down

0 comments on commit 85a6249

Please sign in to comment.