Skip to main content
Deno 2 is finally here 🎉️
Learn more
class TraderCallbacks
implements OnLoad, OnUpdate
import { TraderCallbacks } from "https://deno.land/x/sptaki@1.2.0/callbacks/mod.ts";

Constructors

new
TraderCallbacks(httpResponse: HttpResponseUtil, traderController: TraderController)

Properties

protected
httpResponse: HttpResponseUtil
protected
traderController: TraderController

Methods

getAssort(
url: string,
sessionID: string,
): IGetBodyResponseData<ITraderAssort>

Handle client/trading/api/getTraderAssort

getRoute(): string
getTrader(
url: string,
sessionID: string,
): IGetBodyResponseData<ITraderBase>

Handle client/trading/api/getTrader

getTraderSettings(
url: string,
sessionID: string,
): IGetBodyResponseData<ITraderBase[]>

Handle client/trading/api/traderSettings

onLoad(): Promise<void>
onUpdate(): Promise<boolean>