@@ -2488,43 +2488,45 @@ def list_position_close_with_http_info(self, settle, **kwargs): # noqa: E501
24882488 _request_timeout = local_var_params .get ('_request_timeout' ),
24892489 collection_formats = collection_formats )
24902490
2491- def list_positions (self , ** kwargs ): # noqa: E501
2491+ def list_positions (self , settle , ** kwargs ): # noqa: E501
24922492 """List all positions of a user # noqa: E501
24932493
24942494 This method makes a synchronous HTTP request by default. To make an
24952495 asynchronous HTTP request, please pass async_req=True
2496- >>> thread = api.list_positions(async_req=True)
2496+ >>> thread = api.list_positions(settle, async_req=True)
24972497 >>> result = thread.get()
24982498
24992499 :param async_req bool
2500+ :param str settle: Settle currency (required)
25002501 :return: list[Position]
25012502 If the method is called asynchronously,
25022503 returns the request thread.
25032504 """
25042505 kwargs ['_return_http_data_only' ] = True
25052506 if kwargs .get ('async_req' ):
2506- return self .list_positions_with_http_info (** kwargs ) # noqa: E501
2507+ return self .list_positions_with_http_info (settle , ** kwargs ) # noqa: E501
25072508 else :
2508- (data ) = self .list_positions_with_http_info (** kwargs ) # noqa: E501
2509+ (data ) = self .list_positions_with_http_info (settle , ** kwargs ) # noqa: E501
25092510 return data
25102511
2511- def list_positions_with_http_info (self , ** kwargs ): # noqa: E501
2512+ def list_positions_with_http_info (self , settle , ** kwargs ): # noqa: E501
25122513 """List all positions of a user # noqa: E501
25132514
25142515 This method makes a synchronous HTTP request by default. To make an
25152516 asynchronous HTTP request, please pass async_req=True
2516- >>> thread = api.list_positions_with_http_info(async_req=True)
2517+ >>> thread = api.list_positions_with_http_info(settle, async_req=True)
25172518 >>> result = thread.get()
25182519
25192520 :param async_req bool
2521+ :param str settle: Settle currency (required)
25202522 :return: list[Position]
25212523 If the method is called asynchronously,
25222524 returns the request thread.
25232525 """
25242526
25252527 local_var_params = locals ()
25262528
2527- all_params = [] # noqa: E501
2529+ all_params = ['settle' ] # noqa: E501
25282530 all_params .append ('async_req' )
25292531 all_params .append ('_return_http_data_only' )
25302532 all_params .append ('_preload_content' )
@@ -2538,10 +2540,16 @@ def list_positions_with_http_info(self, **kwargs): # noqa: E501
25382540 )
25392541 local_var_params [key ] = val
25402542 del local_var_params ['kwargs' ]
2543+ # verify the required parameter 'settle' is set
2544+ if ('settle' not in local_var_params or
2545+ local_var_params ['settle' ] is None ):
2546+ raise ValueError ("Missing the required parameter `settle` when calling `list_positions`" ) # noqa: E501
25412547
25422548 collection_formats = {}
25432549
25442550 path_params = {}
2551+ if 'settle' in local_var_params :
2552+ path_params ['settle' ] = local_var_params ['settle' ] # noqa: E501
25452553
25462554 query_params = []
25472555
0 commit comments