Skip to main content

Class: TradingSdk

Constructors

constructor

new TradingSdk(traderParams): TradingSdk

Parameters

NameType
traderParamsTraderParameters

Returns

TradingSdk

Defined in

external/cow-sdk/src/trading/tradingSdk.ts:17

Properties

traderParams

Readonly traderParams: TraderParameters

Defined in

external/cow-sdk/src/trading/tradingSdk.ts:17

Methods

getPreSignTransaction

getPreSignTransaction(params): Promise<TransactionParams>

Parameters

NameType
paramsObject
params.accountstring
params.orderIdstring

Returns

Promise<TransactionParams>

Defined in

external/cow-sdk/src/trading/tradingSdk.ts:53


getQuote

getQuote(params, advancedSettings?): Promise<QuoteAndPost>

Parameters

NameType
paramsTradeParameters
advancedSettings?SwapAdvancedSettings

Returns

Promise<QuoteAndPost>

Defined in

external/cow-sdk/src/trading/tradingSdk.ts:19


mergeParams

mergeParams<T>(params): T & TraderParameters

Type parameters

Name
T

Parameters

NameType
paramsT

Returns

T & TraderParameters

Defined in

external/cow-sdk/src/trading/tradingSdk.ts:59


postLimitOrder

postLimitOrder(params, advancedSettings?): Promise<string>

Parameters

NameType
paramsLimitTradeParameters
advancedSettings?LimitOrderAdvancedSettings

Returns

Promise<string>

Defined in

external/cow-sdk/src/trading/tradingSdk.ts:32


postSellNativeCurrencyOrder

postSellNativeCurrencyOrder(params, advancedSettings?): Promise<Promise<{ orderId: string ; txHash: string }>>

Parameters

NameType
paramsTradeParameters
advancedSettings?SwapAdvancedSettings

Returns

Promise<Promise<{ orderId: string ; txHash: string }>>

Defined in

external/cow-sdk/src/trading/tradingSdk.ts:36


postSwapOrder

postSwapOrder(params, advancedSettings?): Promise<string>

Parameters

NameType
paramsTradeParameters
advancedSettings?SwapAdvancedSettings

Returns

Promise<string>

Defined in

external/cow-sdk/src/trading/tradingSdk.ts:28