Margin class

status(FetchStatus): 資料回傳狀態 yesterday_balance(float): 前日餘額 today_balance(float): 今日餘額 deposit_withdrawal(float): 存提 fee(float): 手續費 tax(float): 期交稅 initial_margin(float): 原始保證金 maintenance_margin(float): 維持保證金 margin_call(float): 追繳保證金 risk_indicator(float): 風險指標 royalty_revenue_expenditure(float): 權利金收入與支出 equity(float): 權益數 equity_amount(float): 權益總值 option_openbuy_market_value(float): 未沖銷買方選擇權市值 option_opensell_market_value(float): 未沖銷賣方選擇權市值 option_open_position(float): 參考未平倉選擇權損益 option_settle_profitloss(float): 參考選擇權平倉損益 future_open_position(float): 未沖銷期貨浮動損益 today_future_open_position(float): 參考當日未沖銷期貨浮動損益 future_settle_profitloss(float): 期貨平倉損益 available_margin(float): 可動用(出金) 保證金 plus_margin(float): 依「加收保證金指標」所加收之保證金 plus_margin_indicator(float): 加收保證金指標 security_collateral_amount(float): 有價證券抵繳總額 order_margin_premium(float): 委託保證金及委託權利金 collateral_amount(float): 有價品額

Inheritance
  • Object
  • GeneratedMessage
  • Margin

Constructors

Margin({String? status, double? yesterdayBalance, double? todayBalance, double? depositWithdrawal, double? fee, double? tax, double? initialMargin, double? maintenanceMargin, double? marginCall, double? riskIndicator, double? royaltyRevenueExpenditure, double? equity, double? equityAmount, double? optionOpenbuyMarketValue, double? optionOpensellMarketValue, double? optionOpenPosition, double? optionSettleProfitloss, double? futureOpenPosition, double? todayFutureOpenPosition, double? futureSettleProfitloss, double? availableMargin, double? plusMargin, double? plusMarginIndicator, double? securityCollateralAmount, double? orderMarginPremium, double? collateralAmount})
factory
Margin.fromBuffer(List<int> i, [ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY])
factory
Margin.fromJson(String i, [ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY])
factory

Properties

availableMargin ↔ double
getter/setter pair
collateralAmount ↔ double
getter/setter pair
depositWithdrawal ↔ double
getter/setter pair
equity ↔ double
getter/setter pair
equityAmount ↔ double
getter/setter pair
eventPlugin → EventPlugin?
Subclasses can override this getter to be notified of changes to protobuf fields.
no setterinherited
fee ↔ double
getter/setter pair
futureOpenPosition ↔ double
getter/setter pair
futureSettleProfitloss ↔ double
getter/setter pair
hashCode → int
Calculates a hash code based on the contents of the protobuf.
no setterinherited
info_ → BuilderInfo
no setteroverride
initialMargin ↔ double
getter/setter pair
isFrozen → bool
Returns true if this message is marked read-only. Otherwise false.
no setterinherited
maintenanceMargin ↔ double
getter/setter pair
marginCall ↔ double
getter/setter pair
optionOpenbuyMarketValue ↔ double
getter/setter pair
optionOpenPosition ↔ double
getter/setter pair
optionOpensellMarketValue ↔ double
getter/setter pair
optionSettleProfitloss ↔ double
getter/setter pair
orderMarginPremium ↔ double
getter/setter pair
plusMargin ↔ double
getter/setter pair
plusMarginIndicator ↔ double
getter/setter pair
riskIndicator ↔ double
getter/setter pair
royaltyRevenueExpenditure ↔ double
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
securityCollateralAmount ↔ double
getter/setter pair
status ↔ String
getter/setter pair
tax ↔ double
getter/setter pair
todayBalance ↔ double
getter/setter pair
todayFutureOpenPosition ↔ double
getter/setter pair
unknownFields → UnknownFieldSet
no setterinherited
yesterdayBalance ↔ double
getter/setter pair

Methods

