dnse-sdk-openapi 1.4.4__tar.gz → 1.4.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {dnse_sdk_openapi-1.4.4 → dnse_sdk_openapi-1.4.5}/PKG-INFO +1 -1
- {dnse_sdk_openapi-1.4.4 → dnse_sdk_openapi-1.4.5}/dnse/websocket/models.py +0 -115
- {dnse_sdk_openapi-1.4.4 → dnse_sdk_openapi-1.4.5}/dnse_sdk_openapi.egg-info/PKG-INFO +1 -1
- {dnse_sdk_openapi-1.4.4 → dnse_sdk_openapi-1.4.5}/pyproject.toml +1 -1
- {dnse_sdk_openapi-1.4.4 → dnse_sdk_openapi-1.4.5}/README.md +0 -0
- {dnse_sdk_openapi-1.4.4 → dnse_sdk_openapi-1.4.5}/broker-api/get_list_care_by.py +0 -0
- {dnse_sdk_openapi-1.4.4 → dnse_sdk_openapi-1.4.5}/dnse/__init__.py +0 -0
- {dnse_sdk_openapi-1.4.4 → dnse_sdk_openapi-1.4.5}/dnse/api/_version.py +0 -0
- {dnse_sdk_openapi-1.4.4 → dnse_sdk_openapi-1.4.5}/dnse/api/client.py +0 -0
- {dnse_sdk_openapi-1.4.4 → dnse_sdk_openapi-1.4.5}/dnse/api/common.py +0 -0
- {dnse_sdk_openapi-1.4.4 → dnse_sdk_openapi-1.4.5}/dnse/websocket/_version.py +0 -0
- {dnse_sdk_openapi-1.4.4 → dnse_sdk_openapi-1.4.5}/dnse/websocket/auth.py +0 -0
- {dnse_sdk_openapi-1.4.4 → dnse_sdk_openapi-1.4.5}/dnse/websocket/client.py +0 -0
- {dnse_sdk_openapi-1.4.4 → dnse_sdk_openapi-1.4.5}/dnse/websocket/connection.py +0 -0
- {dnse_sdk_openapi-1.4.4 → dnse_sdk_openapi-1.4.5}/dnse/websocket/encoding.py +0 -0
- {dnse_sdk_openapi-1.4.4 → dnse_sdk_openapi-1.4.5}/dnse/websocket/exceptions.py +0 -0
- {dnse_sdk_openapi-1.4.4 → dnse_sdk_openapi-1.4.5}/dnse/websocket/py.typed +0 -0
- {dnse_sdk_openapi-1.4.4 → dnse_sdk_openapi-1.4.5}/dnse_sdk_openapi.egg-info/SOURCES.txt +0 -0
- {dnse_sdk_openapi-1.4.4 → dnse_sdk_openapi-1.4.5}/dnse_sdk_openapi.egg-info/dependency_links.txt +0 -0
- {dnse_sdk_openapi-1.4.4 → dnse_sdk_openapi-1.4.5}/dnse_sdk_openapi.egg-info/top_level.txt +0 -0
- {dnse_sdk_openapi-1.4.4 → dnse_sdk_openapi-1.4.5}/marketdata-api/get_foreign_trading.py +0 -0
- {dnse_sdk_openapi-1.4.4 → dnse_sdk_openapi-1.4.5}/marketdata-api/get_instruments.py +0 -0
- {dnse_sdk_openapi-1.4.4 → dnse_sdk_openapi-1.4.5}/marketdata-api/get_lastest_session.py +0 -0
- {dnse_sdk_openapi-1.4.4 → dnse_sdk_openapi-1.4.5}/marketdata-api/get_latest_quote.py +0 -0
- {dnse_sdk_openapi-1.4.4 → dnse_sdk_openapi-1.4.5}/marketdata-api/get_latest_trade.py +0 -0
- {dnse_sdk_openapi-1.4.4 → dnse_sdk_openapi-1.4.5}/marketdata-api/get_ohlc.py +0 -0
- {dnse_sdk_openapi-1.4.4 → dnse_sdk_openapi-1.4.5}/marketdata-api/get_quotes.py +0 -0
- {dnse_sdk_openapi-1.4.4 → dnse_sdk_openapi-1.4.5}/marketdata-api/get_security_definition.py +0 -0
- {dnse_sdk_openapi-1.4.4 → dnse_sdk_openapi-1.4.5}/marketdata-api/get_trades.py +0 -0
- {dnse_sdk_openapi-1.4.4 → dnse_sdk_openapi-1.4.5}/marketdata-api/get_trading_session.py +0 -0
- {dnse_sdk_openapi-1.4.4 → dnse_sdk_openapi-1.4.5}/marketdata-api/get_working_dates.py +0 -0
- {dnse_sdk_openapi-1.4.4 → dnse_sdk_openapi-1.4.5}/setup.cfg +0 -0
- {dnse_sdk_openapi-1.4.4 → dnse_sdk_openapi-1.4.5}/trading-api/cancel_order.py +0 -0
- {dnse_sdk_openapi-1.4.4 → dnse_sdk_openapi-1.4.5}/trading-api/close_position.py +0 -0
- {dnse_sdk_openapi-1.4.4 → dnse_sdk_openapi-1.4.5}/trading-api/create_trading_token.py +0 -0
- {dnse_sdk_openapi-1.4.4 → dnse_sdk_openapi-1.4.5}/trading-api/get_accounts.py +0 -0
- {dnse_sdk_openapi-1.4.4 → dnse_sdk_openapi-1.4.5}/trading-api/get_balances.py +0 -0
- {dnse_sdk_openapi-1.4.4 → dnse_sdk_openapi-1.4.5}/trading-api/get_close_price.py +0 -0
- {dnse_sdk_openapi-1.4.4 → dnse_sdk_openapi-1.4.5}/trading-api/get_corporate_action_history.py +0 -0
- {dnse_sdk_openapi-1.4.4 → dnse_sdk_openapi-1.4.5}/trading-api/get_execution_detail.py +0 -0
- {dnse_sdk_openapi-1.4.4 → dnse_sdk_openapi-1.4.5}/trading-api/get_loan_packages.py +0 -0
- {dnse_sdk_openapi-1.4.4 → dnse_sdk_openapi-1.4.5}/trading-api/get_order_detail.py +0 -0
- {dnse_sdk_openapi-1.4.4 → dnse_sdk_openapi-1.4.5}/trading-api/get_order_history.py +0 -0
- {dnse_sdk_openapi-1.4.4 → dnse_sdk_openapi-1.4.5}/trading-api/get_orders.py +0 -0
- {dnse_sdk_openapi-1.4.4 → dnse_sdk_openapi-1.4.5}/trading-api/get_position_by_id.py +0 -0
- {dnse_sdk_openapi-1.4.4 → dnse_sdk_openapi-1.4.5}/trading-api/get_positions.py +0 -0
- {dnse_sdk_openapi-1.4.4 → dnse_sdk_openapi-1.4.5}/trading-api/get_ppse.py +0 -0
- {dnse_sdk_openapi-1.4.4 → dnse_sdk_openapi-1.4.5}/trading-api/post_order.py +0 -0
- {dnse_sdk_openapi-1.4.4 → dnse_sdk_openapi-1.4.5}/trading-api/put_order.py +0 -0
- {dnse_sdk_openapi-1.4.4 → dnse_sdk_openapi-1.4.5}/trading-api/send_email_otp.py +0 -0
- {dnse_sdk_openapi-1.4.4 → dnse_sdk_openapi-1.4.5}/websocket-marketdata/estimated_market_index.py +0 -0
- {dnse_sdk_openapi-1.4.4 → dnse_sdk_openapi-1.4.5}/websocket-marketdata/expected_price.py +0 -0
- {dnse_sdk_openapi-1.4.4 → dnse_sdk_openapi-1.4.5}/websocket-marketdata/foreign_investor.py +0 -0
- {dnse_sdk_openapi-1.4.4 → dnse_sdk_openapi-1.4.5}/websocket-marketdata/market_index.py +0 -0
- {dnse_sdk_openapi-1.4.4 → dnse_sdk_openapi-1.4.5}/websocket-marketdata/ohlc.py +0 -0
- {dnse_sdk_openapi-1.4.4 → dnse_sdk_openapi-1.4.5}/websocket-marketdata/ohlc_closed.py +0 -0
- {dnse_sdk_openapi-1.4.4 → dnse_sdk_openapi-1.4.5}/websocket-marketdata/quote.py +0 -0
- {dnse_sdk_openapi-1.4.4 → dnse_sdk_openapi-1.4.5}/websocket-marketdata/sec_def.py +0 -0
- {dnse_sdk_openapi-1.4.4 → dnse_sdk_openapi-1.4.5}/websocket-marketdata/session.py +0 -0
- {dnse_sdk_openapi-1.4.4 → dnse_sdk_openapi-1.4.5}/websocket-marketdata/trade.py +0 -0
- {dnse_sdk_openapi-1.4.4 → dnse_sdk_openapi-1.4.5}/websocket-marketdata/trade_extra.py +0 -0
- {dnse_sdk_openapi-1.4.4 → dnse_sdk_openapi-1.4.5}/websocket-trading/broker_order.py +0 -0
- {dnse_sdk_openapi-1.4.4 → dnse_sdk_openapi-1.4.5}/websocket-trading/broker_position.py +0 -0
- {dnse_sdk_openapi-1.4.4 → dnse_sdk_openapi-1.4.5}/websocket-trading/order.py +0 -0
- {dnse_sdk_openapi-1.4.4 → dnse_sdk_openapi-1.4.5}/websocket-trading/position.py +0 -0
|
@@ -54,7 +54,6 @@ def parse_timestamp(v: Any, date_only: bool = False) -> Optional[str]:
|
|
|
54
54
|
except Exception:
|
|
55
55
|
return None
|
|
56
56
|
|
|
57
|
-
|
|
58
57
|
@dataclass
|
|
59
58
|
class PriceLevel:
|
|
60
59
|
price: float
|
|
@@ -589,120 +588,6 @@ class Session:
|
|
|
589
588
|
)
|
|
590
589
|
|
|
591
590
|
|
|
592
|
-
@dataclass
|
|
593
|
-
class Order:
|
|
594
|
-
id: str
|
|
595
|
-
side: str
|
|
596
|
-
accountNo: str
|
|
597
|
-
symbol: str
|
|
598
|
-
|
|
599
|
-
price: float
|
|
600
|
-
priceSecure: float
|
|
601
|
-
averagePrice: float
|
|
602
|
-
|
|
603
|
-
quantity: int
|
|
604
|
-
fillQuantity: int
|
|
605
|
-
canceledQuantity: int
|
|
606
|
-
leaveQuantity: int
|
|
607
|
-
|
|
608
|
-
orderType: str
|
|
609
|
-
orderStatus: str
|
|
610
|
-
|
|
611
|
-
loanPackageId: int
|
|
612
|
-
marketType: str
|
|
613
|
-
|
|
614
|
-
transDate: str
|
|
615
|
-
createdDate: str
|
|
616
|
-
modifiedDate: str
|
|
617
|
-
|
|
618
|
-
@classmethod
|
|
619
|
-
def from_dict(cls, data: Dict[str, Any]) -> "Order":
|
|
620
|
-
return cls(
|
|
621
|
-
id=data.get("id"),
|
|
622
|
-
side=data.get("side"),
|
|
623
|
-
accountNo=data.get("accountNo") or data.get("account_no"),
|
|
624
|
-
symbol=data.get("symbol") or data.get("s"),
|
|
625
|
-
|
|
626
|
-
price=float(data.get("price", 0.0)),
|
|
627
|
-
priceSecure=float(data.get("priceSecure", 0.0)),
|
|
628
|
-
averagePrice=float(data.get("averagePrice", 0.0)),
|
|
629
|
-
|
|
630
|
-
quantity=int(data.get("quantity", 0)),
|
|
631
|
-
fillQuantity=int(data.get("fillQuantity", 0)),
|
|
632
|
-
canceledQuantity=int(data.get("canceledQuantity", 0)),
|
|
633
|
-
leaveQuantity=int(data.get("leaveQuantity", 0)),
|
|
634
|
-
|
|
635
|
-
orderType=data.get("orderType"),
|
|
636
|
-
orderStatus=data.get("orderStatus"),
|
|
637
|
-
|
|
638
|
-
loanPackageId=int(data.get("loanPackageId", 0)),
|
|
639
|
-
marketType=data.get("marketType"),
|
|
640
|
-
|
|
641
|
-
transDate=data.get("transDate"),
|
|
642
|
-
createdDate=data.get("createdDate"),
|
|
643
|
-
modifiedDate=data.get("modifiedDate"),
|
|
644
|
-
)
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
@dataclass
|
|
648
|
-
class Session:
|
|
649
|
-
marketId: str
|
|
650
|
-
boardId: str
|
|
651
|
-
eventId: str
|
|
652
|
-
tradingSessionId: int
|
|
653
|
-
tscProdGrpId: str
|
|
654
|
-
time: Optional[str] = None
|
|
655
|
-
receivedAt: Optional[float] = field(default=None, repr=False)
|
|
656
|
-
|
|
657
|
-
@classmethod
|
|
658
|
-
def from_dict(cls, data: Dict[str, Any]) -> "Session":
|
|
659
|
-
return cls(
|
|
660
|
-
marketId=data.get("marketId", ""),
|
|
661
|
-
boardId=data.get("boardId", ""),
|
|
662
|
-
eventId=data.get("eventId", ""),
|
|
663
|
-
tradingSessionId=data.get("tradingSessionId", 0),
|
|
664
|
-
tscProdGrpId=data.get("tscProdGrpId", ""),
|
|
665
|
-
time=parse_timestamp(data.get("sendingTime")),
|
|
666
|
-
receivedAt=data.get("_receivedAt"),
|
|
667
|
-
)
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
@dataclass
|
|
671
|
-
class Position:
|
|
672
|
-
symbol: str
|
|
673
|
-
quantity: int
|
|
674
|
-
averagePrice: Decimal
|
|
675
|
-
marketValue: Decimal
|
|
676
|
-
costBasis: Decimal
|
|
677
|
-
unrealizedPl: Decimal
|
|
678
|
-
unrealizedPlPercent: Decimal
|
|
679
|
-
timestamp: datetime
|
|
680
|
-
|
|
681
|
-
@classmethod
|
|
682
|
-
def from_dict(cls, data: Dict[str, Any]) -> "Position":
|
|
683
|
-
"""Parse position from message data.
|
|
684
|
-
|
|
685
|
-
Args:
|
|
686
|
-
data: Raw message dict with either abbreviated or full field names
|
|
687
|
-
|
|
688
|
-
Returns:
|
|
689
|
-
Position instance
|
|
690
|
-
|
|
691
|
-
Example:
|
|
692
|
-
>>> Position.from_dict({"S": "AAPL", "q": 100, "ap": "150.00", ...})
|
|
693
|
-
"""
|
|
694
|
-
return cls(
|
|
695
|
-
symbol=data.get("symbol"),
|
|
696
|
-
quantity=data.get("quantity"),
|
|
697
|
-
averagePrice=Decimal(str(data.get("averagePrice"))),
|
|
698
|
-
marketValue=Decimal(str(data.get("marketValue"))),
|
|
699
|
-
costBasis=Decimal(str(data.get("costBasis"))),
|
|
700
|
-
unrealizedPl=Decimal(str(data.get("unrealizedPl"))),
|
|
701
|
-
unrealizedPlPercent=Decimal(str(data.get("unrealizedPlPercent"))),
|
|
702
|
-
timestamp=datetime.fromtimestamp((data.get("timestamp")) / 1000),
|
|
703
|
-
)
|
|
704
|
-
|
|
705
|
-
|
|
706
591
|
@dataclass
|
|
707
592
|
class AccountUpdate:
|
|
708
593
|
cash: Decimal
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dnse_sdk_openapi-1.4.4 → dnse_sdk_openapi-1.4.5}/dnse_sdk_openapi.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dnse_sdk_openapi-1.4.4 → dnse_sdk_openapi-1.4.5}/trading-api/get_corporate_action_history.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dnse_sdk_openapi-1.4.4 → dnse_sdk_openapi-1.4.5}/websocket-marketdata/estimated_market_index.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|