ston-fi / sdk

SDK for building applications on STON.fi protocol

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

There is no way to get `priceImpact`

troman29 opened this issue · comments

commented

Hello developers. Your SDK lacks the priceImpact calculation.

This SDK is a thin wrapper on the contracts and doesn't provide any additional logic.

To get additional data (such as price impact calculation), you can use our public REST API

The method you are probably interested in is /v1/swap/simulate or v1/reverse_swap/simulate. You can get more information about these methods in Swagger