Class: TradingSdk
Constructors
constructor
• new TradingSdk(traderParams?
, options?
): TradingSdk
Parameters
Name | Type |
---|---|
traderParams | Partial <TraderParameters > |
options | Partial <TradingSdkOptions > |
Returns
Defined in
external/cow-sdk/src/trading/tradingSdk.ts:28
Properties
options
• Readonly
options: Partial
<TradingSdkOptions
> = {}
Defined in
external/cow-sdk/src/trading/tradingSdk.ts:30
traderParams
• traderParams: Partial
<TraderParameters
> = {}
Defined in
external/cow-sdk/src/trading/tradingSdk.ts:29
Methods
getPreSignTransaction
▸ getPreSignTransaction(params
): Promise
<TransactionParams
>
Parameters
Name | Type |
---|---|
params | WithPartialTraderParams <{ account : string ; orderId : string }> |
Returns
Promise
<TransactionParams
>
Defined in
external/cow-sdk/src/trading/tradingSdk.ts:110
getQuote
▸ getQuote(params
, advancedSettings?
): Promise
<QuoteAndPost
>
Parameters
Name | Type |
---|---|
params | WithPartialTraderParams <TradeParameters > |
advancedSettings? | SwapAdvancedSettings |
Returns
Promise
<QuoteAndPost
>
Defined in
external/cow-sdk/src/trading/tradingSdk.ts:43
getQuoteResults
▸ getQuoteResults(params
, advancedSettings?
): Promise
<QuoteResultsWithSigner
>
Parameters
Name | Type |
---|---|
params | WithPartialTraderParams <TradeParameters > |
advancedSettings? | SwapAdvancedSettings |
Returns
Promise
<QuoteResultsWithSigner
>
Defined in
external/cow-sdk/src/trading/tradingSdk.ts:68
mergeParams
▸ mergeParams<T
>(params
): T
& TraderParameters
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
params | T & Partial <TraderParameters > |
Returns
T
& TraderParameters
Defined in
external/cow-sdk/src/trading/tradingSdk.ts:119
postLimitOrder
▸ postLimitOrder(params
, advancedSettings?
): Promise
<OrderPostingResult
>
Parameters
Name | Type |
---|---|
params | WithPartialTraderParams <LimitTradeParameters > |
advancedSettings? | LimitOrderAdvancedSettings |
Returns
Promise
<OrderPostingResult
>
Defined in
external/cow-sdk/src/trading/tradingSdk.ts:82
postSellNativeCurrencyOrder
▸ postSellNativeCurrencyOrder(params
, advancedSettings?
): Promise
<Promise
<OrderPostingResult
>>
Parameters
Name | Type |
---|---|
params | WithPartialTraderParams <TradeParameters > |
advancedSettings? | SwapAdvancedSettings |
Returns
Promise
<Promise
<OrderPostingResult
>>
Defined in
external/cow-sdk/src/trading/tradingSdk.ts:89
postSwapOrder
▸ postSwapOrder(params
, advancedSettings?
): Promise
<OrderPostingResult
>
Parameters
Name | Type |
---|---|
params | WithPartialTraderParams <TradeParameters > |
advancedSettings? | SwapAdvancedSettings |
Returns
Promise
<OrderPostingResult
>
Defined in
external/cow-sdk/src/trading/tradingSdk.ts:75
setTraderParams
▸ setTraderParams(params
): TradingSdk
Parameters
Name | Type |
---|---|
params | Partial <TraderParameters > |
Returns
Defined in
external/cow-sdk/src/trading/tradingSdk.ts:37