Skip to content

Send Trading Report

Overview

sendTradingReport API is used to send the trading financial report for a period to the Conio user via email. The available periods can be retrieved with Get Available Trading Reports.

Params

The SendTradingReportParams used to initialize and perform sendTradingReport API.

Result

Success or error.

Code

iOS

let params = SendTradingReportParams.make(
    period: TradingReportPeriod.make(year: "2025")
)

tradingInfoService
    .sendTradingReport(with: params)
    .asPublisher()
    .sink { result in
        switch result {
        case .success:
            // the report has been sent via email
            break
        case .failure(let error):
            // handle the error
            break
        }
    }

Android

val params = SendTradingReportParams(
    period = TradingReportPeriod(year = "2025", quarter = null)
)

conio.tradingInfoService
    .sendTradingReport(params)
    .asFlow()
    .collect { result ->
        // check the result: success or error
    }