addExtension(Extension extension, Object? value) → void
Adds an extension field value to a repeated field.
inherited
check() → void
inherited
clear() → void
Clears all data that was set in this message.
inherited
clearAvailableMargin() → void
clearCollateralAmount() → void
clearDepositWithdrawal() → void
clearEquity() → void
clearEquityAmount() → void
clearExtension(Extension extension) → void
Clears an extension field and also removes the extension.
inherited
clearFee() → void
clearField(int tagNumber) → void
Clears the contents of a given field.
inherited
clearFutureOpenPosition() → void
clearFutureSettleProfitloss() → void
clearInitialMargin() → void
clearMaintenanceMargin() → void
clearMarginCall() → void
clearOptionOpenbuyMarketValue() → void
clearOptionOpenPosition() → void
clearOptionOpensellMarketValue() → void
clearOptionSettleProfitloss() → void
clearOrderMarginPremium() → void
clearPlusMargin() → void
clearPlusMarginIndicator() → void
clearRiskIndicator() → void
clearRoyaltyRevenueExpenditure() → void
clearSecurityCollateralAmount() → void
clearStatus() → void
clearTax() → void
clearTodayBalance() → void
clearTodayFutureOpenPosition() → void
clearYesterdayBalance() → void
clone() → Margin
Creates a deep copy of the fields in this message. (The generated code uses mergeFromMessage.)
override
copyWith(void updates(Margin)) → Margin
Apply updates to a copy of this message.
override
createEmptyInstance() → Margin
Creates an empty instance of the same message type as this.
override
createMapField<K, V>(int tagNumber, MapFieldInfo<K, V> fi) → Map<K, V>
Creates a Map representing a map field.
inherited
createRepeatedField<T>(int tagNumber, FieldInfo<T> fi) → List<T>
Creates List implementing a mutable repeated field.
inherited
extensionsAreInitialized() → bool
inherited
freeze() → GeneratedMessage
Make this message read-only.
inherited
getDefaultForField(int tagNumber) → dynamic
Returns the default value for the given field.
inherited
getExtension(Extension extension) → dynamic
Returns the value of extension.
inherited
getField(int tagNumber) → dynamic
Returns the value of the field associated with tagNumber, or the default value if it is not set.
inherited
getFieldOrNull(int tagNumber) → dynamic
Returns the value of a field, ignoring any defaults.
inherited
getTagNumber(String fieldName) → int?
inherited
hasAvailableMargin() → bool
hasCollateralAmount() → bool
hasDepositWithdrawal() → bool
hasEquity() → bool
hasEquityAmount() → bool
hasExtension(Extension extension) → bool
Returns true if a value of extension is present.
inherited
hasFee() → bool
hasField(int tagNumber) → bool
Whether this message has a field associated with tagNumber.
inherited
hasFutureOpenPosition() → bool
hasFutureSettleProfitloss() → bool
hasInitialMargin() → bool
hasMaintenanceMargin() → bool
hasMarginCall() → bool
hasOptionOpenbuyMarketValue() → bool
hasOptionOpenPosition() → bool
hasOptionOpensellMarketValue() → bool
hasOptionSettleProfitloss() → bool
hasOrderMarginPremium() → bool
hasPlusMargin() → bool
hasPlusMarginIndicator() → bool
hasRequiredFields() → bool
Whether the message has required fields.
inherited
hasRiskIndicator() → bool
hasRoyaltyRevenueExpenditure() → bool
hasSecurityCollateralAmount() → bool
hasStatus() → bool
hasTax() → bool
hasTodayBalance() → bool
hasTodayFutureOpenPosition() → bool
hasYesterdayBalance() → bool
isInitialized() → bool
Whether all required fields in the message and embedded messages are set.
inherited
mergeFromBuffer(List<int> input, [ExtensionRegistry extensionRegistry = ExtensionRegistry.EMPTY]) → void
Merges serialized protocol buffer data into this message.
inherited
mergeFromCodedBufferReader(CodedBufferReader input, [ExtensionRegistry extensionRegistry = ExtensionRegistry.EMPTY]) → void
inherited
mergeFromJson(String data, [ExtensionRegistry extensionRegistry = ExtensionRegistry.EMPTY]) → void
Merges field values from data, a JSON object, encoded as described by GeneratedMessage.writeToJson.
inherited
mergeFromJsonMap(Map<String, dynamic> json, [ExtensionRegistry extensionRegistry = ExtensionRegistry.EMPTY]) → void
Merges field values from a JSON object represented as a Dart map.
inherited
mergeFromMessage(GeneratedMessage other) → void
Merges the contents of the other into this message.
inherited
mergeFromProto3Json(Object? json, {TypeRegistry typeRegistry = const TypeRegistry.empty(), bool ignoreUnknownFields = false, bool supportNamesWithUnderscores = true, bool permissiveEnums = false}) → void
Merges field values from json, a JSON object using proto3 encoding.
inherited
mergeUnknownFields(UnknownFieldSet unknownFieldSet) → void
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setExtension(Extension extension, Object value) → void
Sets the value of a non-repeated extension field to value.
inherited
setField(int tagNumber, Object value) → void
Sets the value of a field by its tagNumber.
inherited
toBuilder() → GeneratedMessage
Creates a writable, shallow copy of this message.
inherited
toDebugString() → String
Returns a String representation of this message.
inherited
toProto3Json({TypeRegistry typeRegistry = const TypeRegistry.empty()}) → Object?
Returns an Object representing Proto3 JSON serialization of this.
inherited
toString() → String
Returns a String representation of this message.
inherited
writeToBuffer() → Uint8List
inherited
writeToCodedBufferWriter(CodedBufferWriter output) → void
inherited
writeToJson() → String
Returns a JSON string that encodes this message.
inherited
writeToJsonMap() → Map<String, dynamic>
Returns the JSON encoding of this message as a Dart Map.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

create() → Margin
createRepeated() → PbList<Margin>
getDefault() → Margin