edit def docs
This commit is contained in:
1 parent
c9799fbd7f
commit
07ca759248
2 files changed
+64
-12
No files matched your search
@@ -169,7 +169,12 @@ class Order:
|
|||||||
|
|
||||||
Example
|
Example
|
||||||
-------
|
-------
|
||||||
>>> await order.Edit(Price=105, Volume=15)
|
>>> await order.Edit(
|
||||||
|
Price = 105,
|
||||||
|
Volume = 15,
|
||||||
|
Order_ValidityType = 'GTD',
|
||||||
|
ValidityDate = 20271206
|
||||||
|
)
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if self.OrderId is not None:
|
if self.OrderId is not None:
|
||||||
@@ -405,6 +410,7 @@ class EmsEngine_TseIfb_AsyncClient:
|
|||||||
|
|
||||||
async def oms_login(
|
async def oms_login(
|
||||||
self,
|
self,
|
||||||
|
*,
|
||||||
username: str,
|
username: str,
|
||||||
password: str,
|
password: str,
|
||||||
captcha_value: str,
|
captcha_value: str,
|
||||||
@@ -433,7 +439,11 @@ class EmsEngine_TseIfb_AsyncClient:
|
|||||||
|
|
||||||
Example
|
Example
|
||||||
-------
|
-------
|
||||||
>>> await client.oms_login("user123", "pass123", "abcd")
|
>>> await client.oms_login(
|
||||||
|
username = "user123",
|
||||||
|
password = "pass123",
|
||||||
|
captcha_value = "abcd"
|
||||||
|
)
|
||||||
>>> print(client.oms_session)
|
>>> print(client.oms_session)
|
||||||
'session_token_here'
|
'session_token_here'
|
||||||
"""
|
"""
|
||||||
@@ -509,7 +519,13 @@ class EmsEngine_TseIfb_AsyncClient:
|
|||||||
|
|
||||||
Example
|
Example
|
||||||
-------
|
-------
|
||||||
>>> order = await client.Buy_by_Name(symbolName="اطلس", Price=100000, Volume=10)
|
>>> order = await client.Buy_by_Name(
|
||||||
|
symbolName="اطلس",
|
||||||
|
Price=100000,
|
||||||
|
Volume=10,
|
||||||
|
Order_ValidityType = 'DAY',
|
||||||
|
ValidityDate = 0
|
||||||
|
)
|
||||||
>>> await order.send()
|
>>> await order.send()
|
||||||
"""
|
"""
|
||||||
|
|
||||||
@@ -581,7 +597,13 @@ class EmsEngine_TseIfb_AsyncClient:
|
|||||||
|
|
||||||
Example
|
Example
|
||||||
-------
|
-------
|
||||||
>>> order = await client.Sell_by_Name(symbolName="اطلس", Price=100000, Volume=10)
|
>>> order = await client.Sell_by_Name(
|
||||||
|
symbolName="اطلس",
|
||||||
|
Price=100000,
|
||||||
|
Volume=10,
|
||||||
|
Order_ValidityType = 'DAY',
|
||||||
|
ValidityDate = 0
|
||||||
|
)
|
||||||
>>> await order.send()
|
>>> await order.send()
|
||||||
"""
|
"""
|
||||||
|
|
||||||
@@ -652,7 +674,13 @@ class EmsEngine_TseIfb_AsyncClient:
|
|||||||
|
|
||||||
Example
|
Example
|
||||||
-------
|
-------
|
||||||
>>> order = await client.Buy_by_isin(symbolIsin="اطلس", Price=100000, Volume=10)
|
>>> order = await client.Buy_by_isin(
|
||||||
|
symbolName="اطلس",
|
||||||
|
Price=100000,
|
||||||
|
Volume=10,
|
||||||
|
Order_ValidityType = 'DAY',
|
||||||
|
ValidityDate = 0
|
||||||
|
)
|
||||||
>>> await order.send()
|
>>> await order.send()
|
||||||
"""
|
"""
|
||||||
|
|
||||||
@@ -723,7 +751,13 @@ class EmsEngine_TseIfb_AsyncClient:
|
|||||||
|
|
||||||
Example
|
Example
|
||||||
-------
|
-------
|
||||||
>>> order = await client.Sell_by_isin(symbolIsin="اطلس", Price=100000, Volume=10)
|
>>> order = await client.Sell_by_isin(
|
||||||
|
symbolName="اطلس",
|
||||||
|
Price=100000,
|
||||||
|
Volume=10,
|
||||||
|
Order_ValidityType = 'DAY',
|
||||||
|
ValidityDate = 0
|
||||||
|
)
|
||||||
>>> await order.send()
|
>>> await order.send()
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|||||||
@@ -181,7 +181,12 @@ class Order:
|
|||||||
|
|
||||||
Examples
|
Examples
|
||||||
--------
|
--------
|
||||||
>>> order.Edit(Price=12500, Volume=800)
|
>>> order.Edit(
|
||||||
|
Price = 105,
|
||||||
|
Volume = 15,
|
||||||
|
Order_ValidityType = 'GTD',
|
||||||
|
ValidityDate = 20271206
|
||||||
|
)
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if self.OrderId is not None:
|
if self.OrderId is not None:
|
||||||
@@ -436,6 +441,7 @@ class EmsEngine_TseIfb_SyncClient:
|
|||||||
|
|
||||||
def oms_login(
|
def oms_login(
|
||||||
self,
|
self,
|
||||||
|
*,
|
||||||
username: str,
|
username: str,
|
||||||
password: str,
|
password: str,
|
||||||
captcha_value: str,
|
captcha_value: str,
|
||||||
@@ -465,7 +471,11 @@ class EmsEngine_TseIfb_SyncClient:
|
|||||||
|
|
||||||
Examples
|
Examples
|
||||||
--------
|
--------
|
||||||
>>> client.oms_login("user1", "pass123", "A7B9")
|
>>> client.oms_login(
|
||||||
|
username = "user123",
|
||||||
|
password = "pass123",
|
||||||
|
captcha_value = "abcd"
|
||||||
|
)
|
||||||
"""
|
"""
|
||||||
|
|
||||||
response = self.__AuthSyncClient.httpx_Client.post(
|
response = self.__AuthSyncClient.httpx_Client.post(
|
||||||
@@ -542,7 +552,9 @@ class EmsEngine_TseIfb_SyncClient:
|
|||||||
>>> order = client.Buy_by_Name(
|
>>> order = client.Buy_by_Name(
|
||||||
... symbolName="اهرم",
|
... symbolName="اهرم",
|
||||||
... Price=12000,
|
... Price=12000,
|
||||||
... Volume=1000
|
... Volume=1000,
|
||||||
|
... Order_ValidityType = 'DAY',
|
||||||
|
... ValidityDate = 0
|
||||||
... )
|
... )
|
||||||
>>> order.send()
|
>>> order.send()
|
||||||
"""
|
"""
|
||||||
@@ -615,7 +627,9 @@ class EmsEngine_TseIfb_SyncClient:
|
|||||||
>>> order = client.Sell_by_Name(
|
>>> order = client.Sell_by_Name(
|
||||||
... symbolName="اهرم",
|
... symbolName="اهرم",
|
||||||
... Price=12000,
|
... Price=12000,
|
||||||
... Volume=1000
|
... Volume=1000,
|
||||||
|
... Order_ValidityType = 'DAY',
|
||||||
|
... ValidityDate = 0
|
||||||
... )
|
... )
|
||||||
>>> order.send()
|
>>> order.send()
|
||||||
"""
|
"""
|
||||||
@@ -686,7 +700,9 @@ class EmsEngine_TseIfb_SyncClient:
|
|||||||
>>> order = client.Buy_by_isin(
|
>>> order = client.Buy_by_isin(
|
||||||
... symbolName="اهرم",
|
... symbolName="اهرم",
|
||||||
... Price=12000,
|
... Price=12000,
|
||||||
... Volume=1000
|
... Volume=1000,
|
||||||
|
... Order_ValidityType = 'DAY',
|
||||||
|
... ValidityDate = 0
|
||||||
... )
|
... )
|
||||||
>>> order.send()
|
>>> order.send()
|
||||||
"""
|
"""
|
||||||
@@ -757,7 +773,9 @@ class EmsEngine_TseIfb_SyncClient:
|
|||||||
>>> order = client.Sell_by_isin(
|
>>> order = client.Sell_by_isin(
|
||||||
... symbolName="اهرم",
|
... symbolName="اهرم",
|
||||||
... Price=12000,
|
... Price=12000,
|
||||||
... Volume=1000
|
... Volume=1000,
|
||||||
|
... Order_ValidityType = 'DAY',
|
||||||
|
... ValidityDate = 0
|
||||||
... )
|
... )
|
||||||
>>> order.send()
|
>>> order.send()
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in new issue
Block a user