/** * * @memberofLimitOrder * @description Get user nonce for signing * @methodgetNonce * @param{string} walletAddress * @returns{Promise<nonceResponse>} */getNonce(walletAddress: string): Promise<nonceResponse>;
getRemainingAmount
This function retrieves the remaining amount for a specific order using the Limit Order SDK. It queries the remaining amount using the LimitOrder.getRemainingAmount() method.
/** * * @memberofLimitOrder * @description Get remaining amount of order if maker allowed to partially fill * @methodgetRemainingAmount * @param{string} orderHash * @returns{Promise<string>} */getRemainingAmount(orderHash: string): Promise<string>;
getOrders
This function retrieves open orders using the Limit Order SDK. It constructs a filter object based on specified parameters and queries the orders using the LimitOrder.getOrders() method.
/** * * @memberofLimitOrder * @description Get open orders by filter * @methodgetOrders * @param{ordersFilter} [filter] * @returns{Promise<getOrdersResponse>} */getOrders(filter?: ordersFilter): Promise<getOrdersResponse>;
fillOrder
This function fills an order with a specified amount using the Limit Order SDK.
/** * * @memberofLimitOrder * @description Build calldata to fill order by order hash * @methodfillOrder * @param{string} orderHash * @returns{Promise<fillOrderResponse>} */fillOrder( orderHash: string, fill_amount?: string ): Promise<fillOrderResponse>;
signMessage
This function signs a message, typically an order, using the Limit Order SDK.
/** * * @memberofLimitOrder * @description Sign order message with Fibrous message standard * @methodsignMessage * @param{Order} order * @param{number} [nonce] * @returns{Promise<signMessageResponse>} */signMessage(order: Order, nonce?: number): Promise<signMessageResponse>;
placeOrder
This function places an order using the Limit Order SDK.
/** * * @memberofLimitOrder * @description Place order * @methodplaceOrder * @param{Order} order * @returns{Promise<placeOrderResponse>} */placeOrder(order: Order): Promise<placeOrderResponse>;
cancelOrder
Returns an Call object containing information about the cancel order transaction.