Search
Preparing search index...
The search index is not available
@raydium-io/raydium-sdk
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
@raydium-io/raydium-sdk
Trade
Class Trade
Hierarchy
Trade
Index
Constructors
constructor
Methods
get
Best
Amount
In
get
Best
Amount
Out
group
Pools
make
Trade
Transaction
Constructors
constructor
new
Trade
(
)
:
Trade
Returns
Trade
Methods
Static
get
Best
Amount
In
get
Best
Amount
In
(
params
:
GetBestAmountInParams
)
:
{
amountIn
:
CurrencyAmount
;
currentPrice
:
null
|
Price
;
executionPrice
:
null
|
Price
;
maxAmountIn
:
CurrencyAmount
;
priceImpact
:
Percent
;
routeType
:
"amm"
;
routes
:
RouteInfo
[]
}
Get best amount in
Parameters
params:
GetBestAmountInParams
GetBestAmountInParams
Returns
{
amountIn
:
CurrencyAmount
;
currentPrice
:
null
|
Price
;
executionPrice
:
null
|
Price
;
maxAmountIn
:
CurrencyAmount
;
priceImpact
:
Percent
;
routeType
:
"amm"
;
routes
:
RouteInfo
[]
}
amount
In
:
CurrencyAmount
current
Price
:
null
|
Price
execution
Price
:
null
|
Price
max
Amount
In
:
CurrencyAmount
price
Impact
:
Percent
route
Type
:
"amm"
routes
:
RouteInfo
[]
Static
get
Best
Amount
Out
get
Best
Amount
Out
(
params
:
GetBestAmountOutParams
)
:
{
amountOut
:
CurrencyAmount
;
currentPrice
:
null
|
Price
;
executionPrice
:
null
|
Price
;
fee
:
CurrencyAmount
[]
;
fixedSide
:
string
;
minAmountOut
:
CurrencyAmount
;
priceImpact
:
Percent
;
routeType
:
"amm"
|
"route"
;
routes
:
RouteInfo
[]
}
Get best amount out
Parameters
params:
GetBestAmountOutParams
GetBestAmountOutParams
Returns
{
amountOut
:
CurrencyAmount
;
currentPrice
:
null
|
Price
;
executionPrice
:
null
|
Price
;
fee
:
CurrencyAmount
[]
;
fixedSide
:
string
;
minAmountOut
:
CurrencyAmount
;
priceImpact
:
Percent
;
routeType
:
"amm"
|
"route"
;
routes
:
RouteInfo
[]
}
amount
Out
:
CurrencyAmount
current
Price
:
null
|
Price
execution
Price
:
null
|
Price
fee
:
CurrencyAmount
[]
fixed
Side
:
string
min
Amount
Out
:
CurrencyAmount
price
Impact
:
Percent
route
Type
:
"amm"
|
"route"
routes
:
RouteInfo
[]
Static
group
Pools
group
Pools
(
pools
:
AmmSource
[]
)
:
AmmSource
[]
[]
Parameters
pools:
AmmSource
[]
Returns
AmmSource
[]
[]
Static
make
Trade
Transaction
make
Trade
Transaction
(
params
:
TradeTransactionParams
)
:
Promise
<
{
setupTransaction
:
null
|
UnsignedTransactionAndSigners
;
tradeTransaction
:
null
|
UnsignedTransactionAndSigners
}
>
Parameters
params:
TradeTransactionParams
Returns
Promise
<
{
setupTransaction
:
null
|
UnsignedTransactionAndSigners
;
tradeTransaction
:
null
|
UnsignedTransactionAndSigners
}
>
Exports
Trade
constructor
get
Best
Amount
In
get
Best
Amount
Out
group
Pools
make
Trade
Transaction
Get best amount in