# coding: utf-8 """ Gate API Welcome to Gate API APIv4 provides operations related to spot, margin, and contract trading, including public interfaces for querying market data and authenticated private interfaces for implementing API-based automated trading. # noqa: E501 Contact: support@mail.gate.com Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import re # noqa: F401 # python 2 and python 3 compatibility library import six from gate_api.api_client import ApiClient from gate_api.exceptions import ( # noqa: F401 ApiTypeError, ApiValueError ) class LaunchApi(object): """NOTE: This class is auto generated by OpenAPI Generator Ref: https://openapi-generator.tech Do not edit the class manually. """ def __init__(self, api_client=None): if api_client is None: api_client = ApiClient() self.api_client = api_client def list_launch_pool_projects(self, **kwargs): # noqa: E501 """Query LaunchPool project list # noqa: E501 Retrieve the list of available LaunchPool projects, including basic project information and reward pool configuration. This endpoint does not require user authentication. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_launch_pool_projects(async_req=True) >>> result = thread.get() :param bool async_req: execute request asynchronously :param int status: Filter by project status: 0 for all, 1 for ongoing, 2 for warming up, 3 for ended, 4 for ongoing and warming up :param str mortgage_coin: Exact match by staking currency :param str search_coin: Fuzzy match by reward currency and name :param int limit_rule: Limit rule: 0 for regular pool, 1 for beginner pool :param int sort_type: Sort type: 1 for max APR descending, 2 for max APR ascending :param int page: Page number, default 1 :param int page_size: Number of items per page, default 10, maximum 30 :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :rtype: list[gate_api.LaunchPoolV4Project] :return: If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True return self.list_launch_pool_projects_with_http_info(**kwargs) # noqa: E501 def list_launch_pool_projects_with_http_info(self, **kwargs): # noqa: E501 """Query LaunchPool project list # noqa: E501 Retrieve the list of available LaunchPool projects, including basic project information and reward pool configuration. This endpoint does not require user authentication. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_launch_pool_projects_with_http_info(async_req=True) >>> result = thread.get() :param bool async_req: execute request asynchronously :param int status: Filter by project status: 0 for all, 1 for ongoing, 2 for warming up, 3 for ended, 4 for ongoing and warming up :param str mortgage_coin: Exact match by staking currency :param str search_coin: Fuzzy match by reward currency and name :param int limit_rule: Limit rule: 0 for regular pool, 1 for beginner pool :param int sort_type: Sort type: 1 for max APR descending, 2 for max APR ascending :param int page: Page number, default 1 :param int page_size: Number of items per page, default 10, maximum 30 :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :rtype: tuple(list[gate_api.LaunchPoolV4Project], status_code(int), headers(HTTPHeaderDict)) :return: If the method is called asynchronously, returns the request thread. """ local_var_params = locals() all_params = [ 'status', 'mortgage_coin', 'search_coin', 'limit_rule', 'sort_type', 'page', 'page_size' ] all_params.extend( [ 'async_req', '_return_http_data_only', '_preload_content', '_request_timeout' ] ) for k, v in six.iteritems(local_var_params['kwargs']): if k not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_launch_pool_projects" % k ) local_var_params[k] = v del local_var_params['kwargs'] if self.api_client.client_side_validation and 'status' in local_var_params and local_var_params['status'] > 4: # noqa: E501 raise ApiValueError("Invalid value for parameter `status` when calling `list_launch_pool_projects`, must be a value less than or equal to `4`") # noqa: E501 if self.api_client.client_side_validation and 'status' in local_var_params and local_var_params['status'] < 0: # noqa: E501 raise ApiValueError("Invalid value for parameter `status` when calling `list_launch_pool_projects`, must be a value greater than or equal to `0`") # noqa: E501 if self.api_client.client_side_validation and 'limit_rule' in local_var_params and local_var_params['limit_rule'] > 2: # noqa: E501 raise ApiValueError("Invalid value for parameter `limit_rule` when calling `list_launch_pool_projects`, must be a value less than or equal to `2`") # noqa: E501 if self.api_client.client_side_validation and 'limit_rule' in local_var_params and local_var_params['limit_rule'] < 0: # noqa: E501 raise ApiValueError("Invalid value for parameter `limit_rule` when calling `list_launch_pool_projects`, must be a value greater than or equal to `0`") # noqa: E501 if self.api_client.client_side_validation and 'sort_type' in local_var_params and local_var_params['sort_type'] > 2: # noqa: E501 raise ApiValueError("Invalid value for parameter `sort_type` when calling `list_launch_pool_projects`, must be a value less than or equal to `2`") # noqa: E501 if self.api_client.client_side_validation and 'sort_type' in local_var_params and local_var_params['sort_type'] < 1: # noqa: E501 raise ApiValueError("Invalid value for parameter `sort_type` when calling `list_launch_pool_projects`, must be a value greater than or equal to `1`") # noqa: E501 if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 raise ApiValueError("Invalid value for parameter `page` when calling `list_launch_pool_projects`, must be a value greater than or equal to `1`") # noqa: E501 if self.api_client.client_side_validation and 'page_size' in local_var_params and local_var_params['page_size'] > 30: # noqa: E501 raise ApiValueError("Invalid value for parameter `page_size` when calling `list_launch_pool_projects`, must be a value less than or equal to `30`") # noqa: E501 if self.api_client.client_side_validation and 'page_size' in local_var_params and local_var_params['page_size'] < 1: # noqa: E501 raise ApiValueError("Invalid value for parameter `page_size` when calling `list_launch_pool_projects`, must be a value greater than or equal to `1`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] if 'status' in local_var_params and local_var_params['status'] is not None: # noqa: E501 query_params.append(('status', local_var_params['status'])) # noqa: E501 if 'mortgage_coin' in local_var_params and local_var_params['mortgage_coin'] is not None: # noqa: E501 query_params.append(('mortgageCoin', local_var_params['mortgage_coin'])) # noqa: E501 if 'search_coin' in local_var_params and local_var_params['search_coin'] is not None: # noqa: E501 query_params.append(('searchCoin', local_var_params['search_coin'])) # noqa: E501 if 'limit_rule' in local_var_params and local_var_params['limit_rule'] is not None: # noqa: E501 query_params.append(('limitRule', local_var_params['limit_rule'])) # noqa: E501 if 'sort_type' in local_var_params and local_var_params['sort_type'] is not None: # noqa: E501 query_params.append(('sortType', local_var_params['sort_type'])) # noqa: E501 if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 query_params.append(('page', local_var_params['page'])) # noqa: E501 if 'page_size' in local_var_params and local_var_params['page_size'] is not None: # noqa: E501 query_params.append(('pageSize', local_var_params['page_size'])) # noqa: E501 header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/launch/project-list', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='list[LaunchPoolV4Project]', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def create_launch_pool_order(self, create_order_v4, **kwargs): # noqa: E501 """Create LaunchPool staking order # noqa: E501 Create a new staking order for asset staking mining. This endpoint requires API Key signature authentication. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_launch_pool_order(create_order_v4, async_req=True) >>> result = thread.get() :param bool async_req: execute request asynchronously :param CreateOrderV4 create_order_v4: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :rtype: gate_api.LaunchPoolV4CreateOrderResponse :return: If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True return self.create_launch_pool_order_with_http_info(create_order_v4, **kwargs) # noqa: E501 def create_launch_pool_order_with_http_info(self, create_order_v4, **kwargs): # noqa: E501 """Create LaunchPool staking order # noqa: E501 Create a new staking order for asset staking mining. This endpoint requires API Key signature authentication. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.create_launch_pool_order_with_http_info(create_order_v4, async_req=True) >>> result = thread.get() :param bool async_req: execute request asynchronously :param CreateOrderV4 create_order_v4: (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :rtype: tuple(gate_api.LaunchPoolV4CreateOrderResponse, status_code(int), headers(HTTPHeaderDict)) :return: If the method is called asynchronously, returns the request thread. """ local_var_params = locals() all_params = [ 'create_order_v4' ] all_params.extend( [ 'async_req', '_return_http_data_only', '_preload_content', '_request_timeout' ] ) for k, v in six.iteritems(local_var_params['kwargs']): if k not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method create_launch_pool_order" % k ) local_var_params[k] = v del local_var_params['kwargs'] # verify the required parameter 'create_order_v4' is set if self.api_client.client_side_validation and ('create_order_v4' not in local_var_params or # noqa: E501 local_var_params['create_order_v4'] is None): # noqa: E501 raise ApiValueError("Missing the required parameter `create_order_v4` when calling `create_launch_pool_order`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] header_params = {} form_params = [] local_var_files = {} body_params = None if 'create_order_v4' in local_var_params: body_params = local_var_params['create_order_v4'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['application/json']) # noqa: E501 # Authentication setting auth_settings = ['apiv4'] # noqa: E501 return self.api_client.call_api( '/launch/create-order', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='LaunchPoolV4CreateOrderResponse', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def redeem_launch_pool(self, redeem_v4, **kwargs): # noqa: E501 """Redeem LaunchPool staked assets # noqa: E501 Redeem staked assets and end staking mining. This endpoint requires API Key signature authentication. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.redeem_launch_pool(redeem_v4, async_req=True) >>> result = thread.get() :param bool async_req: execute request asynchronously :param RedeemV4 redeem_v4: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :rtype: gate_api.RedeemLaunchPoolResponse :return: If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True return self.redeem_launch_pool_with_http_info(redeem_v4, **kwargs) # noqa: E501 def redeem_launch_pool_with_http_info(self, redeem_v4, **kwargs): # noqa: E501 """Redeem LaunchPool staked assets # noqa: E501 Redeem staked assets and end staking mining. This endpoint requires API Key signature authentication. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.redeem_launch_pool_with_http_info(redeem_v4, async_req=True) >>> result = thread.get() :param bool async_req: execute request asynchronously :param RedeemV4 redeem_v4: (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :rtype: tuple(gate_api.RedeemLaunchPoolResponse, status_code(int), headers(HTTPHeaderDict)) :return: If the method is called asynchronously, returns the request thread. """ local_var_params = locals() all_params = [ 'redeem_v4' ] all_params.extend( [ 'async_req', '_return_http_data_only', '_preload_content', '_request_timeout' ] ) for k, v in six.iteritems(local_var_params['kwargs']): if k not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method redeem_launch_pool" % k ) local_var_params[k] = v del local_var_params['kwargs'] # verify the required parameter 'redeem_v4' is set if self.api_client.client_side_validation and ('redeem_v4' not in local_var_params or # noqa: E501 local_var_params['redeem_v4'] is None): # noqa: E501 raise ApiValueError("Missing the required parameter `redeem_v4` when calling `redeem_launch_pool`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] header_params = {} form_params = [] local_var_files = {} body_params = None if 'redeem_v4' in local_var_params: body_params = local_var_params['redeem_v4'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['application/json']) # noqa: E501 # Authentication setting auth_settings = ['apiv4'] # noqa: E501 return self.api_client.call_api( '/launch/redeem', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='RedeemLaunchPoolResponse', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def list_launch_pool_pledge_records(self, **kwargs): # noqa: E501 """Query user pledge records # noqa: E501 Query user's staking and redemption operation records. This endpoint requires user authentication. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_launch_pool_pledge_records(async_req=True) >>> result = thread.get() :param bool async_req: execute request asynchronously :param int page: Page number, default 1 :param int page_size: Number of items per page, maximum 30 :param int type: Type: 1 for pledge, 2 for redemption :param str start_time: Start time, format: YYYY-MM-DD HH:MM:SS :param str end_time: End time, format: YYYY-MM-DD HH:MM:SS :param str coin: Collateral currency :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :rtype: list[gate_api.LaunchPoolV4PledgeRecord] :return: If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True return self.list_launch_pool_pledge_records_with_http_info(**kwargs) # noqa: E501 def list_launch_pool_pledge_records_with_http_info(self, **kwargs): # noqa: E501 """Query user pledge records # noqa: E501 Query user's staking and redemption operation records. This endpoint requires user authentication. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_launch_pool_pledge_records_with_http_info(async_req=True) >>> result = thread.get() :param bool async_req: execute request asynchronously :param int page: Page number, default 1 :param int page_size: Number of items per page, maximum 30 :param int type: Type: 1 for pledge, 2 for redemption :param str start_time: Start time, format: YYYY-MM-DD HH:MM:SS :param str end_time: End time, format: YYYY-MM-DD HH:MM:SS :param str coin: Collateral currency :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :rtype: tuple(list[gate_api.LaunchPoolV4PledgeRecord], status_code(int), headers(HTTPHeaderDict)) :return: If the method is called asynchronously, returns the request thread. """ local_var_params = locals() all_params = [ 'page', 'page_size', 'type', 'start_time', 'end_time', 'coin' ] all_params.extend( [ 'async_req', '_return_http_data_only', '_preload_content', '_request_timeout' ] ) for k, v in six.iteritems(local_var_params['kwargs']): if k not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_launch_pool_pledge_records" % k ) local_var_params[k] = v del local_var_params['kwargs'] if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 raise ApiValueError("Invalid value for parameter `page` when calling `list_launch_pool_pledge_records`, must be a value greater than or equal to `1`") # noqa: E501 if self.api_client.client_side_validation and 'page_size' in local_var_params and local_var_params['page_size'] > 30: # noqa: E501 raise ApiValueError("Invalid value for parameter `page_size` when calling `list_launch_pool_pledge_records`, must be a value less than or equal to `30`") # noqa: E501 if self.api_client.client_side_validation and 'page_size' in local_var_params and local_var_params['page_size'] < 1: # noqa: E501 raise ApiValueError("Invalid value for parameter `page_size` when calling `list_launch_pool_pledge_records`, must be a value greater than or equal to `1`") # noqa: E501 if self.api_client.client_side_validation and 'start_time' in local_var_params and not re.search(r'^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$', local_var_params['start_time']): # noqa: E501 raise ApiValueError("Invalid value for parameter `start_time` when calling `list_launch_pool_pledge_records`, must conform to the pattern `/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$/`") # noqa: E501 if self.api_client.client_side_validation and 'end_time' in local_var_params and not re.search(r'^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$', local_var_params['end_time']): # noqa: E501 raise ApiValueError("Invalid value for parameter `end_time` when calling `list_launch_pool_pledge_records`, must conform to the pattern `/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$/`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 query_params.append(('page', local_var_params['page'])) # noqa: E501 if 'page_size' in local_var_params and local_var_params['page_size'] is not None: # noqa: E501 query_params.append(('pageSize', local_var_params['page_size'])) # noqa: E501 if 'type' in local_var_params and local_var_params['type'] is not None: # noqa: E501 query_params.append(('type', local_var_params['type'])) # noqa: E501 if 'start_time' in local_var_params and local_var_params['start_time'] is not None: # noqa: E501 query_params.append(('startTime', local_var_params['start_time'])) # noqa: E501 if 'end_time' in local_var_params and local_var_params['end_time'] is not None: # noqa: E501 query_params.append(('endTime', local_var_params['end_time'])) # noqa: E501 if 'coin' in local_var_params and local_var_params['coin'] is not None: # noqa: E501 query_params.append(('coin', local_var_params['coin'])) # noqa: E501 header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # Authentication setting auth_settings = ['apiv4'] # noqa: E501 return self.api_client.call_api( '/launch/user-pledge-records', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='list[LaunchPoolV4PledgeRecord]', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def list_launch_pool_reward_records(self, **kwargs): # noqa: E501 """Query user reward records # noqa: E501 Query the user's staking reward records. This endpoint requires user authentication. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_launch_pool_reward_records(async_req=True) >>> result = thread.get() :param bool async_req: execute request asynchronously :param int page: Page number, default 1 :param int page_size: Number of items per page, maximum 30 :param int start_time: Start timestamp :param int end_time: End Timestamp :param str coin: Reward currency :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :rtype: list[gate_api.LaunchPoolV4RewardRecord] :return: If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True return self.list_launch_pool_reward_records_with_http_info(**kwargs) # noqa: E501 def list_launch_pool_reward_records_with_http_info(self, **kwargs): # noqa: E501 """Query user reward records # noqa: E501 Query the user's staking reward records. This endpoint requires user authentication. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_launch_pool_reward_records_with_http_info(async_req=True) >>> result = thread.get() :param bool async_req: execute request asynchronously :param int page: Page number, default 1 :param int page_size: Number of items per page, maximum 30 :param int start_time: Start timestamp :param int end_time: End Timestamp :param str coin: Reward currency :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :rtype: tuple(list[gate_api.LaunchPoolV4RewardRecord], status_code(int), headers(HTTPHeaderDict)) :return: If the method is called asynchronously, returns the request thread. """ local_var_params = locals() all_params = [ 'page', 'page_size', 'start_time', 'end_time', 'coin' ] all_params.extend( [ 'async_req', '_return_http_data_only', '_preload_content', '_request_timeout' ] ) for k, v in six.iteritems(local_var_params['kwargs']): if k not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method list_launch_pool_reward_records" % k ) local_var_params[k] = v del local_var_params['kwargs'] if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 raise ApiValueError("Invalid value for parameter `page` when calling `list_launch_pool_reward_records`, must be a value greater than or equal to `1`") # noqa: E501 if self.api_client.client_side_validation and 'page_size' in local_var_params and local_var_params['page_size'] > 30: # noqa: E501 raise ApiValueError("Invalid value for parameter `page_size` when calling `list_launch_pool_reward_records`, must be a value less than or equal to `30`") # noqa: E501 if self.api_client.client_side_validation and 'page_size' in local_var_params and local_var_params['page_size'] < 1: # noqa: E501 raise ApiValueError("Invalid value for parameter `page_size` when calling `list_launch_pool_reward_records`, must be a value greater than or equal to `1`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 query_params.append(('page', local_var_params['page'])) # noqa: E501 if 'page_size' in local_var_params and local_var_params['page_size'] is not None: # noqa: E501 query_params.append(('pageSize', local_var_params['page_size'])) # noqa: E501 if 'start_time' in local_var_params and local_var_params['start_time'] is not None: # noqa: E501 query_params.append(('start_time', local_var_params['start_time'])) # noqa: E501 if 'end_time' in local_var_params and local_var_params['end_time'] is not None: # noqa: E501 query_params.append(('end_time', local_var_params['end_time'])) # noqa: E501 if 'coin' in local_var_params and local_var_params['coin'] is not None: # noqa: E501 query_params.append(('coin', local_var_params['coin'])) # noqa: E501 header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # Authentication setting auth_settings = ['apiv4'] # noqa: E501 return self.api_client.call_api( '/launch/get-user-reward-records', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='list[LaunchPoolV4RewardRecord]', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def get_hodler_airdrop_project_list(self, **kwargs): # noqa: E501 """Check the list of HODLer Airdrop activities # noqa: E501 Get the HODLer Airdrop activity list, which supports filtering by status, currency/project name, and participation status. This interface does not require user login, and logged in users can obtain personal participation information. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_hodler_airdrop_project_list(async_req=True) >>> result = thread.get() :param bool async_req: execute request asynchronously :param str status: Activity status filtering, optional values: ACTIVE (in progress + preheating), UNDERWAY (in progress), PREHEAT (preheating), FINISH (ended), return all if not passed :param str keyword: Currency/project name keywords, fuzzy matching :param int join: Participation filter: 0 all (default), 1 only participated :param int page: Page number, default 1 :param int size: Number of items per page, default 10 :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :rtype: list[gate_api.HodlerAirdropV4ProjectItem] :return: If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True return self.get_hodler_airdrop_project_list_with_http_info(**kwargs) # noqa: E501 def get_hodler_airdrop_project_list_with_http_info(self, **kwargs): # noqa: E501 """Check the list of HODLer Airdrop activities # noqa: E501 Get the HODLer Airdrop activity list, which supports filtering by status, currency/project name, and participation status. This interface does not require user login, and logged in users can obtain personal participation information. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_hodler_airdrop_project_list_with_http_info(async_req=True) >>> result = thread.get() :param bool async_req: execute request asynchronously :param str status: Activity status filtering, optional values: ACTIVE (in progress + preheating), UNDERWAY (in progress), PREHEAT (preheating), FINISH (ended), return all if not passed :param str keyword: Currency/project name keywords, fuzzy matching :param int join: Participation filter: 0 all (default), 1 only participated :param int page: Page number, default 1 :param int size: Number of items per page, default 10 :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :rtype: tuple(list[gate_api.HodlerAirdropV4ProjectItem], status_code(int), headers(HTTPHeaderDict)) :return: If the method is called asynchronously, returns the request thread. """ local_var_params = locals() all_params = [ 'status', 'keyword', 'join', 'page', 'size' ] all_params.extend( [ 'async_req', '_return_http_data_only', '_preload_content', '_request_timeout' ] ) for k, v in six.iteritems(local_var_params['kwargs']): if k not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_hodler_airdrop_project_list" % k ) local_var_params[k] = v del local_var_params['kwargs'] if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 raise ApiValueError("Invalid value for parameter `page` when calling `get_hodler_airdrop_project_list`, must be a value greater than or equal to `1`") # noqa: E501 if self.api_client.client_side_validation and 'size' in local_var_params and local_var_params['size'] < 1: # noqa: E501 raise ApiValueError("Invalid value for parameter `size` when calling `get_hodler_airdrop_project_list`, must be a value greater than or equal to `1`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] if 'status' in local_var_params and local_var_params['status'] is not None: # noqa: E501 query_params.append(('status', local_var_params['status'])) # noqa: E501 if 'keyword' in local_var_params and local_var_params['keyword'] is not None: # noqa: E501 query_params.append(('keyword', local_var_params['keyword'])) # noqa: E501 if 'join' in local_var_params and local_var_params['join'] is not None: # noqa: E501 query_params.append(('join', local_var_params['join'])) # noqa: E501 if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 query_params.append(('page', local_var_params['page'])) # noqa: E501 if 'size' in local_var_params and local_var_params['size'] is not None: # noqa: E501 query_params.append(('size', local_var_params['size'])) # noqa: E501 header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/launch/hodler-airdrop/project-list', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='list[HodlerAirdropV4ProjectItem]', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def hodler_airdrop_order(self, hodler_airdrop_v4_order_request, **kwargs): # noqa: E501 """Participate in the HODLer Airdrop event # noqa: E501 To participate in designated HODLer Airdrop activities, you need to hold GT. This interface requires user login authentication and must meet KYC requirements. It does not support sub-accounts and enterprise/institutional users. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.hodler_airdrop_order(hodler_airdrop_v4_order_request, async_req=True) >>> result = thread.get() :param bool async_req: execute request asynchronously :param HodlerAirdropV4OrderRequest hodler_airdrop_v4_order_request: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :rtype: gate_api.HodlerAirdropV4OrderResponse :return: If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True return self.hodler_airdrop_order_with_http_info(hodler_airdrop_v4_order_request, **kwargs) # noqa: E501 def hodler_airdrop_order_with_http_info(self, hodler_airdrop_v4_order_request, **kwargs): # noqa: E501 """Participate in the HODLer Airdrop event # noqa: E501 To participate in designated HODLer Airdrop activities, you need to hold GT. This interface requires user login authentication and must meet KYC requirements. It does not support sub-accounts and enterprise/institutional users. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.hodler_airdrop_order_with_http_info(hodler_airdrop_v4_order_request, async_req=True) >>> result = thread.get() :param bool async_req: execute request asynchronously :param HodlerAirdropV4OrderRequest hodler_airdrop_v4_order_request: (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :rtype: tuple(gate_api.HodlerAirdropV4OrderResponse, status_code(int), headers(HTTPHeaderDict)) :return: If the method is called asynchronously, returns the request thread. """ local_var_params = locals() all_params = [ 'hodler_airdrop_v4_order_request' ] all_params.extend( [ 'async_req', '_return_http_data_only', '_preload_content', '_request_timeout' ] ) for k, v in six.iteritems(local_var_params['kwargs']): if k not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method hodler_airdrop_order" % k ) local_var_params[k] = v del local_var_params['kwargs'] # verify the required parameter 'hodler_airdrop_v4_order_request' is set if self.api_client.client_side_validation and ('hodler_airdrop_v4_order_request' not in local_var_params or # noqa: E501 local_var_params['hodler_airdrop_v4_order_request'] is None): # noqa: E501 raise ApiValueError("Missing the required parameter `hodler_airdrop_v4_order_request` when calling `hodler_airdrop_order`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] header_params = {} form_params = [] local_var_files = {} body_params = None if 'hodler_airdrop_v4_order_request' in local_var_params: body_params = local_var_params['hodler_airdrop_v4_order_request'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['application/json']) # noqa: E501 # Authentication setting auth_settings = ['apiv4'] # noqa: E501 return self.api_client.call_api( '/launch/hodler-airdrop/order', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='HodlerAirdropV4OrderResponse', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def get_hodler_airdrop_user_order_records(self, **kwargs): # noqa: E501 """Check HODLer Airdrop participation records # noqa: E501 Query the user's HODLer Airdrop participation record and return the effective holdings and airdrop amount of each activity. This interface requires user login authentication. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_hodler_airdrop_user_order_records(async_req=True) >>> result = thread.get() :param bool async_req: execute request asynchronously :param str keyword: Currency name keyword filtering :param int start_timest: Start timestamp (seconds) :param int end_timest: end timestamp (seconds) :param int page: Page number, default 1 :param int size: Number of items per page, default 10 :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :rtype: list[gate_api.HodlerAirdropV4UserOrderRecord] :return: If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True return self.get_hodler_airdrop_user_order_records_with_http_info(**kwargs) # noqa: E501 def get_hodler_airdrop_user_order_records_with_http_info(self, **kwargs): # noqa: E501 """Check HODLer Airdrop participation records # noqa: E501 Query the user's HODLer Airdrop participation record and return the effective holdings and airdrop amount of each activity. This interface requires user login authentication. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_hodler_airdrop_user_order_records_with_http_info(async_req=True) >>> result = thread.get() :param bool async_req: execute request asynchronously :param str keyword: Currency name keyword filtering :param int start_timest: Start timestamp (seconds) :param int end_timest: end timestamp (seconds) :param int page: Page number, default 1 :param int size: Number of items per page, default 10 :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :rtype: tuple(list[gate_api.HodlerAirdropV4UserOrderRecord], status_code(int), headers(HTTPHeaderDict)) :return: If the method is called asynchronously, returns the request thread. """ local_var_params = locals() all_params = [ 'keyword', 'start_timest', 'end_timest', 'page', 'size' ] all_params.extend( [ 'async_req', '_return_http_data_only', '_preload_content', '_request_timeout' ] ) for k, v in six.iteritems(local_var_params['kwargs']): if k not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_hodler_airdrop_user_order_records" % k ) local_var_params[k] = v del local_var_params['kwargs'] if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 raise ApiValueError("Invalid value for parameter `page` when calling `get_hodler_airdrop_user_order_records`, must be a value greater than or equal to `1`") # noqa: E501 if self.api_client.client_side_validation and 'size' in local_var_params and local_var_params['size'] < 1: # noqa: E501 raise ApiValueError("Invalid value for parameter `size` when calling `get_hodler_airdrop_user_order_records`, must be a value greater than or equal to `1`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] if 'keyword' in local_var_params and local_var_params['keyword'] is not None: # noqa: E501 query_params.append(('keyword', local_var_params['keyword'])) # noqa: E501 if 'start_timest' in local_var_params and local_var_params['start_timest'] is not None: # noqa: E501 query_params.append(('start_timest', local_var_params['start_timest'])) # noqa: E501 if 'end_timest' in local_var_params and local_var_params['end_timest'] is not None: # noqa: E501 query_params.append(('end_timest', local_var_params['end_timest'])) # noqa: E501 if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 query_params.append(('page', local_var_params['page'])) # noqa: E501 if 'size' in local_var_params and local_var_params['size'] is not None: # noqa: E501 query_params.append(('size', local_var_params['size'])) # noqa: E501 header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # Authentication setting auth_settings = ['apiv4'] # noqa: E501 return self.api_client.call_api( '/launch/hodler-airdrop/user-order-records', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='list[HodlerAirdropV4UserOrderRecord]', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def get_hodler_airdrop_user_airdrop_records(self, **kwargs): # noqa: E501 """Query HODLer Airdrop records # noqa: E501 Query the HODLer Airdrop airdrop distribution record that the user has obtained, including basic airdrops, additional airdrops and automatic redemption status. This interface requires user login authentication. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_hodler_airdrop_user_airdrop_records(async_req=True) >>> result = thread.get() :param bool async_req: execute request asynchronously :param str keyword: Currency name keyword filtering :param int start_timest: Start timestamp (seconds) :param int end_timest: end timestamp (seconds) :param int page: Page number, default 1 :param int size: Number of items per page, default 10 :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :rtype: list[gate_api.HodlerAirdropV4UserAirdropRecord] :return: If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True return self.get_hodler_airdrop_user_airdrop_records_with_http_info(**kwargs) # noqa: E501 def get_hodler_airdrop_user_airdrop_records_with_http_info(self, **kwargs): # noqa: E501 """Query HODLer Airdrop records # noqa: E501 Query the HODLer Airdrop airdrop distribution record that the user has obtained, including basic airdrops, additional airdrops and automatic redemption status. This interface requires user login authentication. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_hodler_airdrop_user_airdrop_records_with_http_info(async_req=True) >>> result = thread.get() :param bool async_req: execute request asynchronously :param str keyword: Currency name keyword filtering :param int start_timest: Start timestamp (seconds) :param int end_timest: end timestamp (seconds) :param int page: Page number, default 1 :param int size: Number of items per page, default 10 :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :rtype: tuple(list[gate_api.HodlerAirdropV4UserAirdropRecord], status_code(int), headers(HTTPHeaderDict)) :return: If the method is called asynchronously, returns the request thread. """ local_var_params = locals() all_params = [ 'keyword', 'start_timest', 'end_timest', 'page', 'size' ] all_params.extend( [ 'async_req', '_return_http_data_only', '_preload_content', '_request_timeout' ] ) for k, v in six.iteritems(local_var_params['kwargs']): if k not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_hodler_airdrop_user_airdrop_records" % k ) local_var_params[k] = v del local_var_params['kwargs'] if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 raise ApiValueError("Invalid value for parameter `page` when calling `get_hodler_airdrop_user_airdrop_records`, must be a value greater than or equal to `1`") # noqa: E501 if self.api_client.client_side_validation and 'size' in local_var_params and local_var_params['size'] < 1: # noqa: E501 raise ApiValueError("Invalid value for parameter `size` when calling `get_hodler_airdrop_user_airdrop_records`, must be a value greater than or equal to `1`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] if 'keyword' in local_var_params and local_var_params['keyword'] is not None: # noqa: E501 query_params.append(('keyword', local_var_params['keyword'])) # noqa: E501 if 'start_timest' in local_var_params and local_var_params['start_timest'] is not None: # noqa: E501 query_params.append(('start_timest', local_var_params['start_timest'])) # noqa: E501 if 'end_timest' in local_var_params and local_var_params['end_timest'] is not None: # noqa: E501 query_params.append(('end_timest', local_var_params['end_timest'])) # noqa: E501 if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 query_params.append(('page', local_var_params['page'])) # noqa: E501 if 'size' in local_var_params and local_var_params['size'] is not None: # noqa: E501 query_params.append(('size', local_var_params['size'])) # noqa: E501 header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # Authentication setting auth_settings = ['apiv4'] # noqa: E501 return self.api_client.call_api( '/launch/hodler-airdrop/user-airdrop-records', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='list[HodlerAirdropV4UserAirdropRecord]', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def get_candy_drop_activity_list_v4(self, **kwargs): # noqa: E501 """Query activity list # noqa: E501 Supports multi-dimensional filtering of CandyDrop activities, and each query returns the top ten data sorted by the list. No login required. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_candy_drop_activity_list_v4(async_req=True) >>> result = thread.get() :param bool async_req: execute request asynchronously :param str status: Activity status filtering: ongoing (in progress), upcoming (about to start), ended (ended), if not passed, all will be returned :param str rule_name: Task type filtering: spot (spot), futures (contract), deposit (recharge), invite (invitation), trading_bot (trading robot), simple_earn (Yu Bibao), first_deposit (first deposit), alpha (Alpha), flash_swap (flash swap), tradfi (TradFi), etf (ETF) :param str register_status: Participation status screening: registered (already participated), unregistered (not participated), if not passed, all will be returned :param str currency: Currency name filter :param int limit: Number of items returned, default 10, maximum 30 :param int offset: Offset, default 0 :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :rtype: list[gate_api.CandyDropV4ActivityCd01] :return: If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True return self.get_candy_drop_activity_list_v4_with_http_info(**kwargs) # noqa: E501 def get_candy_drop_activity_list_v4_with_http_info(self, **kwargs): # noqa: E501 """Query activity list # noqa: E501 Supports multi-dimensional filtering of CandyDrop activities, and each query returns the top ten data sorted by the list. No login required. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_candy_drop_activity_list_v4_with_http_info(async_req=True) >>> result = thread.get() :param bool async_req: execute request asynchronously :param str status: Activity status filtering: ongoing (in progress), upcoming (about to start), ended (ended), if not passed, all will be returned :param str rule_name: Task type filtering: spot (spot), futures (contract), deposit (recharge), invite (invitation), trading_bot (trading robot), simple_earn (Yu Bibao), first_deposit (first deposit), alpha (Alpha), flash_swap (flash swap), tradfi (TradFi), etf (ETF) :param str register_status: Participation status screening: registered (already participated), unregistered (not participated), if not passed, all will be returned :param str currency: Currency name filter :param int limit: Number of items returned, default 10, maximum 30 :param int offset: Offset, default 0 :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :rtype: tuple(list[gate_api.CandyDropV4ActivityCd01], status_code(int), headers(HTTPHeaderDict)) :return: If the method is called asynchronously, returns the request thread. """ local_var_params = locals() all_params = [ 'status', 'rule_name', 'register_status', 'currency', 'limit', 'offset' ] all_params.extend( [ 'async_req', '_return_http_data_only', '_preload_content', '_request_timeout' ] ) for k, v in six.iteritems(local_var_params['kwargs']): if k not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_candy_drop_activity_list_v4" % k ) local_var_params[k] = v del local_var_params['kwargs'] if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] > 30: # noqa: E501 raise ApiValueError("Invalid value for parameter `limit` when calling `get_candy_drop_activity_list_v4`, must be a value less than or equal to `30`") # noqa: E501 if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 1: # noqa: E501 raise ApiValueError("Invalid value for parameter `limit` when calling `get_candy_drop_activity_list_v4`, must be a value greater than or equal to `1`") # noqa: E501 if self.api_client.client_side_validation and 'offset' in local_var_params and local_var_params['offset'] < 0: # noqa: E501 raise ApiValueError("Invalid value for parameter `offset` when calling `get_candy_drop_activity_list_v4`, must be a value greater than or equal to `0`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] if 'status' in local_var_params and local_var_params['status'] is not None: # noqa: E501 query_params.append(('status', local_var_params['status'])) # noqa: E501 if 'rule_name' in local_var_params and local_var_params['rule_name'] is not None: # noqa: E501 query_params.append(('rule_name', local_var_params['rule_name'])) # noqa: E501 if 'register_status' in local_var_params and local_var_params['register_status'] is not None: # noqa: E501 query_params.append(('register_status', local_var_params['register_status'])) # noqa: E501 if 'currency' in local_var_params and local_var_params['currency'] is not None: # noqa: E501 query_params.append(('currency', local_var_params['currency'])) # noqa: E501 if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 if 'offset' in local_var_params and local_var_params['offset'] is not None: # noqa: E501 query_params.append(('offset', local_var_params['offset'])) # noqa: E501 header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/launch/candydrop/activity-list', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='list[CandyDropV4ActivityCd01]', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def register_candy_drop_v4(self, candy_drop_v4_register_req_cd02, **kwargs): # noqa: E501 """Sign up for events # noqa: E501 Sign up for select CandyDrop events. Login is required and API Key signature authentication is required. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.register_candy_drop_v4(candy_drop_v4_register_req_cd02, async_req=True) >>> result = thread.get() :param bool async_req: execute request asynchronously :param CandyDropV4RegisterReqCd02 candy_drop_v4_register_req_cd02: (required) :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :rtype: gate_api.CandyDropV4RegisterRespCd02 :return: If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True return self.register_candy_drop_v4_with_http_info(candy_drop_v4_register_req_cd02, **kwargs) # noqa: E501 def register_candy_drop_v4_with_http_info(self, candy_drop_v4_register_req_cd02, **kwargs): # noqa: E501 """Sign up for events # noqa: E501 Sign up for select CandyDrop events. Login is required and API Key signature authentication is required. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.register_candy_drop_v4_with_http_info(candy_drop_v4_register_req_cd02, async_req=True) >>> result = thread.get() :param bool async_req: execute request asynchronously :param CandyDropV4RegisterReqCd02 candy_drop_v4_register_req_cd02: (required) :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :rtype: tuple(gate_api.CandyDropV4RegisterRespCd02, status_code(int), headers(HTTPHeaderDict)) :return: If the method is called asynchronously, returns the request thread. """ local_var_params = locals() all_params = [ 'candy_drop_v4_register_req_cd02' ] all_params.extend( [ 'async_req', '_return_http_data_only', '_preload_content', '_request_timeout' ] ) for k, v in six.iteritems(local_var_params['kwargs']): if k not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method register_candy_drop_v4" % k ) local_var_params[k] = v del local_var_params['kwargs'] # verify the required parameter 'candy_drop_v4_register_req_cd02' is set if self.api_client.client_side_validation and ('candy_drop_v4_register_req_cd02' not in local_var_params or # noqa: E501 local_var_params['candy_drop_v4_register_req_cd02'] is None): # noqa: E501 raise ApiValueError("Missing the required parameter `candy_drop_v4_register_req_cd02` when calling `register_candy_drop_v4`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] header_params = {} form_params = [] local_var_files = {} body_params = None if 'candy_drop_v4_register_req_cd02' in local_var_params: body_params = local_var_params['candy_drop_v4_register_req_cd02'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 ['application/json']) # noqa: E501 # Authentication setting auth_settings = ['apiv4'] # noqa: E501 return self.api_client.call_api( '/launch/candydrop/register', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='CandyDropV4RegisterRespCd02', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def get_candy_drop_activity_rules_v4(self, **kwargs): # noqa: E501 """Query activity rules # noqa: E501 Query the rules of a specific activity, including prize pool and corresponding task data. No login required. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_candy_drop_activity_rules_v4(async_req=True) >>> result = thread.get() :param bool async_req: execute request asynchronously :param int activity_id: Activity ID, choose one from currency, at least one of them must be passed :param str currency: Project/currency name, choose one from activity_id, at least one of them must be passed :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :rtype: gate_api.CandyDropV4ActivityRulesCd03 :return: If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True return self.get_candy_drop_activity_rules_v4_with_http_info(**kwargs) # noqa: E501 def get_candy_drop_activity_rules_v4_with_http_info(self, **kwargs): # noqa: E501 """Query activity rules # noqa: E501 Query the rules of a specific activity, including prize pool and corresponding task data. No login required. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_candy_drop_activity_rules_v4_with_http_info(async_req=True) >>> result = thread.get() :param bool async_req: execute request asynchronously :param int activity_id: Activity ID, choose one from currency, at least one of them must be passed :param str currency: Project/currency name, choose one from activity_id, at least one of them must be passed :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :rtype: tuple(gate_api.CandyDropV4ActivityRulesCd03, status_code(int), headers(HTTPHeaderDict)) :return: If the method is called asynchronously, returns the request thread. """ local_var_params = locals() all_params = [ 'activity_id', 'currency' ] all_params.extend( [ 'async_req', '_return_http_data_only', '_preload_content', '_request_timeout' ] ) for k, v in six.iteritems(local_var_params['kwargs']): if k not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_candy_drop_activity_rules_v4" % k ) local_var_params[k] = v del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] if 'activity_id' in local_var_params and local_var_params['activity_id'] is not None: # noqa: E501 query_params.append(('activity_id', local_var_params['activity_id'])) # noqa: E501 if 'currency' in local_var_params and local_var_params['currency'] is not None: # noqa: E501 query_params.append(('currency', local_var_params['currency'])) # noqa: E501 header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # Authentication setting auth_settings = [] # noqa: E501 return self.api_client.call_api( '/launch/candydrop/activity-rules', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='CandyDropV4ActivityRulesCd03', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def get_candy_drop_task_progress_v4(self, **kwargs): # noqa: E501 """Query task completion progress # noqa: E501 Check the completion progress of tasks that are in progress and have been registered/participated. Login required. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_candy_drop_task_progress_v4(async_req=True) >>> result = thread.get() :param bool async_req: execute request asynchronously :param int activity_id: Activity ID, choose one from currency, at least one of them must be passed :param str currency: Project/currency name, choose one from activity_id, at least one of them must be passed :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :rtype: gate_api.CandyDropV4TaskProgressCd04 :return: If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True return self.get_candy_drop_task_progress_v4_with_http_info(**kwargs) # noqa: E501 def get_candy_drop_task_progress_v4_with_http_info(self, **kwargs): # noqa: E501 """Query task completion progress # noqa: E501 Check the completion progress of tasks that are in progress and have been registered/participated. Login required. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_candy_drop_task_progress_v4_with_http_info(async_req=True) >>> result = thread.get() :param bool async_req: execute request asynchronously :param int activity_id: Activity ID, choose one from currency, at least one of them must be passed :param str currency: Project/currency name, choose one from activity_id, at least one of them must be passed :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :rtype: tuple(gate_api.CandyDropV4TaskProgressCd04, status_code(int), headers(HTTPHeaderDict)) :return: If the method is called asynchronously, returns the request thread. """ local_var_params = locals() all_params = [ 'activity_id', 'currency' ] all_params.extend( [ 'async_req', '_return_http_data_only', '_preload_content', '_request_timeout' ] ) for k, v in six.iteritems(local_var_params['kwargs']): if k not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_candy_drop_task_progress_v4" % k ) local_var_params[k] = v del local_var_params['kwargs'] collection_formats = {} path_params = {} query_params = [] if 'activity_id' in local_var_params and local_var_params['activity_id'] is not None: # noqa: E501 query_params.append(('activity_id', local_var_params['activity_id'])) # noqa: E501 if 'currency' in local_var_params and local_var_params['currency'] is not None: # noqa: E501 query_params.append(('currency', local_var_params['currency'])) # noqa: E501 header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # Authentication setting auth_settings = ['apiv4'] # noqa: E501 return self.api_client.call_api( '/launch/candydrop/task-progress', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='CandyDropV4TaskProgressCd04', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def get_candy_drop_participation_records_v4(self, **kwargs): # noqa: E501 """Query participation records # noqa: E501 Query the user's CandyDrop participation details. Login required. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_candy_drop_participation_records_v4(async_req=True) >>> result = thread.get() :param bool async_req: execute request asynchronously :param str currency: Currency name filter :param str status: Status filtering: ongoing (in progress), awaiting_draw (to be drawn), won (already won), not_win (not won) :param int start_time: Start time (Unix timestamp seconds) :param int end_time: End time (Unix timestamp seconds) :param int page: Page number, default 1 :param int limit: Number of items per page, default 10, maximum 30 :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :rtype: list[gate_api.CandyDropV4ParticipationRecordCd05] :return: If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True return self.get_candy_drop_participation_records_v4_with_http_info(**kwargs) # noqa: E501 def get_candy_drop_participation_records_v4_with_http_info(self, **kwargs): # noqa: E501 """Query participation records # noqa: E501 Query the user's CandyDrop participation details. Login required. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_candy_drop_participation_records_v4_with_http_info(async_req=True) >>> result = thread.get() :param bool async_req: execute request asynchronously :param str currency: Currency name filter :param str status: Status filtering: ongoing (in progress), awaiting_draw (to be drawn), won (already won), not_win (not won) :param int start_time: Start time (Unix timestamp seconds) :param int end_time: End time (Unix timestamp seconds) :param int page: Page number, default 1 :param int limit: Number of items per page, default 10, maximum 30 :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :rtype: tuple(list[gate_api.CandyDropV4ParticipationRecordCd05], status_code(int), headers(HTTPHeaderDict)) :return: If the method is called asynchronously, returns the request thread. """ local_var_params = locals() all_params = [ 'currency', 'status', 'start_time', 'end_time', 'page', 'limit' ] all_params.extend( [ 'async_req', '_return_http_data_only', '_preload_content', '_request_timeout' ] ) for k, v in six.iteritems(local_var_params['kwargs']): if k not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_candy_drop_participation_records_v4" % k ) local_var_params[k] = v del local_var_params['kwargs'] if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 raise ApiValueError("Invalid value for parameter `page` when calling `get_candy_drop_participation_records_v4`, must be a value greater than or equal to `1`") # noqa: E501 if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] > 30: # noqa: E501 raise ApiValueError("Invalid value for parameter `limit` when calling `get_candy_drop_participation_records_v4`, must be a value less than or equal to `30`") # noqa: E501 if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 1: # noqa: E501 raise ApiValueError("Invalid value for parameter `limit` when calling `get_candy_drop_participation_records_v4`, must be a value greater than or equal to `1`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] if 'currency' in local_var_params and local_var_params['currency'] is not None: # noqa: E501 query_params.append(('currency', local_var_params['currency'])) # noqa: E501 if 'status' in local_var_params and local_var_params['status'] is not None: # noqa: E501 query_params.append(('status', local_var_params['status'])) # noqa: E501 if 'start_time' in local_var_params and local_var_params['start_time'] is not None: # noqa: E501 query_params.append(('start_time', local_var_params['start_time'])) # noqa: E501 if 'end_time' in local_var_params and local_var_params['end_time'] is not None: # noqa: E501 query_params.append(('end_time', local_var_params['end_time'])) # noqa: E501 if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 query_params.append(('page', local_var_params['page'])) # noqa: E501 if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # Authentication setting auth_settings = ['apiv4'] # noqa: E501 return self.api_client.call_api( '/launch/candydrop/participation-records', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='list[CandyDropV4ParticipationRecordCd05]', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats) def get_candy_drop_airdrop_records_v4(self, **kwargs): # noqa: E501 """Query airdrop records # noqa: E501 Query the user's CandyDrop airdrop details. Login required. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_candy_drop_airdrop_records_v4(async_req=True) >>> result = thread.get() :param bool async_req: execute request asynchronously :param str currency: Currency name filter :param int start_time: Start time (Unix timestamp seconds) :param int end_time: End time (Unix timestamp seconds) :param int page: Page number, default 1 :param int limit: Number of items per page, default 10, maximum 30 :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :rtype: list[gate_api.CandyDropV4AirdropRecordCd06] :return: If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True return self.get_candy_drop_airdrop_records_v4_with_http_info(**kwargs) # noqa: E501 def get_candy_drop_airdrop_records_v4_with_http_info(self, **kwargs): # noqa: E501 """Query airdrop records # noqa: E501 Query the user's CandyDrop airdrop details. Login required. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_candy_drop_airdrop_records_v4_with_http_info(async_req=True) >>> result = thread.get() :param bool async_req: execute request asynchronously :param str currency: Currency name filter :param int start_time: Start time (Unix timestamp seconds) :param int end_time: End time (Unix timestamp seconds) :param int page: Page number, default 1 :param int limit: Number of items per page, default 10, maximum 30 :param _return_http_data_only: response data without head status code and headers :param _preload_content: if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True. :param _request_timeout: timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts. :rtype: tuple(list[gate_api.CandyDropV4AirdropRecordCd06], status_code(int), headers(HTTPHeaderDict)) :return: If the method is called asynchronously, returns the request thread. """ local_var_params = locals() all_params = [ 'currency', 'start_time', 'end_time', 'page', 'limit' ] all_params.extend( [ 'async_req', '_return_http_data_only', '_preload_content', '_request_timeout' ] ) for k, v in six.iteritems(local_var_params['kwargs']): if k not in all_params: raise ApiTypeError( "Got an unexpected keyword argument '%s'" " to method get_candy_drop_airdrop_records_v4" % k ) local_var_params[k] = v del local_var_params['kwargs'] if self.api_client.client_side_validation and 'page' in local_var_params and local_var_params['page'] < 1: # noqa: E501 raise ApiValueError("Invalid value for parameter `page` when calling `get_candy_drop_airdrop_records_v4`, must be a value greater than or equal to `1`") # noqa: E501 if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] > 30: # noqa: E501 raise ApiValueError("Invalid value for parameter `limit` when calling `get_candy_drop_airdrop_records_v4`, must be a value less than or equal to `30`") # noqa: E501 if self.api_client.client_side_validation and 'limit' in local_var_params and local_var_params['limit'] < 1: # noqa: E501 raise ApiValueError("Invalid value for parameter `limit` when calling `get_candy_drop_airdrop_records_v4`, must be a value greater than or equal to `1`") # noqa: E501 collection_formats = {} path_params = {} query_params = [] if 'currency' in local_var_params and local_var_params['currency'] is not None: # noqa: E501 query_params.append(('currency', local_var_params['currency'])) # noqa: E501 if 'start_time' in local_var_params and local_var_params['start_time'] is not None: # noqa: E501 query_params.append(('start_time', local_var_params['start_time'])) # noqa: E501 if 'end_time' in local_var_params and local_var_params['end_time'] is not None: # noqa: E501 query_params.append(('end_time', local_var_params['end_time'])) # noqa: E501 if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501 query_params.append(('page', local_var_params['page'])) # noqa: E501 if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501 query_params.append(('limit', local_var_params['limit'])) # noqa: E501 header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # Authentication setting auth_settings = ['apiv4'] # noqa: E501 return self.api_client.call_api( '/launch/candydrop/airdrop-records', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, response_type='list[CandyDropV4AirdropRecordCd06]', # noqa: E501 auth_settings=auth_settings, async_req=local_var_params.get('async_req'), _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501 _preload_content=local_var_params.get('_preload_content', True), _request_timeout=local_var_params.get('_request_timeout'), collection_formats=collection_formats)