Skip to content

Commit

Permalink
one more
Browse files Browse the repository at this point in the history
  • Loading branch information
technicallyty committed Aug 5, 2024
1 parent 6531b6d commit ba68d62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion providers/apis/defi/raydium/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ For each ticker (i.e. RAY/SOL), we query 4 accounts:
* AMMInfo
* OpenOrders

To calculate the price, we need to get the base and quote token balances, subtract PNL feels, and finally add the value of open orders.
To calculate the price, we need to get the base and quote token balances, subtract PNL feels, and add the value of open orders.

With the above values, we calculate the price by dividing quote / base and multiplying by the scaling factor.

0 comments on commit ba68d62

Please sign in to comment.