Skip to main content

Maintenance

Maintenance

Request Parameter

ParameterTypeMeaning
accountAccountAccount

Result Reponse

ParameterTypeMeaning
isSuccessboolInterface result
dataMaintenanceDataMaintenanceData is returned
messagestringisSuccess = False error description is returned

MaintenanceData Parameter

Return type : Object

ParameterTypeMeaning
> datestringQuery Date
> branchNostringBranch Number
> accountstringAccount
> maintenanceSummarylistObject
>> marginValueintTotal Margin Value
>> shortsellValueintTotal Short Sell Value
>> shortsellMarginintTotal Short sell Margin Amount
>> collateralintCollateral
>> marginLoanAmtintTotal Margin Loan Amount
>> maintenanceRatiodoubleAccount Maintenance Ratio
> MaintenanceDetaillistObject
>> stockNostringSymbol
>> orderNostringOrder Number
>> orderTypeOrderTypeOrder Type : StockMarginShort Short sale 、 DayTradeSBL
>> quantityintHoding Share
>> pricedoubleCalculated Price
>> costPricedoubleCost Price
>> shortsellMarginintShort Sell Margin
>> collateralintCollateral
>> marginLoanAmtintMargin Loan Amount
>> maintenanceRatiodoubleMaintenance Ratio
>> collateralInterestdoubleCollateral Interest
>> marginInterestdoubleMargin Interest
>> shortsellInterestdoubleShort 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)
},
...
],
}
}