edit def docs

This commit is contained in:
mtrshirazi21 committed 2026-02-05 15:30:14 +03:30
1 parent c9799fbd7f
commit 07ca759248
2 files changed
+64 -12

No files matched your search

+40 -6
View File
@@ -169,7 +169,12 @@ class Order:
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:
@@ -405,6 +410,7 @@ class EmsEngine_TseIfb_AsyncClient:
async def oms_login(
self,
*,
username: str,
password: str,
captcha_value: str,
@@ -433,7 +439,11 @@ class EmsEngine_TseIfb_AsyncClient:
Example
-------
>>> await client.oms_login("user123", "pass123", "abcd")
>>> await client.oms_login(
username = "user123",
password = "pass123",
captcha_value = "abcd"
)
>>> print(client.oms_session)
'session_token_here'
"""
@@ -509,7 +519,13 @@ class EmsEngine_TseIfb_AsyncClient:
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()
"""
@@ -581,7 +597,13 @@ class EmsEngine_TseIfb_AsyncClient:
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()
"""
@@ -652,7 +674,13 @@ class EmsEngine_TseIfb_AsyncClient:
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()
"""
@@ -723,7 +751,13 @@ class EmsEngine_TseIfb_AsyncClient:
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()
"""
+24 -6
View File
@@ -181,7 +181,12 @@ class Order:
Examples
--------
>>> order.Edit(Price=12500, Volume=800)
>>> order.Edit(
Price = 105,
Volume = 15,
Order_ValidityType = 'GTD',
ValidityDate = 20271206
)
"""
if self.OrderId is not None:
@@ -436,6 +441,7 @@ class EmsEngine_TseIfb_SyncClient:
def oms_login(
self,
*,
username: str,
password: str,
captcha_value: str,
@@ -465,7 +471,11 @@ class EmsEngine_TseIfb_SyncClient:
Examples
--------
>>> client.oms_login("user1", "pass123", "A7B9")
>>> client.oms_login(
username = "user123",
password = "pass123",
captcha_value = "abcd"
)
"""
response = self.__AuthSyncClient.httpx_Client.post(
@@ -542,7 +552,9 @@ class EmsEngine_TseIfb_SyncClient:
>>> order = client.Buy_by_Name(
... symbolName="اهرم",
... Price=12000,
... Volume=1000
... Volume=1000,
... Order_ValidityType = 'DAY',
... ValidityDate = 0
... )
>>> order.send()
"""
@@ -615,7 +627,9 @@ class EmsEngine_TseIfb_SyncClient:
>>> order = client.Sell_by_Name(
... symbolName="اهرم",
... Price=12000,
... Volume=1000
... Volume=1000,
... Order_ValidityType = 'DAY',
... ValidityDate = 0
... )
>>> order.send()
"""
@@ -686,7 +700,9 @@ class EmsEngine_TseIfb_SyncClient:
>>> order = client.Buy_by_isin(
... symbolName="اهرم",
... Price=12000,
... Volume=1000
... Volume=1000,
... Order_ValidityType = 'DAY',
... ValidityDate = 0
... )
>>> order.send()
"""
@@ -757,7 +773,9 @@ class EmsEngine_TseIfb_SyncClient:
>>> order = client.Sell_by_isin(
... symbolName="اهرم",
... Price=12000,
... Volume=1000
... Volume=1000,
... Order_ValidityType = 'DAY',
... ValidityDate = 0
... )
>>> order.send()
"""