@cryptorubic/sdk
Advanced tools
Comparing version 0.0.6 to 0.0.7
{ | ||
"name": "@cryptorubic/sdk", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"dependencies": { | ||
@@ -5,0 +5,0 @@ "tslib": "^2.3.0" |
import { IntegratorAddress } from "../../core/sdk/models/integrator-address"; | ||
import { QuoteRequestInterface, QuoteTradeInterface } from "@cryptorubic/core"; | ||
import { QuoteRequestInterface, QuoteTradeInterface, WsQuoteRequestInterface } from "@cryptorubic/core"; | ||
import { Trade } from "./trade"; | ||
import { Observable } from "rxjs"; | ||
import { WrappedTrade } from "./models/wrapped-trade"; | ||
export declare class Router { | ||
@@ -9,4 +11,6 @@ private readonly integratorAddress; | ||
quoteBest(tradeData: QuoteTradeInterface, options?: Omit<QuoteRequestInterface, keyof QuoteTradeInterface>): Promise<Trade>; | ||
runAsyncCalculation(params: WsQuoteRequestInterface): void; | ||
handleQuotesAsync(): Observable<WrappedTrade>; | ||
private getIntegratorAddress; | ||
private getQuoteOptions; | ||
} |
@@ -6,2 +6,3 @@ "use strict"; | ||
const transform_utils_1 = require("./utils/transform-utils"); | ||
const injector_1 = require("../../core/injector/injector"); | ||
class Router { | ||
@@ -23,2 +24,8 @@ constructor(integratorAddress) { | ||
} | ||
runAsyncCalculation(params) { | ||
injector_1.Injector.wsApiService.calculate(params); | ||
} | ||
handleQuotesAsync() { | ||
return injector_1.Injector.wsApiService.handleQuotesAsync(); | ||
} | ||
getIntegratorAddress(tradeData, integratorAddress) { | ||
@@ -25,0 +32,0 @@ if (integratorAddress) { |
40877
950