dnse-sdk-openapi 2.3.0__tar.gz → 2.4.0__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-2.3.0 → dnse_sdk_openapi-2.4.0}/PKG-INFO +1 -1
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/dnse/api/client.py +20 -10
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/dnse_sdk_openapi.egg-info/PKG-INFO +1 -1
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/dnse_sdk_openapi.egg-info/SOURCES.txt +4 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/dnse_sdk_openapi.egg-info/top_level.txt +1 -0
- dnse_sdk_openapi-2.4.0/examples/reference/smart-otp-handoff-flow.py +32 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/marketdata-api/get_trades_volume_profile.py +2 -3
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/pyproject.toml +1 -1
- dnse_sdk_openapi-2.4.0/tests/test_client.py +57 -0
- dnse_sdk_openapi-2.4.0/tests/test_smart_otp_handoff.py +36 -0
- dnse_sdk_openapi-2.4.0/trading-api/create_smart_otp_handoff.py +23 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/README.md +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/broker-api/get_list_care_by.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/dnse/__init__.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/dnse/api/_version.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/dnse/api/common.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/dnse/websocket/_version.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/dnse/websocket/auth.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/dnse/websocket/client.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/dnse/websocket/connection.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/dnse/websocket/encoding.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/dnse/websocket/exceptions.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/dnse/websocket/models.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/dnse/websocket/py.typed +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/dnse_sdk_openapi.egg-info/dependency_links.txt +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/examples/env_util.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/examples/indicators.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/examples/log_util.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/examples/market_utils.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/examples/otp_email.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/examples/position_manager.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/examples/position_store.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/examples/reference/orders-email-otp.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/examples/reference/orders-smart-otp.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/examples/strategy_base.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/examples/strategy_ichimoku.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/examples/strategy_price_action.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/examples/strategy_scalping.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/examples/token_store.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/examples/use-cases/auto-trader.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/examples/use-cases/market-data.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/examples/use-cases/order-history.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/examples/use-cases/place-a-trade.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/examples/use-cases/portfolio-check.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/marketdata-api/get_expected_price.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/marketdata-api/get_foreign_trading.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/marketdata-api/get_instruments.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/marketdata-api/get_lastest_session.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/marketdata-api/get_latest_quote.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/marketdata-api/get_latest_trade.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/marketdata-api/get_market_index.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/marketdata-api/get_ohlc.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/marketdata-api/get_quotes.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/marketdata-api/get_security_definition.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/marketdata-api/get_trades.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/marketdata-api/get_working_dates.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/setup.cfg +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/trading-api/cancel_order.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/trading-api/close_position.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/trading-api/create_trading_token.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/trading-api/get_account_pnl_configs.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/trading-api/get_accounts.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/trading-api/get_balances.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/trading-api/get_close_price.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/trading-api/get_corporate_action_history.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/trading-api/get_execution_detail.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/trading-api/get_loan_packages.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/trading-api/get_loans.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/trading-api/get_order_detail.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/trading-api/get_order_history.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/trading-api/get_orders.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/trading-api/get_position_by_id.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/trading-api/get_position_pnl_configs.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/trading-api/get_positions.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/trading-api/get_ppse.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/trading-api/patch_account_pnl_configs.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/trading-api/post_order.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/trading-api/post_position_pnl_configs.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/trading-api/put_order.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/trading-api/reverse_position.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/trading-api/send_email_otp.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/websocket-marketdata/estimated_market_index.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/websocket-marketdata/expected_price.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/websocket-marketdata/foreign_investor.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/websocket-marketdata/market_index.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/websocket-marketdata/market_index_influence.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/websocket-marketdata/ohlc.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/websocket-marketdata/ohlc_closed.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/websocket-marketdata/quote.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/websocket-marketdata/sec_def.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/websocket-marketdata/session.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/websocket-marketdata/trade.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/websocket-marketdata/trade_extra.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/websocket-trading/broker_order.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/websocket-trading/broker_position.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/websocket-trading/order.py +0 -0
- {dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/websocket-trading/position.py +0 -0
|
@@ -295,10 +295,10 @@ class DNSEClient:
|
|
|
295
295
|
dry_run=dry_run,
|
|
296
296
|
)
|
|
297
297
|
|
|
298
|
-
def get_trades_volume_profile(self, symbol,
|
|
299
|
-
query = {"
|
|
298
|
+
def get_trades_volume_profile(self, symbol, time, board_id=None, dry_run=False):
|
|
299
|
+
query = {"time": time}
|
|
300
300
|
if board_id is not None:
|
|
301
|
-
query["
|
|
301
|
+
query["boardId"] = board_id
|
|
302
302
|
return self._request(
|
|
303
303
|
"GET",
|
|
304
304
|
f"/price/{symbol}/trades/volume-profile",
|
|
@@ -537,6 +537,15 @@ class DNSEClient:
|
|
|
537
537
|
dry_run=dry_run,
|
|
538
538
|
)
|
|
539
539
|
|
|
540
|
+
def create_smart_otp_handoff(self, version="2026-01-01", dry_run=False):
|
|
541
|
+
return self._request(
|
|
542
|
+
"POST",
|
|
543
|
+
"/registration/smart-otp/handoff",
|
|
544
|
+
version=version,
|
|
545
|
+
timeout=urllib3.Timeout(connect=30.0, read=330.0),
|
|
546
|
+
dry_run=dry_run,
|
|
547
|
+
)
|
|
548
|
+
|
|
540
549
|
def send_email_otp(self, dry_run=False):
|
|
541
550
|
return self._request(
|
|
542
551
|
"POST",
|
|
@@ -567,7 +576,7 @@ class DNSEClient:
|
|
|
567
576
|
dry_run=dry_run,
|
|
568
577
|
)
|
|
569
578
|
|
|
570
|
-
def _request(self, method, path, query=None, body=None, headers=None, version=None, dry_run=False):
|
|
579
|
+
def _request(self, method, path, query=None, body=None, headers=None, version=None, timeout=None, dry_run=False):
|
|
571
580
|
debug = os.getenv("DEBUG", "").lower() == "true"
|
|
572
581
|
url = self._build_url(path, query)
|
|
573
582
|
date_value, signature_header_value = self._signature_headers(method, path)
|
|
@@ -604,12 +613,13 @@ class DNSEClient:
|
|
|
604
613
|
return None, None
|
|
605
614
|
|
|
606
615
|
try:
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
616
|
+
request_kwargs = {
|
|
617
|
+
"body": data,
|
|
618
|
+
"headers": req_headers,
|
|
619
|
+
}
|
|
620
|
+
if timeout is not None:
|
|
621
|
+
request_kwargs["timeout"] = timeout
|
|
622
|
+
resp = self._http.request(method, url, **request_kwargs)
|
|
613
623
|
body_text = resp.data.decode("utf-8")
|
|
614
624
|
return resp.status, body_text
|
|
615
625
|
except urllib3.exceptions.HTTPError as err:
|
|
@@ -31,6 +31,7 @@ examples/strategy_scalping.py
|
|
|
31
31
|
examples/token_store.py
|
|
32
32
|
examples/reference/orders-email-otp.py
|
|
33
33
|
examples/reference/orders-smart-otp.py
|
|
34
|
+
examples/reference/smart-otp-handoff-flow.py
|
|
34
35
|
examples/use-cases/auto-trader.py
|
|
35
36
|
examples/use-cases/market-data.py
|
|
36
37
|
examples/use-cases/order-history.py
|
|
@@ -49,8 +50,11 @@ marketdata-api/get_security_definition.py
|
|
|
49
50
|
marketdata-api/get_trades.py
|
|
50
51
|
marketdata-api/get_trades_volume_profile.py
|
|
51
52
|
marketdata-api/get_working_dates.py
|
|
53
|
+
tests/test_client.py
|
|
54
|
+
tests/test_smart_otp_handoff.py
|
|
52
55
|
trading-api/cancel_order.py
|
|
53
56
|
trading-api/close_position.py
|
|
57
|
+
trading-api/create_smart_otp_handoff.py
|
|
54
58
|
trading-api/create_trading_token.py
|
|
55
59
|
trading-api/get_account_pnl_configs.py
|
|
56
60
|
trading-api/get_accounts.py
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
import json
|
|
3
|
+
import os
|
|
4
|
+
import sys
|
|
5
|
+
|
|
6
|
+
sys.path.insert(0, os.path.dirname(os.path.dirname(__file__)))
|
|
7
|
+
|
|
8
|
+
from dnse import DNSEClient
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def main():
|
|
12
|
+
client = DNSEClient(
|
|
13
|
+
api_key="replace-with-api-key",
|
|
14
|
+
api_secret="replace-with-api-secret",
|
|
15
|
+
base_url="https://openapi.dnse.com.vn",
|
|
16
|
+
)
|
|
17
|
+
|
|
18
|
+
status, body = client.create_smart_otp_handoff()
|
|
19
|
+
if status != 200:
|
|
20
|
+
print(status, body)
|
|
21
|
+
return
|
|
22
|
+
|
|
23
|
+
smart_otp = json.loads(body)["smartOtp"]
|
|
24
|
+
status, body = client.create_trading_token(
|
|
25
|
+
otp_type="smart_otp",
|
|
26
|
+
passcode=smart_otp,
|
|
27
|
+
)
|
|
28
|
+
print(status, body)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
if __name__ == "__main__":
|
|
32
|
+
main()
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
import os
|
|
3
|
+
import sys
|
|
4
|
+
import unittest
|
|
5
|
+
|
|
6
|
+
sys.path.insert(0, os.path.dirname(os.path.dirname(__file__)))
|
|
7
|
+
|
|
8
|
+
from dnse import DNSEClient
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class DNSEClientTest(unittest.TestCase):
|
|
12
|
+
def test_get_loans_builds_expected_request(self):
|
|
13
|
+
client = DNSEClient(
|
|
14
|
+
api_key="key",
|
|
15
|
+
api_secret="secret",
|
|
16
|
+
base_url="https://example.test",
|
|
17
|
+
)
|
|
18
|
+
captured = {}
|
|
19
|
+
|
|
20
|
+
def fake_request(method, path, query=None, **kwargs):
|
|
21
|
+
captured.update(method=method, path=path, query=query, kwargs=kwargs)
|
|
22
|
+
return 200, "{}"
|
|
23
|
+
|
|
24
|
+
client._request = fake_request
|
|
25
|
+
|
|
26
|
+
client.get_loans(
|
|
27
|
+
account_no="0001179019",
|
|
28
|
+
market_type="STOCK",
|
|
29
|
+
disbursement_from="2026-06-01",
|
|
30
|
+
disbursement_to="2026-07-31",
|
|
31
|
+
due_date_from="2026-09-01",
|
|
32
|
+
due_date_to="2026-12-31",
|
|
33
|
+
position_id=9638,
|
|
34
|
+
page_index=2,
|
|
35
|
+
page_size=25,
|
|
36
|
+
)
|
|
37
|
+
|
|
38
|
+
self.assertEqual("GET", captured["method"])
|
|
39
|
+
self.assertEqual("/accounts/0001179019/loans", captured["path"])
|
|
40
|
+
self.assertEqual(
|
|
41
|
+
{
|
|
42
|
+
"marketType": "STOCK",
|
|
43
|
+
"disbursementFrom": "2026-06-01",
|
|
44
|
+
"disbursementTo": "2026-07-31",
|
|
45
|
+
"dueDateFrom": "2026-09-01",
|
|
46
|
+
"dueDateTo": "2026-12-31",
|
|
47
|
+
"positionId": 9638,
|
|
48
|
+
"pageIndex": 2,
|
|
49
|
+
"pageSize": 25,
|
|
50
|
+
},
|
|
51
|
+
captured["query"],
|
|
52
|
+
)
|
|
53
|
+
self.assertEqual({"dry_run": False}, captured["kwargs"])
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
if __name__ == "__main__":
|
|
57
|
+
unittest.main()
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
import os
|
|
3
|
+
import sys
|
|
4
|
+
import unittest
|
|
5
|
+
|
|
6
|
+
sys.path.insert(0, os.path.dirname(os.path.dirname(__file__)))
|
|
7
|
+
|
|
8
|
+
from dnse import DNSEClient
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class SmartOtpHandoffClientTest(unittest.TestCase):
|
|
12
|
+
def test_create_smart_otp_handoff_uses_expected_path_version_and_timeout(self):
|
|
13
|
+
client = DNSEClient(
|
|
14
|
+
api_key="key",
|
|
15
|
+
api_secret="secret",
|
|
16
|
+
base_url="https://example.test",
|
|
17
|
+
)
|
|
18
|
+
captured = {}
|
|
19
|
+
|
|
20
|
+
def fake_request(method, path, **kwargs):
|
|
21
|
+
captured.update(method=method, path=path, kwargs=kwargs)
|
|
22
|
+
return 200, '{"smartOtp":"123456"}'
|
|
23
|
+
|
|
24
|
+
client._request = fake_request
|
|
25
|
+
|
|
26
|
+
client.create_smart_otp_handoff()
|
|
27
|
+
|
|
28
|
+
self.assertEqual("POST", captured["method"])
|
|
29
|
+
self.assertEqual("/registration/smart-otp/handoff", captured["path"])
|
|
30
|
+
self.assertEqual("2026-01-01", captured["kwargs"]["version"])
|
|
31
|
+
self.assertEqual(330.0, captured["kwargs"]["timeout"].read_timeout)
|
|
32
|
+
self.assertFalse(captured["kwargs"]["dry_run"])
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
if __name__ == "__main__":
|
|
36
|
+
unittest.main()
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
import json
|
|
3
|
+
import os
|
|
4
|
+
import sys
|
|
5
|
+
|
|
6
|
+
sys.path.insert(0, os.path.dirname(os.path.dirname(__file__)))
|
|
7
|
+
|
|
8
|
+
from dnse import DNSEClient
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
def main():
|
|
12
|
+
client = DNSEClient(
|
|
13
|
+
api_key="replace-with-api-key",
|
|
14
|
+
api_secret="replace-with-api-secret",
|
|
15
|
+
base_url="https://openapi.dnse.com.vn",
|
|
16
|
+
)
|
|
17
|
+
|
|
18
|
+
status, body = client.create_smart_otp_handoff()
|
|
19
|
+
print(status, body)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
if __name__ == "__main__":
|
|
23
|
+
main()
|
|
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-2.3.0 → dnse_sdk_openapi-2.4.0}/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
|
|
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-2.3.0 → dnse_sdk_openapi-2.4.0}/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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/websocket-marketdata/estimated_market_index.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{dnse_sdk_openapi-2.3.0 → dnse_sdk_openapi-2.4.0}/websocket-marketdata/market_index_influence.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
|