Query Day Trade and Pre-collection Information
daytradeAndStockInfo
Input Parameters
| Parameter | Type | Meaning |
|---|---|---|
| account | Account | Account |
| stockNo | string | Symbol |
Result
| Parameter | Type | Meaning |
|---|---|---|
| isSuccess | bool | Whether successful |
| data | Object | DayTradeStockInfo list is returned |
| message | string ? (optional) | Error message returned when isSuccess = false |
DayTradeStockInfo Parameter
Return type : Object
| Parameter | Type | Meaning |
|---|---|---|
| stockNo | string | Symbol |
| date | string | Query Date |
| daytradeOrigQuota | number | Original Short Daytrade Quota |
| daytradeTradableQuota | number | Available Short Daytrade Quota |
| precollectSingle | number | Pre-collected for single order |
| precollectAccumulate | number | Pre-collected for accumulate order |
| status | number | Status (bitmask type ) 0 :All forbidden, 1:Exempted from margin short selling price constraint,2: Exempted from SBL short selling price constraint, 4: Available sale after buy day trading, 8: Available buy after sale day trading |
| dispositionStatus | string | Disposition Status { SETTYPE : 1} : Full-Cash-Delivery, { MARK-W : 1} : Warning,{ MARK-P : 1} : Attention,{ MARK-L : 1} : Order Placement Restricted (New field for version >=2.2.5) |
info
Status example: status 15 means all four capabilities are enabled (1 + 2 + 4 + 8).
Status 12 means buy-first and sell-first day trading are enabled (4 + 8).
Request Example
sdk.stock.daytradeAndStockInfo(account, "2330")
Response Example
{
isSuccess: true,
data: {
stockNo: '2330',
date: '2023/10/24',
daytradeOrigQuota: 0,
daytradeTradableQuota: 0,
status: 0
}
}