Skip to content

Commit cfb2ef2

Browse files
committed
Fix return type typehint
1 parent 6e68f0f commit cfb2ef2

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

investing_algorithm_framework/app/context.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1196,11 +1196,10 @@ def get_trade(
11961196
portfolio=None,
11971197
status=None,
11981198
order_id=None
1199-
) -> List[Trade]:
1199+
) -> Trade:
12001200
"""
1201-
Function to get all trades. This function will return all trades
1202-
that match the specified query parameters. If the market parameter
1203-
is specified, the trades with the specified market will be returned.
1201+
Function to retrieve a trade. This function will return the first
1202+
trade that matches the specified query parameters.
12041203
12051204
Args:
12061205
market: The market of the asset
@@ -1211,7 +1210,7 @@ def get_trade(
12111210
trading_symbol: The trading symbol of the asset
12121211
12131212
Returns:
1214-
List[Trade]: A list of trades that match the query parameters
1213+
Trade: A instance of a trade that matches the query parameters
12151214
"""
12161215
query_params = {}
12171216

0 commit comments

Comments
 (0)