• TradesApi - functional programming interface

    Parameters

    Returns {
        broadcastTrade(walletId, addressId, tradeId, broadcastTradeRequest, options?): Promise<((axios?, basePath?) => AxiosPromise<Trade>)>;
        createTrade(walletId, addressId, createTradeRequest, options?): Promise<((axios?, basePath?) => AxiosPromise<Trade>)>;
        getTrade(walletId, addressId, tradeId, options?): Promise<((axios?, basePath?) => AxiosPromise<Trade>)>;
        listTrades(walletId, addressId, limit?, page?, options?): Promise<((axios?, basePath?) => AxiosPromise<TradeList>)>;
    }

    • broadcastTrade:function
      • Broadcast a trade

        Parameters

        • walletId: string

          The ID of the wallet the address belongs to

        • addressId: string

          The ID of the address the trade belongs to

        • tradeId: string

          The ID of the trade to broadcast

        • broadcastTradeRequest: BroadcastTradeRequest
        • Optional options: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?, basePath?) => AxiosPromise<Trade>)>

        Summary

        Broadcast a trade

        Throws

    • createTrade:function
      • Create a new trade

        Parameters

        • walletId: string

          The ID of the wallet the source address belongs to

        • addressId: string

          The ID of the address to conduct the trade from

        • createTradeRequest: CreateTradeRequest
        • Optional options: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?, basePath?) => AxiosPromise<Trade>)>

        Summary

        Create a new trade for an address

        Throws

    • getTrade:function
      • Get a trade by ID

        Parameters

        • walletId: string

          The ID of the wallet the address belongs to

        • addressId: string

          The ID of the address the trade belongs to

        • tradeId: string

          The ID of the trade to fetch

        • Optional options: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?, basePath?) => AxiosPromise<Trade>)>

        Summary

        Get a trade by ID

        Throws

    • listTrades:function
      • List trades for an address.

        Parameters

        • walletId: string

          The ID of the wallet the address belongs to

        • addressId: string

          The ID of the address to list trades for

        • Optional limit: number

          A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.

        • Optional page: string

          A cursor for pagination across multiple pages of results. Don&#39;t include this parameter on the first call. Use the next_page value returned in a previous response to request subsequent results.

        • Optional options: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?, basePath?) => AxiosPromise<TradeList>)>

        Summary

        List trades for an address.

        Throws

    Export