forwarder/trade.pbserver
library
Classes
-
AccountBalance
-
status(FetchStatus): 資料回傳狀態
acc_balance(float): 餘額
date(str): 查詢日期
errmsg(str): 錯誤訊息
-
FutureOrderDetail
-
-
FuturePosition
-
-
FuturePositionArr
-
-
Margin
-
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): 有價品額
-
OddStockOrderDetail
-
-
OptionOrderDetail
-
-
OrderID
-
-
Settlement
-
date(datetime.date): 交割日期
amount(float): 交割金額
T(int): Tday
-
SettlementList
-
-
StockOrderDetail
-
-
StockPosition
-
id (int): position id
code (str): contract id
direction (Action): action {Buy, Sell}
quantity (int): quantity
price (float): the average price
last_price (float): last price
pnl (float): unrealized profit
yd_quantity (int): yesterday
cond (StockOrderCond): Default Cash {Cash(現股), Netting(餘額交割),
MarginTrading(融資),ShortSelling(融券), Emerging(興櫃)}
margin_purchase_amount (int): margin_purchase_amount
collateral (int): collateral
short_sale_margin (int): short_sale_margin
interest (int): interest
StockPosition(id = 0, code = '2344', direction = <Action.Buy: 'Buy'>,
quantity = 10, price = 28.3, last_price = 27.1, pnl = -15.0, yd_quantity =
10, margin_purchase_amount = 0, collateral = 0, short_sale_margin = 0,
interest = 0)
-
StockPositionArr
-
-
StockPositionDetail
-
StockPositionDetail(date = '2024-01-04', code = '2344', quantity = 0, price =
147.0, last_price = 134.0, dseq = 'IC320', direction = <Action.Buy: 'Buy'>,
pnl = -13.0, currency = <Currency.TWD: 'TWD'>, fee = 1.0)
-
TradeInterfaceApi
-
-
TradeInterfaceServiceBase
-
-
TradeResult
-