Maintenance
Maintenance
Request Parameter
| Parameter | Type | Meaning |
|---|---|---|
| account | Account | Account |
Result Reponse
| Parameter | Type | Meaning |
|---|---|---|
| isSuccess | bool | Interface result |
| data | MaintenanceData | MaintenanceData is returned |
| message | string | isSuccess = False error description is returned |
MaintenanceData Parameter
Return type : Object
| Parameter | Type | Meaning |
|---|---|---|
| > date | string | Query Date |
| > branchNo | string | Branch Number |
| > account | string | Account |
| > maintenanceSummary | list | Object |
| >> marginValue | int | Total Margin Value |
| >> shortsellValue | int | Total Short Sell Value |
| >> shortsellMargin | int | Total Short sell Margin Amount |
| >> collateral | int | Collateral |
| >> marginLoanAmt | int | Total Margin Loan Amount |
| >> maintenanceRatio | double | Account Maintenance Ratio |
| > MaintenanceDetail | list | Object |
| >> stockNo | string | Symbol |
| >> orderNo | string | Order Number |
| >> orderType | OrderType | Order Type : Stock 、 Margin 、 Short Short sale 、 DayTrade 、 SBL |
| >> quantity | int | Hoding Share |
| >> price | double | Calculated Price |
| >> costPrice | double | Cost Price |
| >> shortsellMargin | int | Short Sell Margin |
| >> collateral | int | Collateral |
| >> marginLoanAmt | int | Margin Loan Amount |
| >> maintenanceRatio | double | Maintenance Ratio |
| >> collateralInterest | double | Collateral Interest |
| >> marginInterest | double | Margin Interest |
| >> shortsellInterest | double | Short Sell Interest |
Request Example
Console.WriteLine(sdk.Accounting.Maintenance(target_user));
Response Example
{
isSuccess = True,
data = MaintenanceData {
date = 2024/02/27, // Query Date (string)
branchNo = 6460, // Branch Number (string)
account = 26, // Account (string)
maintenanceSummary = {
marginValue = 3135000, // Total Margin Value (int)
shortsellValue = 0, // Total Short Sell Value (int)
shortsellMargin = 0, // Total Short Sell Margin Amount (int)
collateral = 0, // Collateral (int)
marginLoanAmt = 1494000, // Total Margin Loan Amount (int)
maintenanceRatio = 209.83 // Account Maintenance Ratio (double)
},
maintenanceDetail = [{
stockNo = 2603, // Symbol (string)
orderNo = x4580, // Order Number (string)
orderType = Stock, // Order Type (OrderType)
quantity = 10000, // Holding Share (int)
price = 152.5, // Calculated Price (double)
costPrice = 119, // Cost Price (double)
shortsellMargin = 0, // Short Sell Margin (int)
collateral = 0, // Collateral (int)
marginLoanAmt = 0, // Margin Loan Amount (int)
maintenanceRatio = 213.58, // Maintenance Ratio (double)
collateralInterest = 0, // Collateral Interest (double)
marginInterest = 20818, // Margin Interest (double)
shortsellInterest = 0 // Short Sell Interest (double)
},
...
],
}
}