Package tbdex.sdk.httpserver.handlers
Class SubmitOrderKt
-
- All Implemented Interfaces:
public final class SubmitOrderKt
-
-
Method Summary
Modifier and Type Method Description final static UnitsubmitOrder(ApplicationCall call, ExchangesApi exchangesApi, SuspendFunction2<ApplicationCall, Order, Unit> callback, Order order)Handles the submission of an order by parsing the incoming message, validating the submission, and executing the specified callback if provided. -
-
Method Detail
-
submitOrder
final static Unit submitOrder(ApplicationCall call, ExchangesApi exchangesApi, SuspendFunction2<ApplicationCall, Order, Unit> callback, Order order)
Handles the submission of an order by parsing the incoming message, validating the submission, and executing the specified callback if provided.
- Parameters:
call- The ApplicationCall instance representing the HTTP call.exchangesApi- The ExchangesApi instance for interacting with TBDex exchanges.callback- The optional callback function to be executed after successful order submission.
-
-
-
-