Class: TradingSdk
Constructors
constructor
• new TradingSdk(traderParams
): TradingSdk
Parameters
Name | Type |
---|---|
traderParams | TraderParameters |
Returns
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
Name | Type |
---|---|
params | Object |
params.account | string |
params.orderId | string |
Returns
Promise
<TransactionParams
>
Defined in
external/cow-sdk/src/trading/tradingSdk.ts:53
getQuote
▸ getQuote(params
, advancedSettings?
): Promise
<QuoteAndPost
>
Parameters
Name | Type |
---|---|
params | TradeParameters |
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
Name | Type |
---|---|
params | T |
Returns
T
& TraderParameters
Defined in
external/cow-sdk/src/trading/tradingSdk.ts:59
postLimitOrder
▸ postLimitOrder(params
, advancedSettings?
): Promise
<string
>
Parameters
Name | Type |
---|---|
params | LimitTradeParameters |
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
Name | Type |
---|---|
params | TradeParameters |
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
Name | Type |
---|---|
params | TradeParameters |
advancedSettings? | SwapAdvancedSettings |
Returns
Promise
<string
>
Defined in
external/cow-sdk/src/trading/tradingSdk.ts:28