chainstream-sdk 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (261) hide show
  1. chainstream/__init__.py +46 -0
  2. chainstream/client.py +104 -0
  3. chainstream/openapi_client/__init__.py +156 -0
  4. chainstream/openapi_client/api/__init__.py +20 -0
  5. chainstream/openapi_client/api/blockchain_api.py +549 -0
  6. chainstream/openapi_client/api/defi_sol_moonshot_api.py +590 -0
  7. chainstream/openapi_client/api/defi_sol_pumpfun_api.py +314 -0
  8. chainstream/openapi_client/api/dex_api.py +1576 -0
  9. chainstream/openapi_client/api/dex_pool_api.py +645 -0
  10. chainstream/openapi_client/api/endpoint_api.py +1934 -0
  11. chainstream/openapi_client/api/ipfs_api.py +283 -0
  12. chainstream/openapi_client/api/jobs_api.py +562 -0
  13. chainstream/openapi_client/api/kyt_api.py +3743 -0
  14. chainstream/openapi_client/api/ranking_api.py +2067 -0
  15. chainstream/openapi_client/api/red_packet_api.py +2444 -0
  16. chainstream/openapi_client/api/token_api.py +9211 -0
  17. chainstream/openapi_client/api/trade_api.py +1352 -0
  18. chainstream/openapi_client/api/transaction_api.py +882 -0
  19. chainstream/openapi_client/api/wallet_api.py +1608 -0
  20. chainstream/openapi_client/api/watchlist_api.py +316 -0
  21. chainstream/openapi_client/api_client.py +801 -0
  22. chainstream/openapi_client/api_response.py +21 -0
  23. chainstream/openapi_client/configuration.py +572 -0
  24. chainstream/openapi_client/exceptions.py +217 -0
  25. chainstream/openapi_client/models/__init__.py +122 -0
  26. chainstream/openapi_client/models/address_exposure.py +94 -0
  27. chainstream/openapi_client/models/address_risk_response_dto.py +112 -0
  28. chainstream/openapi_client/models/alert_detail.py +100 -0
  29. chainstream/openapi_client/models/alterya_identification.py +106 -0
  30. chainstream/openapi_client/models/balance_change_type.py +38 -0
  31. chainstream/openapi_client/models/balance_token_type.py +38 -0
  32. chainstream/openapi_client/models/balance_update_dto.py +130 -0
  33. chainstream/openapi_client/models/balance_update_page.py +104 -0
  34. chainstream/openapi_client/models/blockchain_dto.py +94 -0
  35. chainstream/openapi_client/models/blockchain_latest_block_dto.py +90 -0
  36. chainstream/openapi_client/models/boolean_result_dto.py +88 -0
  37. chainstream/openapi_client/models/calculate_pnl_input.py +88 -0
  38. chainstream/openapi_client/models/candle.py +101 -0
  39. chainstream/openapi_client/models/chain.py +39 -0
  40. chainstream/openapi_client/models/chain_symbol.py +39 -0
  41. chainstream/openapi_client/models/chainalysis_address_identification.py +92 -0
  42. chainstream/openapi_client/models/claim_red_packet_input.py +103 -0
  43. chainstream/openapi_client/models/create_endpoint_input.py +102 -0
  44. chainstream/openapi_client/models/create_red_packet_input.py +112 -0
  45. chainstream/openapi_client/models/create_red_packet_reply.py +90 -0
  46. chainstream/openapi_client/models/create_token_input.py +110 -0
  47. chainstream/openapi_client/models/create_token_reply.py +90 -0
  48. chainstream/openapi_client/models/dev_token_dto.py +106 -0
  49. chainstream/openapi_client/models/dex_dto.py +94 -0
  50. chainstream/openapi_client/models/dex_page.py +106 -0
  51. chainstream/openapi_client/models/dex_pool_dto.py +161 -0
  52. chainstream/openapi_client/models/dex_pool_snapshot_dto.py +111 -0
  53. chainstream/openapi_client/models/dex_pool_snapshot_page.py +104 -0
  54. chainstream/openapi_client/models/dex_pool_token_liquidity.py +100 -0
  55. chainstream/openapi_client/models/dex_pool_token_snapshot_dto.py +100 -0
  56. chainstream/openapi_client/models/dex_quote_response.py +98 -0
  57. chainstream/openapi_client/models/direct_exposure_detail.py +90 -0
  58. chainstream/openapi_client/models/endpoint_list_response.py +102 -0
  59. chainstream/openapi_client/models/endpoint_operation_response.py +88 -0
  60. chainstream/openapi_client/models/endpoint_response.py +108 -0
  61. chainstream/openapi_client/models/endpoint_secret_response.py +88 -0
  62. chainstream/openapi_client/models/estimate_gas_limit_input.py +94 -0
  63. chainstream/openapi_client/models/estimate_gas_limit_response.py +90 -0
  64. chainstream/openapi_client/models/filter_condition.py +102 -0
  65. chainstream/openapi_client/models/gas_price_response.py +90 -0
  66. chainstream/openapi_client/models/job_dto.py +90 -0
  67. chainstream/openapi_client/models/job_streaming_dto.py +90 -0
  68. chainstream/openapi_client/models/kyt_register_transfer_request.py +108 -0
  69. chainstream/openapi_client/models/kyt_register_withdrawal_request.py +111 -0
  70. chainstream/openapi_client/models/link.py +97 -0
  71. chainstream/openapi_client/models/moonshot_create_token_input.py +145 -0
  72. chainstream/openapi_client/models/moonshot_create_token_reply.py +90 -0
  73. chainstream/openapi_client/models/moonshot_submit_create_token200_response.py +90 -0
  74. chainstream/openapi_client/models/moonshot_submit_create_token_input.py +90 -0
  75. chainstream/openapi_client/models/network_identification_org.py +88 -0
  76. chainstream/openapi_client/models/on_chain_activity.py +88 -0
  77. chainstream/openapi_client/models/pump_create_token_input.py +155 -0
  78. chainstream/openapi_client/models/pump_create_token_reply.py +90 -0
  79. chainstream/openapi_client/models/red_packet_claim_dto.py +103 -0
  80. chainstream/openapi_client/models/red_packet_claims_page.py +104 -0
  81. chainstream/openapi_client/models/red_packet_dto.py +121 -0
  82. chainstream/openapi_client/models/red_packet_reply.py +88 -0
  83. chainstream/openapi_client/models/red_packet_send_tx_input.py +88 -0
  84. chainstream/openapi_client/models/red_packet_send_tx_response.py +88 -0
  85. chainstream/openapi_client/models/red_packets_page.py +104 -0
  86. chainstream/openapi_client/models/register_address_request.py +88 -0
  87. chainstream/openapi_client/models/register_address_response_dto.py +88 -0
  88. chainstream/openapi_client/models/resolution.py +46 -0
  89. chainstream/openapi_client/models/send_tx_input.py +102 -0
  90. chainstream/openapi_client/models/send_tx_response.py +92 -0
  91. chainstream/openapi_client/models/swap_input.py +119 -0
  92. chainstream/openapi_client/models/swap_reply.py +90 -0
  93. chainstream/openapi_client/models/swap_route_input.py +127 -0
  94. chainstream/openapi_client/models/swap_route_response.py +98 -0
  95. chainstream/openapi_client/models/token.py +158 -0
  96. chainstream/openapi_client/models/token_creation_dto.py +107 -0
  97. chainstream/openapi_client/models/token_creation_page.py +106 -0
  98. chainstream/openapi_client/models/token_creators_dto.py +92 -0
  99. chainstream/openapi_client/models/token_extra_dto.py +128 -0
  100. chainstream/openapi_client/models/token_holder.py +94 -0
  101. chainstream/openapi_client/models/token_holder_page.py +106 -0
  102. chainstream/openapi_client/models/token_liquidity_snapshot_dto.py +106 -0
  103. chainstream/openapi_client/models/token_liquidity_snapshot_page.py +104 -0
  104. chainstream/openapi_client/models/token_list_page.py +106 -0
  105. chainstream/openapi_client/models/token_market_data.py +174 -0
  106. chainstream/openapi_client/models/token_metadata.py +132 -0
  107. chainstream/openapi_client/models/token_page.py +108 -0
  108. chainstream/openapi_client/models/token_price_dto.py +94 -0
  109. chainstream/openapi_client/models/token_price_page.py +106 -0
  110. chainstream/openapi_client/models/token_social_medias_dto.py +112 -0
  111. chainstream/openapi_client/models/token_stat.py +340 -0
  112. chainstream/openapi_client/models/token_trader.py +113 -0
  113. chainstream/openapi_client/models/token_trader_tag.py +45 -0
  114. chainstream/openapi_client/models/top_traders_dto.py +110 -0
  115. chainstream/openapi_client/models/top_traders_page.py +106 -0
  116. chainstream/openapi_client/models/trade_detail_dto.py +136 -0
  117. chainstream/openapi_client/models/trade_event.py +113 -0
  118. chainstream/openapi_client/models/trade_page.py +106 -0
  119. chainstream/openapi_client/models/trade_type.py +38 -0
  120. chainstream/openapi_client/models/transfer_alerts_response_dto.py +96 -0
  121. chainstream/openapi_client/models/transfer_base_response_dto.py +112 -0
  122. chainstream/openapi_client/models/transfer_direct_exposure_response_dto.py +92 -0
  123. chainstream/openapi_client/models/transfer_network_identifications_response_dto.py +98 -0
  124. chainstream/openapi_client/models/update_endpoint_input.py +104 -0
  125. chainstream/openapi_client/models/wallet_balance_detail_dto.py +136 -0
  126. chainstream/openapi_client/models/wallet_balances_dto.py +100 -0
  127. chainstream/openapi_client/models/wallet_pnl_dto.py +132 -0
  128. chainstream/openapi_client/models/withdrawal_address_identifications_response_dto.py +98 -0
  129. chainstream/openapi_client/models/withdrawal_base_response_dto.py +106 -0
  130. chainstream/openapi_client/models/withdrawal_fraud_assessment_response_dto.py +96 -0
  131. chainstream/openapi_client/rest.py +213 -0
  132. chainstream/openapi_client/test/__init__.py +0 -0
  133. chainstream/openapi_client/test/test_address_exposure.py +59 -0
  134. chainstream/openapi_client/test/test_address_risk_response_dto.py +81 -0
  135. chainstream/openapi_client/test/test_alert_detail.py +65 -0
  136. chainstream/openapi_client/test/test_alterya_identification.py +69 -0
  137. chainstream/openapi_client/test/test_balance_change_type.py +34 -0
  138. chainstream/openapi_client/test/test_balance_token_type.py +34 -0
  139. chainstream/openapi_client/test/test_balance_update_dto.py +93 -0
  140. chainstream/openapi_client/test/test_balance_update_page.py +105 -0
  141. chainstream/openapi_client/test/test_blockchain_api.py +46 -0
  142. chainstream/openapi_client/test/test_blockchain_dto.py +59 -0
  143. chainstream/openapi_client/test/test_blockchain_latest_block_dto.py +55 -0
  144. chainstream/openapi_client/test/test_boolean_result_dto.py +53 -0
  145. chainstream/openapi_client/test/test_calculate_pnl_input.py +52 -0
  146. chainstream/openapi_client/test/test_candle.py +65 -0
  147. chainstream/openapi_client/test/test_chain.py +34 -0
  148. chainstream/openapi_client/test/test_chain_symbol.py +34 -0
  149. chainstream/openapi_client/test/test_chainalysis_address_identification.py +57 -0
  150. chainstream/openapi_client/test/test_claim_red_packet_input.py +58 -0
  151. chainstream/openapi_client/test/test_create_endpoint_input.py +63 -0
  152. chainstream/openapi_client/test/test_create_red_packet_input.py +64 -0
  153. chainstream/openapi_client/test/test_create_red_packet_reply.py +55 -0
  154. chainstream/openapi_client/test/test_create_token_input.py +63 -0
  155. chainstream/openapi_client/test/test_create_token_reply.py +55 -0
  156. chainstream/openapi_client/test/test_defi_sol_moonshot_api.py +46 -0
  157. chainstream/openapi_client/test/test_defi_sol_pumpfun_api.py +39 -0
  158. chainstream/openapi_client/test/test_dev_token_dto.py +441 -0
  159. chainstream/openapi_client/test/test_dex_api.py +67 -0
  160. chainstream/openapi_client/test/test_dex_dto.py +56 -0
  161. chainstream/openapi_client/test/test_dex_page.py +70 -0
  162. chainstream/openapi_client/test/test_dex_pool_api.py +46 -0
  163. chainstream/openapi_client/test/test_dex_pool_dto.py +88 -0
  164. chainstream/openapi_client/test/test_dex_pool_snapshot_dto.py +96 -0
  165. chainstream/openapi_client/test/test_dex_pool_snapshot_page.py +81 -0
  166. chainstream/openapi_client/test/test_dex_pool_token_liquidity.py +65 -0
  167. chainstream/openapi_client/test/test_dex_pool_token_snapshot_dto.py +65 -0
  168. chainstream/openapi_client/test/test_dex_quote_response.py +57 -0
  169. chainstream/openapi_client/test/test_direct_exposure_detail.py +55 -0
  170. chainstream/openapi_client/test/test_endpoint_api.py +81 -0
  171. chainstream/openapi_client/test/test_endpoint_list_response.py +72 -0
  172. chainstream/openapi_client/test/test_endpoint_operation_response.py +52 -0
  173. chainstream/openapi_client/test/test_endpoint_response.py +66 -0
  174. chainstream/openapi_client/test/test_endpoint_secret_response.py +52 -0
  175. chainstream/openapi_client/test/test_estimate_gas_limit_input.py +58 -0
  176. chainstream/openapi_client/test/test_estimate_gas_limit_response.py +55 -0
  177. chainstream/openapi_client/test/test_filter_condition.py +54 -0
  178. chainstream/openapi_client/test/test_gas_price_response.py +55 -0
  179. chainstream/openapi_client/test/test_ipfs_api.py +39 -0
  180. chainstream/openapi_client/test/test_job_dto.py +55 -0
  181. chainstream/openapi_client/test/test_job_streaming_dto.py +55 -0
  182. chainstream/openapi_client/test/test_jobs_api.py +46 -0
  183. chainstream/openapi_client/test/test_kyt_api.py +130 -0
  184. chainstream/openapi_client/test/test_kyt_register_transfer_request.py +59 -0
  185. chainstream/openapi_client/test/test_kyt_register_withdrawal_request.py +65 -0
  186. chainstream/openapi_client/test/test_link.py +55 -0
  187. chainstream/openapi_client/test/test_moonshot_create_token_input.py +79 -0
  188. chainstream/openapi_client/test/test_moonshot_create_token_reply.py +55 -0
  189. chainstream/openapi_client/test/test_moonshot_submit_create_token200_response.py +53 -0
  190. chainstream/openapi_client/test/test_moonshot_submit_create_token_input.py +54 -0
  191. chainstream/openapi_client/test/test_network_identification_org.py +53 -0
  192. chainstream/openapi_client/test/test_on_chain_activity.py +53 -0
  193. chainstream/openapi_client/test/test_pump_create_token_input.py +71 -0
  194. chainstream/openapi_client/test/test_pump_create_token_reply.py +54 -0
  195. chainstream/openapi_client/test/test_ranking_api.py +67 -0
  196. chainstream/openapi_client/test/test_red_packet_api.py +88 -0
  197. chainstream/openapi_client/test/test_red_packet_claim_dto.py +67 -0
  198. chainstream/openapi_client/test/test_red_packet_claims_page.py +81 -0
  199. chainstream/openapi_client/test/test_red_packet_dto.py +85 -0
  200. chainstream/openapi_client/test/test_red_packet_reply.py +53 -0
  201. chainstream/openapi_client/test/test_red_packet_send_tx_input.py +53 -0
  202. chainstream/openapi_client/test/test_red_packet_send_tx_response.py +53 -0
  203. chainstream/openapi_client/test/test_red_packets_page.py +99 -0
  204. chainstream/openapi_client/test/test_register_address_request.py +53 -0
  205. chainstream/openapi_client/test/test_register_address_response_dto.py +53 -0
  206. chainstream/openapi_client/test/test_resolution.py +34 -0
  207. chainstream/openapi_client/test/test_send_tx_input.py +55 -0
  208. chainstream/openapi_client/test/test_send_tx_response.py +57 -0
  209. chainstream/openapi_client/test/test_swap_input.py +65 -0
  210. chainstream/openapi_client/test/test_swap_reply.py +55 -0
  211. chainstream/openapi_client/test/test_swap_route_input.py +69 -0
  212. chainstream/openapi_client/test/test_swap_route_response.py +85 -0
  213. chainstream/openapi_client/test/test_token.py +352 -0
  214. chainstream/openapi_client/test/test_token_api.py +193 -0
  215. chainstream/openapi_client/test/test_token_creation_dto.py +64 -0
  216. chainstream/openapi_client/test/test_token_creation_page.py +76 -0
  217. chainstream/openapi_client/test/test_token_creators_dto.py +54 -0
  218. chainstream/openapi_client/test/test_token_extra_dto.py +72 -0
  219. chainstream/openapi_client/test/test_token_holder.py +59 -0
  220. chainstream/openapi_client/test/test_token_holder_page.py +70 -0
  221. chainstream/openapi_client/test/test_token_liquidity_snapshot_dto.py +71 -0
  222. chainstream/openapi_client/test/test_token_liquidity_snapshot_page.py +83 -0
  223. chainstream/openapi_client/test/test_token_list_page.py +154 -0
  224. chainstream/openapi_client/test/test_token_market_data.py +101 -0
  225. chainstream/openapi_client/test/test_token_metadata.py +110 -0
  226. chainstream/openapi_client/test/test_token_page.py +155 -0
  227. chainstream/openapi_client/test/test_token_price_dto.py +59 -0
  228. chainstream/openapi_client/test/test_token_price_page.py +70 -0
  229. chainstream/openapi_client/test/test_token_social_medias_dto.py +64 -0
  230. chainstream/openapi_client/test/test_token_stat.py +257 -0
  231. chainstream/openapi_client/test/test_token_trader.py +65 -0
  232. chainstream/openapi_client/test/test_token_trader_tag.py +34 -0
  233. chainstream/openapi_client/test/test_top_traders_dto.py +75 -0
  234. chainstream/openapi_client/test/test_top_traders_page.py +86 -0
  235. chainstream/openapi_client/test/test_trade_api.py +53 -0
  236. chainstream/openapi_client/test/test_trade_detail_dto.py +101 -0
  237. chainstream/openapi_client/test/test_trade_event.py +77 -0
  238. chainstream/openapi_client/test/test_trade_page.py +112 -0
  239. chainstream/openapi_client/test/test_trade_type.py +34 -0
  240. chainstream/openapi_client/test/test_transaction_api.py +53 -0
  241. chainstream/openapi_client/test/test_transfer_alerts_response_dto.py +71 -0
  242. chainstream/openapi_client/test/test_transfer_base_response_dto.py +77 -0
  243. chainstream/openapi_client/test/test_transfer_direct_exposure_response_dto.py +57 -0
  244. chainstream/openapi_client/test/test_transfer_network_identifications_response_dto.py +61 -0
  245. chainstream/openapi_client/test/test_update_endpoint_input.py +64 -0
  246. chainstream/openapi_client/test/test_wallet_api.py +67 -0
  247. chainstream/openapi_client/test/test_wallet_balance_detail_dto.py +101 -0
  248. chainstream/openapi_client/test/test_wallet_balances_dto.py +111 -0
  249. chainstream/openapi_client/test/test_wallet_pnl_dto.py +97 -0
  250. chainstream/openapi_client/test/test_watchlist_api.py +39 -0
  251. chainstream/openapi_client/test/test_withdrawal_address_identifications_response_dto.py +65 -0
  252. chainstream/openapi_client/test/test_withdrawal_base_response_dto.py +71 -0
  253. chainstream/openapi_client/test/test_withdrawal_fraud_assessment_response_dto.py +73 -0
  254. chainstream/stream/__init__.py +74 -0
  255. chainstream/stream/client.py +761 -0
  256. chainstream/stream/fields.py +284 -0
  257. chainstream/stream/models.py +415 -0
  258. chainstream_sdk-0.1.0.dist-info/METADATA +80 -0
  259. chainstream_sdk-0.1.0.dist-info/RECORD +261 -0
  260. chainstream_sdk-0.1.0.dist-info/WHEEL +4 -0
  261. chainstream_sdk-0.1.0.dist-info/entry_points.txt +2 -0
@@ -0,0 +1,2067 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Dex Aggregator API
5
+
6
+ Dex Aggregator API ⚡️
7
+
8
+ The version of the OpenAPI document: 1.0
9
+ Contact: ai@sx.ai
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
+
12
+ Do not edit the class manually.
13
+ """ # noqa: E501
14
+
15
+ import warnings
16
+ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
17
+ from typing import Any, Dict, List, Optional, Tuple, Union
18
+ from typing_extensions import Annotated
19
+
20
+ from pydantic import Field, StrictStr, field_validator
21
+ from typing import List, Optional
22
+ from typing_extensions import Annotated
23
+ from chainstream.openapi_client.models.chain_symbol import ChainSymbol
24
+ from chainstream.openapi_client.models.filter_condition import FilterCondition
25
+ from chainstream.openapi_client.models.token import Token
26
+
27
+ from chainstream.openapi_client.api_client import ApiClient, RequestSerialized
28
+ from chainstream.openapi_client.api_response import ApiResponse
29
+ from chainstream.openapi_client.rest import RESTResponseType
30
+
31
+
32
+ class RankingApi:
33
+ """NOTE: This class is auto generated by OpenAPI Generator
34
+ Ref: https://openapi-generator.tech
35
+
36
+ Do not edit the class manually.
37
+ """
38
+
39
+ def __init__(self, api_client=None) -> None:
40
+ if api_client is None:
41
+ api_client = ApiClient.get_default()
42
+ self.api_client = api_client
43
+
44
+
45
+ @validate_call
46
+ async def get_final_stretch_tokens(
47
+ self,
48
+ chain: Annotated[ChainSymbol, Field(description="GLOBAL.CHAIN.DESCRIPTION")],
49
+ sort_by: Annotated[Optional[StrictStr], Field(description="DTO.TOKEN.REQUEST.SORT_BY")] = None,
50
+ sort_direction: Annotated[Optional[StrictStr], Field(description="DTO.TOKEN.REQUEST.SORT_DIRECTION")] = None,
51
+ range_filters: Annotated[Optional[List[FilterCondition]], Field(description="DTO.TOKEN.REQUEST.FILTER_BY")] = None,
52
+ tag: Annotated[Optional[StrictStr], Field(description="DTO.TOKEN.REQUEST.TAG")] = None,
53
+ filters: Annotated[Optional[List[StrictStr]], Field(description="DTO.TOKEN.FILTER.FILTERS")] = None,
54
+ launchpad_platform: Annotated[Optional[List[StrictStr]], Field(description="DTO.TOKEN.FILTER.LAUNCHPAD_PLATFORM")] = None,
55
+ search_keywords: Annotated[Optional[List[StrictStr]], Field(description="DTO.TOKEN.FILTER.SEARCH_KEYWORDS")] = None,
56
+ exclude_keywords: Annotated[Optional[List[StrictStr]], Field(description="DTO.TOKEN.FILTER.EXCLUDE_KEYWORDS")] = None,
57
+ _request_timeout: Union[
58
+ None,
59
+ Annotated[StrictFloat, Field(gt=0)],
60
+ Tuple[
61
+ Annotated[StrictFloat, Field(gt=0)],
62
+ Annotated[StrictFloat, Field(gt=0)]
63
+ ]
64
+ ] = None,
65
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
66
+ _content_type: Optional[StrictStr] = None,
67
+ _headers: Optional[Dict[StrictStr, Any]] = None,
68
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
69
+ ) -> List[Token]:
70
+ """CONTROLLER.RANKING.FINAL_STRETCH_TOKENS.SUMMARY
71
+
72
+ CONTROLLER.RANKING.FINAL_STRETCH_TOKENS.DESCRIPTION
73
+
74
+ :param chain: GLOBAL.CHAIN.DESCRIPTION (required)
75
+ :type chain: ChainSymbol
76
+ :param sort_by: DTO.TOKEN.REQUEST.SORT_BY
77
+ :type sort_by: str
78
+ :param sort_direction: DTO.TOKEN.REQUEST.SORT_DIRECTION
79
+ :type sort_direction: str
80
+ :param range_filters: DTO.TOKEN.REQUEST.FILTER_BY
81
+ :type range_filters: List[FilterCondition]
82
+ :param tag: DTO.TOKEN.REQUEST.TAG
83
+ :type tag: str
84
+ :param filters: DTO.TOKEN.FILTER.FILTERS
85
+ :type filters: List[str]
86
+ :param launchpad_platform: DTO.TOKEN.FILTER.LAUNCHPAD_PLATFORM
87
+ :type launchpad_platform: List[str]
88
+ :param search_keywords: DTO.TOKEN.FILTER.SEARCH_KEYWORDS
89
+ :type search_keywords: List[str]
90
+ :param exclude_keywords: DTO.TOKEN.FILTER.EXCLUDE_KEYWORDS
91
+ :type exclude_keywords: List[str]
92
+ :param _request_timeout: timeout setting for this request. If one
93
+ number provided, it will be total request
94
+ timeout. It can also be a pair (tuple) of
95
+ (connection, read) timeouts.
96
+ :type _request_timeout: int, tuple(int, int), optional
97
+ :param _request_auth: set to override the auth_settings for an a single
98
+ request; this effectively ignores the
99
+ authentication in the spec for a single request.
100
+ :type _request_auth: dict, optional
101
+ :param _content_type: force content-type for the request.
102
+ :type _content_type: str, Optional
103
+ :param _headers: set to override the headers for a single
104
+ request; this effectively ignores the headers
105
+ in the spec for a single request.
106
+ :type _headers: dict, optional
107
+ :param _host_index: set to override the host_index for a single
108
+ request; this effectively ignores the host_index
109
+ in the spec for a single request.
110
+ :type _host_index: int, optional
111
+ :return: Returns the result object.
112
+ """ # noqa: E501
113
+
114
+ _param = self._get_final_stretch_tokens_serialize(
115
+ chain=chain,
116
+ sort_by=sort_by,
117
+ sort_direction=sort_direction,
118
+ range_filters=range_filters,
119
+ tag=tag,
120
+ filters=filters,
121
+ launchpad_platform=launchpad_platform,
122
+ search_keywords=search_keywords,
123
+ exclude_keywords=exclude_keywords,
124
+ _request_auth=_request_auth,
125
+ _content_type=_content_type,
126
+ _headers=_headers,
127
+ _host_index=_host_index
128
+ )
129
+
130
+ _response_types_map: Dict[str, Optional[str]] = {
131
+ '200': "List[Token]",
132
+ }
133
+ response_data = await self.api_client.call_api(
134
+ *_param,
135
+ _request_timeout=_request_timeout
136
+ )
137
+ await response_data.read()
138
+ return self.api_client.response_deserialize(
139
+ response_data=response_data,
140
+ response_types_map=_response_types_map,
141
+ ).data
142
+
143
+
144
+ @validate_call
145
+ async def get_final_stretch_tokens_with_http_info(
146
+ self,
147
+ chain: Annotated[ChainSymbol, Field(description="GLOBAL.CHAIN.DESCRIPTION")],
148
+ sort_by: Annotated[Optional[StrictStr], Field(description="DTO.TOKEN.REQUEST.SORT_BY")] = None,
149
+ sort_direction: Annotated[Optional[StrictStr], Field(description="DTO.TOKEN.REQUEST.SORT_DIRECTION")] = None,
150
+ range_filters: Annotated[Optional[List[FilterCondition]], Field(description="DTO.TOKEN.REQUEST.FILTER_BY")] = None,
151
+ tag: Annotated[Optional[StrictStr], Field(description="DTO.TOKEN.REQUEST.TAG")] = None,
152
+ filters: Annotated[Optional[List[StrictStr]], Field(description="DTO.TOKEN.FILTER.FILTERS")] = None,
153
+ launchpad_platform: Annotated[Optional[List[StrictStr]], Field(description="DTO.TOKEN.FILTER.LAUNCHPAD_PLATFORM")] = None,
154
+ search_keywords: Annotated[Optional[List[StrictStr]], Field(description="DTO.TOKEN.FILTER.SEARCH_KEYWORDS")] = None,
155
+ exclude_keywords: Annotated[Optional[List[StrictStr]], Field(description="DTO.TOKEN.FILTER.EXCLUDE_KEYWORDS")] = None,
156
+ _request_timeout: Union[
157
+ None,
158
+ Annotated[StrictFloat, Field(gt=0)],
159
+ Tuple[
160
+ Annotated[StrictFloat, Field(gt=0)],
161
+ Annotated[StrictFloat, Field(gt=0)]
162
+ ]
163
+ ] = None,
164
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
165
+ _content_type: Optional[StrictStr] = None,
166
+ _headers: Optional[Dict[StrictStr, Any]] = None,
167
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
168
+ ) -> ApiResponse[List[Token]]:
169
+ """CONTROLLER.RANKING.FINAL_STRETCH_TOKENS.SUMMARY
170
+
171
+ CONTROLLER.RANKING.FINAL_STRETCH_TOKENS.DESCRIPTION
172
+
173
+ :param chain: GLOBAL.CHAIN.DESCRIPTION (required)
174
+ :type chain: ChainSymbol
175
+ :param sort_by: DTO.TOKEN.REQUEST.SORT_BY
176
+ :type sort_by: str
177
+ :param sort_direction: DTO.TOKEN.REQUEST.SORT_DIRECTION
178
+ :type sort_direction: str
179
+ :param range_filters: DTO.TOKEN.REQUEST.FILTER_BY
180
+ :type range_filters: List[FilterCondition]
181
+ :param tag: DTO.TOKEN.REQUEST.TAG
182
+ :type tag: str
183
+ :param filters: DTO.TOKEN.FILTER.FILTERS
184
+ :type filters: List[str]
185
+ :param launchpad_platform: DTO.TOKEN.FILTER.LAUNCHPAD_PLATFORM
186
+ :type launchpad_platform: List[str]
187
+ :param search_keywords: DTO.TOKEN.FILTER.SEARCH_KEYWORDS
188
+ :type search_keywords: List[str]
189
+ :param exclude_keywords: DTO.TOKEN.FILTER.EXCLUDE_KEYWORDS
190
+ :type exclude_keywords: List[str]
191
+ :param _request_timeout: timeout setting for this request. If one
192
+ number provided, it will be total request
193
+ timeout. It can also be a pair (tuple) of
194
+ (connection, read) timeouts.
195
+ :type _request_timeout: int, tuple(int, int), optional
196
+ :param _request_auth: set to override the auth_settings for an a single
197
+ request; this effectively ignores the
198
+ authentication in the spec for a single request.
199
+ :type _request_auth: dict, optional
200
+ :param _content_type: force content-type for the request.
201
+ :type _content_type: str, Optional
202
+ :param _headers: set to override the headers for a single
203
+ request; this effectively ignores the headers
204
+ in the spec for a single request.
205
+ :type _headers: dict, optional
206
+ :param _host_index: set to override the host_index for a single
207
+ request; this effectively ignores the host_index
208
+ in the spec for a single request.
209
+ :type _host_index: int, optional
210
+ :return: Returns the result object.
211
+ """ # noqa: E501
212
+
213
+ _param = self._get_final_stretch_tokens_serialize(
214
+ chain=chain,
215
+ sort_by=sort_by,
216
+ sort_direction=sort_direction,
217
+ range_filters=range_filters,
218
+ tag=tag,
219
+ filters=filters,
220
+ launchpad_platform=launchpad_platform,
221
+ search_keywords=search_keywords,
222
+ exclude_keywords=exclude_keywords,
223
+ _request_auth=_request_auth,
224
+ _content_type=_content_type,
225
+ _headers=_headers,
226
+ _host_index=_host_index
227
+ )
228
+
229
+ _response_types_map: Dict[str, Optional[str]] = {
230
+ '200': "List[Token]",
231
+ }
232
+ response_data = await self.api_client.call_api(
233
+ *_param,
234
+ _request_timeout=_request_timeout
235
+ )
236
+ await response_data.read()
237
+ return self.api_client.response_deserialize(
238
+ response_data=response_data,
239
+ response_types_map=_response_types_map,
240
+ )
241
+
242
+
243
+ @validate_call
244
+ async def get_final_stretch_tokens_without_preload_content(
245
+ self,
246
+ chain: Annotated[ChainSymbol, Field(description="GLOBAL.CHAIN.DESCRIPTION")],
247
+ sort_by: Annotated[Optional[StrictStr], Field(description="DTO.TOKEN.REQUEST.SORT_BY")] = None,
248
+ sort_direction: Annotated[Optional[StrictStr], Field(description="DTO.TOKEN.REQUEST.SORT_DIRECTION")] = None,
249
+ range_filters: Annotated[Optional[List[FilterCondition]], Field(description="DTO.TOKEN.REQUEST.FILTER_BY")] = None,
250
+ tag: Annotated[Optional[StrictStr], Field(description="DTO.TOKEN.REQUEST.TAG")] = None,
251
+ filters: Annotated[Optional[List[StrictStr]], Field(description="DTO.TOKEN.FILTER.FILTERS")] = None,
252
+ launchpad_platform: Annotated[Optional[List[StrictStr]], Field(description="DTO.TOKEN.FILTER.LAUNCHPAD_PLATFORM")] = None,
253
+ search_keywords: Annotated[Optional[List[StrictStr]], Field(description="DTO.TOKEN.FILTER.SEARCH_KEYWORDS")] = None,
254
+ exclude_keywords: Annotated[Optional[List[StrictStr]], Field(description="DTO.TOKEN.FILTER.EXCLUDE_KEYWORDS")] = None,
255
+ _request_timeout: Union[
256
+ None,
257
+ Annotated[StrictFloat, Field(gt=0)],
258
+ Tuple[
259
+ Annotated[StrictFloat, Field(gt=0)],
260
+ Annotated[StrictFloat, Field(gt=0)]
261
+ ]
262
+ ] = None,
263
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
264
+ _content_type: Optional[StrictStr] = None,
265
+ _headers: Optional[Dict[StrictStr, Any]] = None,
266
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
267
+ ) -> RESTResponseType:
268
+ """CONTROLLER.RANKING.FINAL_STRETCH_TOKENS.SUMMARY
269
+
270
+ CONTROLLER.RANKING.FINAL_STRETCH_TOKENS.DESCRIPTION
271
+
272
+ :param chain: GLOBAL.CHAIN.DESCRIPTION (required)
273
+ :type chain: ChainSymbol
274
+ :param sort_by: DTO.TOKEN.REQUEST.SORT_BY
275
+ :type sort_by: str
276
+ :param sort_direction: DTO.TOKEN.REQUEST.SORT_DIRECTION
277
+ :type sort_direction: str
278
+ :param range_filters: DTO.TOKEN.REQUEST.FILTER_BY
279
+ :type range_filters: List[FilterCondition]
280
+ :param tag: DTO.TOKEN.REQUEST.TAG
281
+ :type tag: str
282
+ :param filters: DTO.TOKEN.FILTER.FILTERS
283
+ :type filters: List[str]
284
+ :param launchpad_platform: DTO.TOKEN.FILTER.LAUNCHPAD_PLATFORM
285
+ :type launchpad_platform: List[str]
286
+ :param search_keywords: DTO.TOKEN.FILTER.SEARCH_KEYWORDS
287
+ :type search_keywords: List[str]
288
+ :param exclude_keywords: DTO.TOKEN.FILTER.EXCLUDE_KEYWORDS
289
+ :type exclude_keywords: List[str]
290
+ :param _request_timeout: timeout setting for this request. If one
291
+ number provided, it will be total request
292
+ timeout. It can also be a pair (tuple) of
293
+ (connection, read) timeouts.
294
+ :type _request_timeout: int, tuple(int, int), optional
295
+ :param _request_auth: set to override the auth_settings for an a single
296
+ request; this effectively ignores the
297
+ authentication in the spec for a single request.
298
+ :type _request_auth: dict, optional
299
+ :param _content_type: force content-type for the request.
300
+ :type _content_type: str, Optional
301
+ :param _headers: set to override the headers for a single
302
+ request; this effectively ignores the headers
303
+ in the spec for a single request.
304
+ :type _headers: dict, optional
305
+ :param _host_index: set to override the host_index for a single
306
+ request; this effectively ignores the host_index
307
+ in the spec for a single request.
308
+ :type _host_index: int, optional
309
+ :return: Returns the result object.
310
+ """ # noqa: E501
311
+
312
+ _param = self._get_final_stretch_tokens_serialize(
313
+ chain=chain,
314
+ sort_by=sort_by,
315
+ sort_direction=sort_direction,
316
+ range_filters=range_filters,
317
+ tag=tag,
318
+ filters=filters,
319
+ launchpad_platform=launchpad_platform,
320
+ search_keywords=search_keywords,
321
+ exclude_keywords=exclude_keywords,
322
+ _request_auth=_request_auth,
323
+ _content_type=_content_type,
324
+ _headers=_headers,
325
+ _host_index=_host_index
326
+ )
327
+
328
+ _response_types_map: Dict[str, Optional[str]] = {
329
+ '200': "List[Token]",
330
+ }
331
+ response_data = await self.api_client.call_api(
332
+ *_param,
333
+ _request_timeout=_request_timeout
334
+ )
335
+ return response_data.response
336
+
337
+
338
+ def _get_final_stretch_tokens_serialize(
339
+ self,
340
+ chain,
341
+ sort_by,
342
+ sort_direction,
343
+ range_filters,
344
+ tag,
345
+ filters,
346
+ launchpad_platform,
347
+ search_keywords,
348
+ exclude_keywords,
349
+ _request_auth,
350
+ _content_type,
351
+ _headers,
352
+ _host_index,
353
+ ) -> RequestSerialized:
354
+
355
+ _host = None
356
+
357
+ _collection_formats: Dict[str, str] = {
358
+ 'rangeFilters': 'multi',
359
+ 'filters': 'multi',
360
+ 'launchpadPlatform': 'multi',
361
+ 'searchKeywords': 'multi',
362
+ 'excludeKeywords': 'multi',
363
+ }
364
+
365
+ _path_params: Dict[str, str] = {}
366
+ _query_params: List[Tuple[str, str]] = []
367
+ _header_params: Dict[str, Optional[str]] = _headers or {}
368
+ _form_params: List[Tuple[str, str]] = []
369
+ _files: Dict[
370
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
371
+ ] = {}
372
+ _body_params: Optional[bytes] = None
373
+
374
+ # process the path parameters
375
+ if chain is not None:
376
+ _path_params['chain'] = chain.value
377
+ # process the query parameters
378
+ if sort_by is not None:
379
+
380
+ _query_params.append(('sortBy', sort_by))
381
+
382
+ if sort_direction is not None:
383
+
384
+ _query_params.append(('sortDirection', sort_direction))
385
+
386
+ if range_filters is not None:
387
+
388
+ _query_params.append(('rangeFilters', range_filters))
389
+
390
+ if tag is not None:
391
+
392
+ _query_params.append(('tag', tag))
393
+
394
+ if filters is not None:
395
+
396
+ _query_params.append(('filters', filters))
397
+
398
+ if launchpad_platform is not None:
399
+
400
+ _query_params.append(('launchpadPlatform', launchpad_platform))
401
+
402
+ if search_keywords is not None:
403
+
404
+ _query_params.append(('searchKeywords', search_keywords))
405
+
406
+ if exclude_keywords is not None:
407
+
408
+ _query_params.append(('excludeKeywords', exclude_keywords))
409
+
410
+ # process the header parameters
411
+ # process the form parameters
412
+ # process the body parameter
413
+
414
+
415
+ # set the HTTP header `Accept`
416
+ if 'Accept' not in _header_params:
417
+ _header_params['Accept'] = self.api_client.select_header_accept(
418
+ [
419
+ 'application/json'
420
+ ]
421
+ )
422
+
423
+
424
+ # authentication setting
425
+ _auth_settings: List[str] = [
426
+ 'bearer'
427
+ ]
428
+
429
+ return self.api_client.param_serialize(
430
+ method='GET',
431
+ resource_path='/v1/ranking/{chain}/finalStretch',
432
+ path_params=_path_params,
433
+ query_params=_query_params,
434
+ header_params=_header_params,
435
+ body=_body_params,
436
+ post_params=_form_params,
437
+ files=_files,
438
+ auth_settings=_auth_settings,
439
+ collection_formats=_collection_formats,
440
+ _host=_host,
441
+ _request_auth=_request_auth
442
+ )
443
+
444
+
445
+
446
+
447
+ @validate_call
448
+ async def get_hot_tokens(
449
+ self,
450
+ chain: Annotated[ChainSymbol, Field(description="GLOBAL.CHAIN.DESCRIPTION")],
451
+ duration: Annotated[StrictStr, Field(description="CONTROLLER.RANKING.HOT_TOKENS.DURATION.DESCRIPTION")],
452
+ sort_by: Annotated[Optional[StrictStr], Field(description="DTO.TOKEN.REQUEST.SORT_BY")] = None,
453
+ sort_direction: Annotated[Optional[StrictStr], Field(description="DTO.TOKEN.REQUEST.SORT_DIRECTION")] = None,
454
+ range_filters: Annotated[Optional[List[FilterCondition]], Field(description="DTO.TOKEN.REQUEST.FILTER_BY")] = None,
455
+ tag: Annotated[Optional[StrictStr], Field(description="DTO.TOKEN.REQUEST.TAG")] = None,
456
+ filters: Annotated[Optional[List[StrictStr]], Field(description="DTO.TOKEN.FILTER.FILTERS")] = None,
457
+ launchpad_platform: Annotated[Optional[List[StrictStr]], Field(description="DTO.TOKEN.FILTER.LAUNCHPAD_PLATFORM")] = None,
458
+ search_keywords: Annotated[Optional[List[StrictStr]], Field(description="DTO.TOKEN.FILTER.SEARCH_KEYWORDS")] = None,
459
+ exclude_keywords: Annotated[Optional[List[StrictStr]], Field(description="DTO.TOKEN.FILTER.EXCLUDE_KEYWORDS")] = None,
460
+ _request_timeout: Union[
461
+ None,
462
+ Annotated[StrictFloat, Field(gt=0)],
463
+ Tuple[
464
+ Annotated[StrictFloat, Field(gt=0)],
465
+ Annotated[StrictFloat, Field(gt=0)]
466
+ ]
467
+ ] = None,
468
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
469
+ _content_type: Optional[StrictStr] = None,
470
+ _headers: Optional[Dict[StrictStr, Any]] = None,
471
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
472
+ ) -> List[Token]:
473
+ """CONTROLLER.RANKING.HOT_TOKENS.SUMMARY
474
+
475
+ CONTROLLER.RANKING.HOT_TOKENS.DESCRIPTION
476
+
477
+ :param chain: GLOBAL.CHAIN.DESCRIPTION (required)
478
+ :type chain: ChainSymbol
479
+ :param duration: CONTROLLER.RANKING.HOT_TOKENS.DURATION.DESCRIPTION (required)
480
+ :type duration: str
481
+ :param sort_by: DTO.TOKEN.REQUEST.SORT_BY
482
+ :type sort_by: str
483
+ :param sort_direction: DTO.TOKEN.REQUEST.SORT_DIRECTION
484
+ :type sort_direction: str
485
+ :param range_filters: DTO.TOKEN.REQUEST.FILTER_BY
486
+ :type range_filters: List[FilterCondition]
487
+ :param tag: DTO.TOKEN.REQUEST.TAG
488
+ :type tag: str
489
+ :param filters: DTO.TOKEN.FILTER.FILTERS
490
+ :type filters: List[str]
491
+ :param launchpad_platform: DTO.TOKEN.FILTER.LAUNCHPAD_PLATFORM
492
+ :type launchpad_platform: List[str]
493
+ :param search_keywords: DTO.TOKEN.FILTER.SEARCH_KEYWORDS
494
+ :type search_keywords: List[str]
495
+ :param exclude_keywords: DTO.TOKEN.FILTER.EXCLUDE_KEYWORDS
496
+ :type exclude_keywords: List[str]
497
+ :param _request_timeout: timeout setting for this request. If one
498
+ number provided, it will be total request
499
+ timeout. It can also be a pair (tuple) of
500
+ (connection, read) timeouts.
501
+ :type _request_timeout: int, tuple(int, int), optional
502
+ :param _request_auth: set to override the auth_settings for an a single
503
+ request; this effectively ignores the
504
+ authentication in the spec for a single request.
505
+ :type _request_auth: dict, optional
506
+ :param _content_type: force content-type for the request.
507
+ :type _content_type: str, Optional
508
+ :param _headers: set to override the headers for a single
509
+ request; this effectively ignores the headers
510
+ in the spec for a single request.
511
+ :type _headers: dict, optional
512
+ :param _host_index: set to override the host_index for a single
513
+ request; this effectively ignores the host_index
514
+ in the spec for a single request.
515
+ :type _host_index: int, optional
516
+ :return: Returns the result object.
517
+ """ # noqa: E501
518
+
519
+ _param = self._get_hot_tokens_serialize(
520
+ chain=chain,
521
+ duration=duration,
522
+ sort_by=sort_by,
523
+ sort_direction=sort_direction,
524
+ range_filters=range_filters,
525
+ tag=tag,
526
+ filters=filters,
527
+ launchpad_platform=launchpad_platform,
528
+ search_keywords=search_keywords,
529
+ exclude_keywords=exclude_keywords,
530
+ _request_auth=_request_auth,
531
+ _content_type=_content_type,
532
+ _headers=_headers,
533
+ _host_index=_host_index
534
+ )
535
+
536
+ _response_types_map: Dict[str, Optional[str]] = {
537
+ '200': "List[Token]",
538
+ }
539
+ response_data = await self.api_client.call_api(
540
+ *_param,
541
+ _request_timeout=_request_timeout
542
+ )
543
+ await response_data.read()
544
+ return self.api_client.response_deserialize(
545
+ response_data=response_data,
546
+ response_types_map=_response_types_map,
547
+ ).data
548
+
549
+
550
+ @validate_call
551
+ async def get_hot_tokens_with_http_info(
552
+ self,
553
+ chain: Annotated[ChainSymbol, Field(description="GLOBAL.CHAIN.DESCRIPTION")],
554
+ duration: Annotated[StrictStr, Field(description="CONTROLLER.RANKING.HOT_TOKENS.DURATION.DESCRIPTION")],
555
+ sort_by: Annotated[Optional[StrictStr], Field(description="DTO.TOKEN.REQUEST.SORT_BY")] = None,
556
+ sort_direction: Annotated[Optional[StrictStr], Field(description="DTO.TOKEN.REQUEST.SORT_DIRECTION")] = None,
557
+ range_filters: Annotated[Optional[List[FilterCondition]], Field(description="DTO.TOKEN.REQUEST.FILTER_BY")] = None,
558
+ tag: Annotated[Optional[StrictStr], Field(description="DTO.TOKEN.REQUEST.TAG")] = None,
559
+ filters: Annotated[Optional[List[StrictStr]], Field(description="DTO.TOKEN.FILTER.FILTERS")] = None,
560
+ launchpad_platform: Annotated[Optional[List[StrictStr]], Field(description="DTO.TOKEN.FILTER.LAUNCHPAD_PLATFORM")] = None,
561
+ search_keywords: Annotated[Optional[List[StrictStr]], Field(description="DTO.TOKEN.FILTER.SEARCH_KEYWORDS")] = None,
562
+ exclude_keywords: Annotated[Optional[List[StrictStr]], Field(description="DTO.TOKEN.FILTER.EXCLUDE_KEYWORDS")] = None,
563
+ _request_timeout: Union[
564
+ None,
565
+ Annotated[StrictFloat, Field(gt=0)],
566
+ Tuple[
567
+ Annotated[StrictFloat, Field(gt=0)],
568
+ Annotated[StrictFloat, Field(gt=0)]
569
+ ]
570
+ ] = None,
571
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
572
+ _content_type: Optional[StrictStr] = None,
573
+ _headers: Optional[Dict[StrictStr, Any]] = None,
574
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
575
+ ) -> ApiResponse[List[Token]]:
576
+ """CONTROLLER.RANKING.HOT_TOKENS.SUMMARY
577
+
578
+ CONTROLLER.RANKING.HOT_TOKENS.DESCRIPTION
579
+
580
+ :param chain: GLOBAL.CHAIN.DESCRIPTION (required)
581
+ :type chain: ChainSymbol
582
+ :param duration: CONTROLLER.RANKING.HOT_TOKENS.DURATION.DESCRIPTION (required)
583
+ :type duration: str
584
+ :param sort_by: DTO.TOKEN.REQUEST.SORT_BY
585
+ :type sort_by: str
586
+ :param sort_direction: DTO.TOKEN.REQUEST.SORT_DIRECTION
587
+ :type sort_direction: str
588
+ :param range_filters: DTO.TOKEN.REQUEST.FILTER_BY
589
+ :type range_filters: List[FilterCondition]
590
+ :param tag: DTO.TOKEN.REQUEST.TAG
591
+ :type tag: str
592
+ :param filters: DTO.TOKEN.FILTER.FILTERS
593
+ :type filters: List[str]
594
+ :param launchpad_platform: DTO.TOKEN.FILTER.LAUNCHPAD_PLATFORM
595
+ :type launchpad_platform: List[str]
596
+ :param search_keywords: DTO.TOKEN.FILTER.SEARCH_KEYWORDS
597
+ :type search_keywords: List[str]
598
+ :param exclude_keywords: DTO.TOKEN.FILTER.EXCLUDE_KEYWORDS
599
+ :type exclude_keywords: List[str]
600
+ :param _request_timeout: timeout setting for this request. If one
601
+ number provided, it will be total request
602
+ timeout. It can also be a pair (tuple) of
603
+ (connection, read) timeouts.
604
+ :type _request_timeout: int, tuple(int, int), optional
605
+ :param _request_auth: set to override the auth_settings for an a single
606
+ request; this effectively ignores the
607
+ authentication in the spec for a single request.
608
+ :type _request_auth: dict, optional
609
+ :param _content_type: force content-type for the request.
610
+ :type _content_type: str, Optional
611
+ :param _headers: set to override the headers for a single
612
+ request; this effectively ignores the headers
613
+ in the spec for a single request.
614
+ :type _headers: dict, optional
615
+ :param _host_index: set to override the host_index for a single
616
+ request; this effectively ignores the host_index
617
+ in the spec for a single request.
618
+ :type _host_index: int, optional
619
+ :return: Returns the result object.
620
+ """ # noqa: E501
621
+
622
+ _param = self._get_hot_tokens_serialize(
623
+ chain=chain,
624
+ duration=duration,
625
+ sort_by=sort_by,
626
+ sort_direction=sort_direction,
627
+ range_filters=range_filters,
628
+ tag=tag,
629
+ filters=filters,
630
+ launchpad_platform=launchpad_platform,
631
+ search_keywords=search_keywords,
632
+ exclude_keywords=exclude_keywords,
633
+ _request_auth=_request_auth,
634
+ _content_type=_content_type,
635
+ _headers=_headers,
636
+ _host_index=_host_index
637
+ )
638
+
639
+ _response_types_map: Dict[str, Optional[str]] = {
640
+ '200': "List[Token]",
641
+ }
642
+ response_data = await self.api_client.call_api(
643
+ *_param,
644
+ _request_timeout=_request_timeout
645
+ )
646
+ await response_data.read()
647
+ return self.api_client.response_deserialize(
648
+ response_data=response_data,
649
+ response_types_map=_response_types_map,
650
+ )
651
+
652
+
653
+ @validate_call
654
+ async def get_hot_tokens_without_preload_content(
655
+ self,
656
+ chain: Annotated[ChainSymbol, Field(description="GLOBAL.CHAIN.DESCRIPTION")],
657
+ duration: Annotated[StrictStr, Field(description="CONTROLLER.RANKING.HOT_TOKENS.DURATION.DESCRIPTION")],
658
+ sort_by: Annotated[Optional[StrictStr], Field(description="DTO.TOKEN.REQUEST.SORT_BY")] = None,
659
+ sort_direction: Annotated[Optional[StrictStr], Field(description="DTO.TOKEN.REQUEST.SORT_DIRECTION")] = None,
660
+ range_filters: Annotated[Optional[List[FilterCondition]], Field(description="DTO.TOKEN.REQUEST.FILTER_BY")] = None,
661
+ tag: Annotated[Optional[StrictStr], Field(description="DTO.TOKEN.REQUEST.TAG")] = None,
662
+ filters: Annotated[Optional[List[StrictStr]], Field(description="DTO.TOKEN.FILTER.FILTERS")] = None,
663
+ launchpad_platform: Annotated[Optional[List[StrictStr]], Field(description="DTO.TOKEN.FILTER.LAUNCHPAD_PLATFORM")] = None,
664
+ search_keywords: Annotated[Optional[List[StrictStr]], Field(description="DTO.TOKEN.FILTER.SEARCH_KEYWORDS")] = None,
665
+ exclude_keywords: Annotated[Optional[List[StrictStr]], Field(description="DTO.TOKEN.FILTER.EXCLUDE_KEYWORDS")] = None,
666
+ _request_timeout: Union[
667
+ None,
668
+ Annotated[StrictFloat, Field(gt=0)],
669
+ Tuple[
670
+ Annotated[StrictFloat, Field(gt=0)],
671
+ Annotated[StrictFloat, Field(gt=0)]
672
+ ]
673
+ ] = None,
674
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
675
+ _content_type: Optional[StrictStr] = None,
676
+ _headers: Optional[Dict[StrictStr, Any]] = None,
677
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
678
+ ) -> RESTResponseType:
679
+ """CONTROLLER.RANKING.HOT_TOKENS.SUMMARY
680
+
681
+ CONTROLLER.RANKING.HOT_TOKENS.DESCRIPTION
682
+
683
+ :param chain: GLOBAL.CHAIN.DESCRIPTION (required)
684
+ :type chain: ChainSymbol
685
+ :param duration: CONTROLLER.RANKING.HOT_TOKENS.DURATION.DESCRIPTION (required)
686
+ :type duration: str
687
+ :param sort_by: DTO.TOKEN.REQUEST.SORT_BY
688
+ :type sort_by: str
689
+ :param sort_direction: DTO.TOKEN.REQUEST.SORT_DIRECTION
690
+ :type sort_direction: str
691
+ :param range_filters: DTO.TOKEN.REQUEST.FILTER_BY
692
+ :type range_filters: List[FilterCondition]
693
+ :param tag: DTO.TOKEN.REQUEST.TAG
694
+ :type tag: str
695
+ :param filters: DTO.TOKEN.FILTER.FILTERS
696
+ :type filters: List[str]
697
+ :param launchpad_platform: DTO.TOKEN.FILTER.LAUNCHPAD_PLATFORM
698
+ :type launchpad_platform: List[str]
699
+ :param search_keywords: DTO.TOKEN.FILTER.SEARCH_KEYWORDS
700
+ :type search_keywords: List[str]
701
+ :param exclude_keywords: DTO.TOKEN.FILTER.EXCLUDE_KEYWORDS
702
+ :type exclude_keywords: List[str]
703
+ :param _request_timeout: timeout setting for this request. If one
704
+ number provided, it will be total request
705
+ timeout. It can also be a pair (tuple) of
706
+ (connection, read) timeouts.
707
+ :type _request_timeout: int, tuple(int, int), optional
708
+ :param _request_auth: set to override the auth_settings for an a single
709
+ request; this effectively ignores the
710
+ authentication in the spec for a single request.
711
+ :type _request_auth: dict, optional
712
+ :param _content_type: force content-type for the request.
713
+ :type _content_type: str, Optional
714
+ :param _headers: set to override the headers for a single
715
+ request; this effectively ignores the headers
716
+ in the spec for a single request.
717
+ :type _headers: dict, optional
718
+ :param _host_index: set to override the host_index for a single
719
+ request; this effectively ignores the host_index
720
+ in the spec for a single request.
721
+ :type _host_index: int, optional
722
+ :return: Returns the result object.
723
+ """ # noqa: E501
724
+
725
+ _param = self._get_hot_tokens_serialize(
726
+ chain=chain,
727
+ duration=duration,
728
+ sort_by=sort_by,
729
+ sort_direction=sort_direction,
730
+ range_filters=range_filters,
731
+ tag=tag,
732
+ filters=filters,
733
+ launchpad_platform=launchpad_platform,
734
+ search_keywords=search_keywords,
735
+ exclude_keywords=exclude_keywords,
736
+ _request_auth=_request_auth,
737
+ _content_type=_content_type,
738
+ _headers=_headers,
739
+ _host_index=_host_index
740
+ )
741
+
742
+ _response_types_map: Dict[str, Optional[str]] = {
743
+ '200': "List[Token]",
744
+ }
745
+ response_data = await self.api_client.call_api(
746
+ *_param,
747
+ _request_timeout=_request_timeout
748
+ )
749
+ return response_data.response
750
+
751
+
752
+ def _get_hot_tokens_serialize(
753
+ self,
754
+ chain,
755
+ duration,
756
+ sort_by,
757
+ sort_direction,
758
+ range_filters,
759
+ tag,
760
+ filters,
761
+ launchpad_platform,
762
+ search_keywords,
763
+ exclude_keywords,
764
+ _request_auth,
765
+ _content_type,
766
+ _headers,
767
+ _host_index,
768
+ ) -> RequestSerialized:
769
+
770
+ _host = None
771
+
772
+ _collection_formats: Dict[str, str] = {
773
+ 'rangeFilters': 'multi',
774
+ 'filters': 'multi',
775
+ 'launchpadPlatform': 'multi',
776
+ 'searchKeywords': 'multi',
777
+ 'excludeKeywords': 'multi',
778
+ }
779
+
780
+ _path_params: Dict[str, str] = {}
781
+ _query_params: List[Tuple[str, str]] = []
782
+ _header_params: Dict[str, Optional[str]] = _headers or {}
783
+ _form_params: List[Tuple[str, str]] = []
784
+ _files: Dict[
785
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
786
+ ] = {}
787
+ _body_params: Optional[bytes] = None
788
+
789
+ # process the path parameters
790
+ if chain is not None:
791
+ _path_params['chain'] = chain.value
792
+ if duration is not None:
793
+ _path_params['duration'] = duration
794
+ # process the query parameters
795
+ if sort_by is not None:
796
+
797
+ _query_params.append(('sortBy', sort_by))
798
+
799
+ if sort_direction is not None:
800
+
801
+ _query_params.append(('sortDirection', sort_direction))
802
+
803
+ if range_filters is not None:
804
+
805
+ _query_params.append(('rangeFilters', range_filters))
806
+
807
+ if tag is not None:
808
+
809
+ _query_params.append(('tag', tag))
810
+
811
+ if filters is not None:
812
+
813
+ _query_params.append(('filters', filters))
814
+
815
+ if launchpad_platform is not None:
816
+
817
+ _query_params.append(('launchpadPlatform', launchpad_platform))
818
+
819
+ if search_keywords is not None:
820
+
821
+ _query_params.append(('searchKeywords', search_keywords))
822
+
823
+ if exclude_keywords is not None:
824
+
825
+ _query_params.append(('excludeKeywords', exclude_keywords))
826
+
827
+ # process the header parameters
828
+ # process the form parameters
829
+ # process the body parameter
830
+
831
+
832
+ # set the HTTP header `Accept`
833
+ if 'Accept' not in _header_params:
834
+ _header_params['Accept'] = self.api_client.select_header_accept(
835
+ [
836
+ 'application/json'
837
+ ]
838
+ )
839
+
840
+
841
+ # authentication setting
842
+ _auth_settings: List[str] = [
843
+ 'bearer'
844
+ ]
845
+
846
+ return self.api_client.param_serialize(
847
+ method='GET',
848
+ resource_path='/v1/ranking/{chain}/hotTokens/{duration}',
849
+ path_params=_path_params,
850
+ query_params=_query_params,
851
+ header_params=_header_params,
852
+ body=_body_params,
853
+ post_params=_form_params,
854
+ files=_files,
855
+ auth_settings=_auth_settings,
856
+ collection_formats=_collection_formats,
857
+ _host=_host,
858
+ _request_auth=_request_auth
859
+ )
860
+
861
+
862
+
863
+
864
+ @validate_call
865
+ async def get_migrated_tokens(
866
+ self,
867
+ chain: Annotated[ChainSymbol, Field(description="GLOBAL.CHAIN.DESCRIPTION")],
868
+ sort_by: Annotated[Optional[StrictStr], Field(description="DTO.TOKEN.REQUEST.SORT_BY")] = None,
869
+ sort_direction: Annotated[Optional[StrictStr], Field(description="DTO.TOKEN.REQUEST.SORT_DIRECTION")] = None,
870
+ range_filters: Annotated[Optional[List[FilterCondition]], Field(description="DTO.TOKEN.REQUEST.FILTER_BY")] = None,
871
+ tag: Annotated[Optional[StrictStr], Field(description="DTO.TOKEN.REQUEST.TAG")] = None,
872
+ filters: Annotated[Optional[List[StrictStr]], Field(description="DTO.TOKEN.FILTER.FILTERS")] = None,
873
+ launchpad_platform: Annotated[Optional[List[StrictStr]], Field(description="DTO.TOKEN.FILTER.LAUNCHPAD_PLATFORM")] = None,
874
+ search_keywords: Annotated[Optional[List[StrictStr]], Field(description="DTO.TOKEN.FILTER.SEARCH_KEYWORDS")] = None,
875
+ exclude_keywords: Annotated[Optional[List[StrictStr]], Field(description="DTO.TOKEN.FILTER.EXCLUDE_KEYWORDS")] = None,
876
+ _request_timeout: Union[
877
+ None,
878
+ Annotated[StrictFloat, Field(gt=0)],
879
+ Tuple[
880
+ Annotated[StrictFloat, Field(gt=0)],
881
+ Annotated[StrictFloat, Field(gt=0)]
882
+ ]
883
+ ] = None,
884
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
885
+ _content_type: Optional[StrictStr] = None,
886
+ _headers: Optional[Dict[StrictStr, Any]] = None,
887
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
888
+ ) -> List[Token]:
889
+ """CONTROLLER.RANKING.MIGRATED_TOKENS.SUMMARY
890
+
891
+ CONTROLLER.RANKING.MIGRATED_TOKENS.DESCRIPTION
892
+
893
+ :param chain: GLOBAL.CHAIN.DESCRIPTION (required)
894
+ :type chain: ChainSymbol
895
+ :param sort_by: DTO.TOKEN.REQUEST.SORT_BY
896
+ :type sort_by: str
897
+ :param sort_direction: DTO.TOKEN.REQUEST.SORT_DIRECTION
898
+ :type sort_direction: str
899
+ :param range_filters: DTO.TOKEN.REQUEST.FILTER_BY
900
+ :type range_filters: List[FilterCondition]
901
+ :param tag: DTO.TOKEN.REQUEST.TAG
902
+ :type tag: str
903
+ :param filters: DTO.TOKEN.FILTER.FILTERS
904
+ :type filters: List[str]
905
+ :param launchpad_platform: DTO.TOKEN.FILTER.LAUNCHPAD_PLATFORM
906
+ :type launchpad_platform: List[str]
907
+ :param search_keywords: DTO.TOKEN.FILTER.SEARCH_KEYWORDS
908
+ :type search_keywords: List[str]
909
+ :param exclude_keywords: DTO.TOKEN.FILTER.EXCLUDE_KEYWORDS
910
+ :type exclude_keywords: List[str]
911
+ :param _request_timeout: timeout setting for this request. If one
912
+ number provided, it will be total request
913
+ timeout. It can also be a pair (tuple) of
914
+ (connection, read) timeouts.
915
+ :type _request_timeout: int, tuple(int, int), optional
916
+ :param _request_auth: set to override the auth_settings for an a single
917
+ request; this effectively ignores the
918
+ authentication in the spec for a single request.
919
+ :type _request_auth: dict, optional
920
+ :param _content_type: force content-type for the request.
921
+ :type _content_type: str, Optional
922
+ :param _headers: set to override the headers for a single
923
+ request; this effectively ignores the headers
924
+ in the spec for a single request.
925
+ :type _headers: dict, optional
926
+ :param _host_index: set to override the host_index for a single
927
+ request; this effectively ignores the host_index
928
+ in the spec for a single request.
929
+ :type _host_index: int, optional
930
+ :return: Returns the result object.
931
+ """ # noqa: E501
932
+
933
+ _param = self._get_migrated_tokens_serialize(
934
+ chain=chain,
935
+ sort_by=sort_by,
936
+ sort_direction=sort_direction,
937
+ range_filters=range_filters,
938
+ tag=tag,
939
+ filters=filters,
940
+ launchpad_platform=launchpad_platform,
941
+ search_keywords=search_keywords,
942
+ exclude_keywords=exclude_keywords,
943
+ _request_auth=_request_auth,
944
+ _content_type=_content_type,
945
+ _headers=_headers,
946
+ _host_index=_host_index
947
+ )
948
+
949
+ _response_types_map: Dict[str, Optional[str]] = {
950
+ '200': "List[Token]",
951
+ }
952
+ response_data = await self.api_client.call_api(
953
+ *_param,
954
+ _request_timeout=_request_timeout
955
+ )
956
+ await response_data.read()
957
+ return self.api_client.response_deserialize(
958
+ response_data=response_data,
959
+ response_types_map=_response_types_map,
960
+ ).data
961
+
962
+
963
+ @validate_call
964
+ async def get_migrated_tokens_with_http_info(
965
+ self,
966
+ chain: Annotated[ChainSymbol, Field(description="GLOBAL.CHAIN.DESCRIPTION")],
967
+ sort_by: Annotated[Optional[StrictStr], Field(description="DTO.TOKEN.REQUEST.SORT_BY")] = None,
968
+ sort_direction: Annotated[Optional[StrictStr], Field(description="DTO.TOKEN.REQUEST.SORT_DIRECTION")] = None,
969
+ range_filters: Annotated[Optional[List[FilterCondition]], Field(description="DTO.TOKEN.REQUEST.FILTER_BY")] = None,
970
+ tag: Annotated[Optional[StrictStr], Field(description="DTO.TOKEN.REQUEST.TAG")] = None,
971
+ filters: Annotated[Optional[List[StrictStr]], Field(description="DTO.TOKEN.FILTER.FILTERS")] = None,
972
+ launchpad_platform: Annotated[Optional[List[StrictStr]], Field(description="DTO.TOKEN.FILTER.LAUNCHPAD_PLATFORM")] = None,
973
+ search_keywords: Annotated[Optional[List[StrictStr]], Field(description="DTO.TOKEN.FILTER.SEARCH_KEYWORDS")] = None,
974
+ exclude_keywords: Annotated[Optional[List[StrictStr]], Field(description="DTO.TOKEN.FILTER.EXCLUDE_KEYWORDS")] = None,
975
+ _request_timeout: Union[
976
+ None,
977
+ Annotated[StrictFloat, Field(gt=0)],
978
+ Tuple[
979
+ Annotated[StrictFloat, Field(gt=0)],
980
+ Annotated[StrictFloat, Field(gt=0)]
981
+ ]
982
+ ] = None,
983
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
984
+ _content_type: Optional[StrictStr] = None,
985
+ _headers: Optional[Dict[StrictStr, Any]] = None,
986
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
987
+ ) -> ApiResponse[List[Token]]:
988
+ """CONTROLLER.RANKING.MIGRATED_TOKENS.SUMMARY
989
+
990
+ CONTROLLER.RANKING.MIGRATED_TOKENS.DESCRIPTION
991
+
992
+ :param chain: GLOBAL.CHAIN.DESCRIPTION (required)
993
+ :type chain: ChainSymbol
994
+ :param sort_by: DTO.TOKEN.REQUEST.SORT_BY
995
+ :type sort_by: str
996
+ :param sort_direction: DTO.TOKEN.REQUEST.SORT_DIRECTION
997
+ :type sort_direction: str
998
+ :param range_filters: DTO.TOKEN.REQUEST.FILTER_BY
999
+ :type range_filters: List[FilterCondition]
1000
+ :param tag: DTO.TOKEN.REQUEST.TAG
1001
+ :type tag: str
1002
+ :param filters: DTO.TOKEN.FILTER.FILTERS
1003
+ :type filters: List[str]
1004
+ :param launchpad_platform: DTO.TOKEN.FILTER.LAUNCHPAD_PLATFORM
1005
+ :type launchpad_platform: List[str]
1006
+ :param search_keywords: DTO.TOKEN.FILTER.SEARCH_KEYWORDS
1007
+ :type search_keywords: List[str]
1008
+ :param exclude_keywords: DTO.TOKEN.FILTER.EXCLUDE_KEYWORDS
1009
+ :type exclude_keywords: List[str]
1010
+ :param _request_timeout: timeout setting for this request. If one
1011
+ number provided, it will be total request
1012
+ timeout. It can also be a pair (tuple) of
1013
+ (connection, read) timeouts.
1014
+ :type _request_timeout: int, tuple(int, int), optional
1015
+ :param _request_auth: set to override the auth_settings for an a single
1016
+ request; this effectively ignores the
1017
+ authentication in the spec for a single request.
1018
+ :type _request_auth: dict, optional
1019
+ :param _content_type: force content-type for the request.
1020
+ :type _content_type: str, Optional
1021
+ :param _headers: set to override the headers for a single
1022
+ request; this effectively ignores the headers
1023
+ in the spec for a single request.
1024
+ :type _headers: dict, optional
1025
+ :param _host_index: set to override the host_index for a single
1026
+ request; this effectively ignores the host_index
1027
+ in the spec for a single request.
1028
+ :type _host_index: int, optional
1029
+ :return: Returns the result object.
1030
+ """ # noqa: E501
1031
+
1032
+ _param = self._get_migrated_tokens_serialize(
1033
+ chain=chain,
1034
+ sort_by=sort_by,
1035
+ sort_direction=sort_direction,
1036
+ range_filters=range_filters,
1037
+ tag=tag,
1038
+ filters=filters,
1039
+ launchpad_platform=launchpad_platform,
1040
+ search_keywords=search_keywords,
1041
+ exclude_keywords=exclude_keywords,
1042
+ _request_auth=_request_auth,
1043
+ _content_type=_content_type,
1044
+ _headers=_headers,
1045
+ _host_index=_host_index
1046
+ )
1047
+
1048
+ _response_types_map: Dict[str, Optional[str]] = {
1049
+ '200': "List[Token]",
1050
+ }
1051
+ response_data = await self.api_client.call_api(
1052
+ *_param,
1053
+ _request_timeout=_request_timeout
1054
+ )
1055
+ await response_data.read()
1056
+ return self.api_client.response_deserialize(
1057
+ response_data=response_data,
1058
+ response_types_map=_response_types_map,
1059
+ )
1060
+
1061
+
1062
+ @validate_call
1063
+ async def get_migrated_tokens_without_preload_content(
1064
+ self,
1065
+ chain: Annotated[ChainSymbol, Field(description="GLOBAL.CHAIN.DESCRIPTION")],
1066
+ sort_by: Annotated[Optional[StrictStr], Field(description="DTO.TOKEN.REQUEST.SORT_BY")] = None,
1067
+ sort_direction: Annotated[Optional[StrictStr], Field(description="DTO.TOKEN.REQUEST.SORT_DIRECTION")] = None,
1068
+ range_filters: Annotated[Optional[List[FilterCondition]], Field(description="DTO.TOKEN.REQUEST.FILTER_BY")] = None,
1069
+ tag: Annotated[Optional[StrictStr], Field(description="DTO.TOKEN.REQUEST.TAG")] = None,
1070
+ filters: Annotated[Optional[List[StrictStr]], Field(description="DTO.TOKEN.FILTER.FILTERS")] = None,
1071
+ launchpad_platform: Annotated[Optional[List[StrictStr]], Field(description="DTO.TOKEN.FILTER.LAUNCHPAD_PLATFORM")] = None,
1072
+ search_keywords: Annotated[Optional[List[StrictStr]], Field(description="DTO.TOKEN.FILTER.SEARCH_KEYWORDS")] = None,
1073
+ exclude_keywords: Annotated[Optional[List[StrictStr]], Field(description="DTO.TOKEN.FILTER.EXCLUDE_KEYWORDS")] = None,
1074
+ _request_timeout: Union[
1075
+ None,
1076
+ Annotated[StrictFloat, Field(gt=0)],
1077
+ Tuple[
1078
+ Annotated[StrictFloat, Field(gt=0)],
1079
+ Annotated[StrictFloat, Field(gt=0)]
1080
+ ]
1081
+ ] = None,
1082
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1083
+ _content_type: Optional[StrictStr] = None,
1084
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1085
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1086
+ ) -> RESTResponseType:
1087
+ """CONTROLLER.RANKING.MIGRATED_TOKENS.SUMMARY
1088
+
1089
+ CONTROLLER.RANKING.MIGRATED_TOKENS.DESCRIPTION
1090
+
1091
+ :param chain: GLOBAL.CHAIN.DESCRIPTION (required)
1092
+ :type chain: ChainSymbol
1093
+ :param sort_by: DTO.TOKEN.REQUEST.SORT_BY
1094
+ :type sort_by: str
1095
+ :param sort_direction: DTO.TOKEN.REQUEST.SORT_DIRECTION
1096
+ :type sort_direction: str
1097
+ :param range_filters: DTO.TOKEN.REQUEST.FILTER_BY
1098
+ :type range_filters: List[FilterCondition]
1099
+ :param tag: DTO.TOKEN.REQUEST.TAG
1100
+ :type tag: str
1101
+ :param filters: DTO.TOKEN.FILTER.FILTERS
1102
+ :type filters: List[str]
1103
+ :param launchpad_platform: DTO.TOKEN.FILTER.LAUNCHPAD_PLATFORM
1104
+ :type launchpad_platform: List[str]
1105
+ :param search_keywords: DTO.TOKEN.FILTER.SEARCH_KEYWORDS
1106
+ :type search_keywords: List[str]
1107
+ :param exclude_keywords: DTO.TOKEN.FILTER.EXCLUDE_KEYWORDS
1108
+ :type exclude_keywords: List[str]
1109
+ :param _request_timeout: timeout setting for this request. If one
1110
+ number provided, it will be total request
1111
+ timeout. It can also be a pair (tuple) of
1112
+ (connection, read) timeouts.
1113
+ :type _request_timeout: int, tuple(int, int), optional
1114
+ :param _request_auth: set to override the auth_settings for an a single
1115
+ request; this effectively ignores the
1116
+ authentication in the spec for a single request.
1117
+ :type _request_auth: dict, optional
1118
+ :param _content_type: force content-type for the request.
1119
+ :type _content_type: str, Optional
1120
+ :param _headers: set to override the headers for a single
1121
+ request; this effectively ignores the headers
1122
+ in the spec for a single request.
1123
+ :type _headers: dict, optional
1124
+ :param _host_index: set to override the host_index for a single
1125
+ request; this effectively ignores the host_index
1126
+ in the spec for a single request.
1127
+ :type _host_index: int, optional
1128
+ :return: Returns the result object.
1129
+ """ # noqa: E501
1130
+
1131
+ _param = self._get_migrated_tokens_serialize(
1132
+ chain=chain,
1133
+ sort_by=sort_by,
1134
+ sort_direction=sort_direction,
1135
+ range_filters=range_filters,
1136
+ tag=tag,
1137
+ filters=filters,
1138
+ launchpad_platform=launchpad_platform,
1139
+ search_keywords=search_keywords,
1140
+ exclude_keywords=exclude_keywords,
1141
+ _request_auth=_request_auth,
1142
+ _content_type=_content_type,
1143
+ _headers=_headers,
1144
+ _host_index=_host_index
1145
+ )
1146
+
1147
+ _response_types_map: Dict[str, Optional[str]] = {
1148
+ '200': "List[Token]",
1149
+ }
1150
+ response_data = await self.api_client.call_api(
1151
+ *_param,
1152
+ _request_timeout=_request_timeout
1153
+ )
1154
+ return response_data.response
1155
+
1156
+
1157
+ def _get_migrated_tokens_serialize(
1158
+ self,
1159
+ chain,
1160
+ sort_by,
1161
+ sort_direction,
1162
+ range_filters,
1163
+ tag,
1164
+ filters,
1165
+ launchpad_platform,
1166
+ search_keywords,
1167
+ exclude_keywords,
1168
+ _request_auth,
1169
+ _content_type,
1170
+ _headers,
1171
+ _host_index,
1172
+ ) -> RequestSerialized:
1173
+
1174
+ _host = None
1175
+
1176
+ _collection_formats: Dict[str, str] = {
1177
+ 'rangeFilters': 'multi',
1178
+ 'filters': 'multi',
1179
+ 'launchpadPlatform': 'multi',
1180
+ 'searchKeywords': 'multi',
1181
+ 'excludeKeywords': 'multi',
1182
+ }
1183
+
1184
+ _path_params: Dict[str, str] = {}
1185
+ _query_params: List[Tuple[str, str]] = []
1186
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1187
+ _form_params: List[Tuple[str, str]] = []
1188
+ _files: Dict[
1189
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1190
+ ] = {}
1191
+ _body_params: Optional[bytes] = None
1192
+
1193
+ # process the path parameters
1194
+ if chain is not None:
1195
+ _path_params['chain'] = chain.value
1196
+ # process the query parameters
1197
+ if sort_by is not None:
1198
+
1199
+ _query_params.append(('sortBy', sort_by))
1200
+
1201
+ if sort_direction is not None:
1202
+
1203
+ _query_params.append(('sortDirection', sort_direction))
1204
+
1205
+ if range_filters is not None:
1206
+
1207
+ _query_params.append(('rangeFilters', range_filters))
1208
+
1209
+ if tag is not None:
1210
+
1211
+ _query_params.append(('tag', tag))
1212
+
1213
+ if filters is not None:
1214
+
1215
+ _query_params.append(('filters', filters))
1216
+
1217
+ if launchpad_platform is not None:
1218
+
1219
+ _query_params.append(('launchpadPlatform', launchpad_platform))
1220
+
1221
+ if search_keywords is not None:
1222
+
1223
+ _query_params.append(('searchKeywords', search_keywords))
1224
+
1225
+ if exclude_keywords is not None:
1226
+
1227
+ _query_params.append(('excludeKeywords', exclude_keywords))
1228
+
1229
+ # process the header parameters
1230
+ # process the form parameters
1231
+ # process the body parameter
1232
+
1233
+
1234
+ # set the HTTP header `Accept`
1235
+ if 'Accept' not in _header_params:
1236
+ _header_params['Accept'] = self.api_client.select_header_accept(
1237
+ [
1238
+ 'application/json'
1239
+ ]
1240
+ )
1241
+
1242
+
1243
+ # authentication setting
1244
+ _auth_settings: List[str] = [
1245
+ 'bearer'
1246
+ ]
1247
+
1248
+ return self.api_client.param_serialize(
1249
+ method='GET',
1250
+ resource_path='/v1/ranking/{chain}/migrated',
1251
+ path_params=_path_params,
1252
+ query_params=_query_params,
1253
+ header_params=_header_params,
1254
+ body=_body_params,
1255
+ post_params=_form_params,
1256
+ files=_files,
1257
+ auth_settings=_auth_settings,
1258
+ collection_formats=_collection_formats,
1259
+ _host=_host,
1260
+ _request_auth=_request_auth
1261
+ )
1262
+
1263
+
1264
+
1265
+
1266
+ @validate_call
1267
+ async def get_new_tokens(
1268
+ self,
1269
+ chain: Annotated[ChainSymbol, Field(description="GLOBAL.CHAIN.DESCRIPTION")],
1270
+ sort_by: Annotated[Optional[StrictStr], Field(description="DTO.TOKEN.REQUEST.SORT_BY")] = None,
1271
+ sort_direction: Annotated[Optional[StrictStr], Field(description="DTO.TOKEN.REQUEST.SORT_DIRECTION")] = None,
1272
+ range_filters: Annotated[Optional[List[FilterCondition]], Field(description="DTO.TOKEN.REQUEST.FILTER_BY")] = None,
1273
+ tag: Annotated[Optional[StrictStr], Field(description="DTO.TOKEN.REQUEST.TAG")] = None,
1274
+ filters: Annotated[Optional[List[StrictStr]], Field(description="DTO.TOKEN.FILTER.FILTERS")] = None,
1275
+ launchpad_platform: Annotated[Optional[List[StrictStr]], Field(description="DTO.TOKEN.FILTER.LAUNCHPAD_PLATFORM")] = None,
1276
+ search_keywords: Annotated[Optional[List[StrictStr]], Field(description="DTO.TOKEN.FILTER.SEARCH_KEYWORDS")] = None,
1277
+ exclude_keywords: Annotated[Optional[List[StrictStr]], Field(description="DTO.TOKEN.FILTER.EXCLUDE_KEYWORDS")] = None,
1278
+ _request_timeout: Union[
1279
+ None,
1280
+ Annotated[StrictFloat, Field(gt=0)],
1281
+ Tuple[
1282
+ Annotated[StrictFloat, Field(gt=0)],
1283
+ Annotated[StrictFloat, Field(gt=0)]
1284
+ ]
1285
+ ] = None,
1286
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1287
+ _content_type: Optional[StrictStr] = None,
1288
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1289
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1290
+ ) -> List[Token]:
1291
+ """CONTROLLER.RANKING.NEW_TOKENS.SUMMARY
1292
+
1293
+ CONTROLLER.RANKING.NEW_TOKENS.DESCRIPTION
1294
+
1295
+ :param chain: GLOBAL.CHAIN.DESCRIPTION (required)
1296
+ :type chain: ChainSymbol
1297
+ :param sort_by: DTO.TOKEN.REQUEST.SORT_BY
1298
+ :type sort_by: str
1299
+ :param sort_direction: DTO.TOKEN.REQUEST.SORT_DIRECTION
1300
+ :type sort_direction: str
1301
+ :param range_filters: DTO.TOKEN.REQUEST.FILTER_BY
1302
+ :type range_filters: List[FilterCondition]
1303
+ :param tag: DTO.TOKEN.REQUEST.TAG
1304
+ :type tag: str
1305
+ :param filters: DTO.TOKEN.FILTER.FILTERS
1306
+ :type filters: List[str]
1307
+ :param launchpad_platform: DTO.TOKEN.FILTER.LAUNCHPAD_PLATFORM
1308
+ :type launchpad_platform: List[str]
1309
+ :param search_keywords: DTO.TOKEN.FILTER.SEARCH_KEYWORDS
1310
+ :type search_keywords: List[str]
1311
+ :param exclude_keywords: DTO.TOKEN.FILTER.EXCLUDE_KEYWORDS
1312
+ :type exclude_keywords: List[str]
1313
+ :param _request_timeout: timeout setting for this request. If one
1314
+ number provided, it will be total request
1315
+ timeout. It can also be a pair (tuple) of
1316
+ (connection, read) timeouts.
1317
+ :type _request_timeout: int, tuple(int, int), optional
1318
+ :param _request_auth: set to override the auth_settings for an a single
1319
+ request; this effectively ignores the
1320
+ authentication in the spec for a single request.
1321
+ :type _request_auth: dict, optional
1322
+ :param _content_type: force content-type for the request.
1323
+ :type _content_type: str, Optional
1324
+ :param _headers: set to override the headers for a single
1325
+ request; this effectively ignores the headers
1326
+ in the spec for a single request.
1327
+ :type _headers: dict, optional
1328
+ :param _host_index: set to override the host_index for a single
1329
+ request; this effectively ignores the host_index
1330
+ in the spec for a single request.
1331
+ :type _host_index: int, optional
1332
+ :return: Returns the result object.
1333
+ """ # noqa: E501
1334
+
1335
+ _param = self._get_new_tokens_serialize(
1336
+ chain=chain,
1337
+ sort_by=sort_by,
1338
+ sort_direction=sort_direction,
1339
+ range_filters=range_filters,
1340
+ tag=tag,
1341
+ filters=filters,
1342
+ launchpad_platform=launchpad_platform,
1343
+ search_keywords=search_keywords,
1344
+ exclude_keywords=exclude_keywords,
1345
+ _request_auth=_request_auth,
1346
+ _content_type=_content_type,
1347
+ _headers=_headers,
1348
+ _host_index=_host_index
1349
+ )
1350
+
1351
+ _response_types_map: Dict[str, Optional[str]] = {
1352
+ '200': "List[Token]",
1353
+ }
1354
+ response_data = await self.api_client.call_api(
1355
+ *_param,
1356
+ _request_timeout=_request_timeout
1357
+ )
1358
+ await response_data.read()
1359
+ return self.api_client.response_deserialize(
1360
+ response_data=response_data,
1361
+ response_types_map=_response_types_map,
1362
+ ).data
1363
+
1364
+
1365
+ @validate_call
1366
+ async def get_new_tokens_with_http_info(
1367
+ self,
1368
+ chain: Annotated[ChainSymbol, Field(description="GLOBAL.CHAIN.DESCRIPTION")],
1369
+ sort_by: Annotated[Optional[StrictStr], Field(description="DTO.TOKEN.REQUEST.SORT_BY")] = None,
1370
+ sort_direction: Annotated[Optional[StrictStr], Field(description="DTO.TOKEN.REQUEST.SORT_DIRECTION")] = None,
1371
+ range_filters: Annotated[Optional[List[FilterCondition]], Field(description="DTO.TOKEN.REQUEST.FILTER_BY")] = None,
1372
+ tag: Annotated[Optional[StrictStr], Field(description="DTO.TOKEN.REQUEST.TAG")] = None,
1373
+ filters: Annotated[Optional[List[StrictStr]], Field(description="DTO.TOKEN.FILTER.FILTERS")] = None,
1374
+ launchpad_platform: Annotated[Optional[List[StrictStr]], Field(description="DTO.TOKEN.FILTER.LAUNCHPAD_PLATFORM")] = None,
1375
+ search_keywords: Annotated[Optional[List[StrictStr]], Field(description="DTO.TOKEN.FILTER.SEARCH_KEYWORDS")] = None,
1376
+ exclude_keywords: Annotated[Optional[List[StrictStr]], Field(description="DTO.TOKEN.FILTER.EXCLUDE_KEYWORDS")] = None,
1377
+ _request_timeout: Union[
1378
+ None,
1379
+ Annotated[StrictFloat, Field(gt=0)],
1380
+ Tuple[
1381
+ Annotated[StrictFloat, Field(gt=0)],
1382
+ Annotated[StrictFloat, Field(gt=0)]
1383
+ ]
1384
+ ] = None,
1385
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1386
+ _content_type: Optional[StrictStr] = None,
1387
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1388
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1389
+ ) -> ApiResponse[List[Token]]:
1390
+ """CONTROLLER.RANKING.NEW_TOKENS.SUMMARY
1391
+
1392
+ CONTROLLER.RANKING.NEW_TOKENS.DESCRIPTION
1393
+
1394
+ :param chain: GLOBAL.CHAIN.DESCRIPTION (required)
1395
+ :type chain: ChainSymbol
1396
+ :param sort_by: DTO.TOKEN.REQUEST.SORT_BY
1397
+ :type sort_by: str
1398
+ :param sort_direction: DTO.TOKEN.REQUEST.SORT_DIRECTION
1399
+ :type sort_direction: str
1400
+ :param range_filters: DTO.TOKEN.REQUEST.FILTER_BY
1401
+ :type range_filters: List[FilterCondition]
1402
+ :param tag: DTO.TOKEN.REQUEST.TAG
1403
+ :type tag: str
1404
+ :param filters: DTO.TOKEN.FILTER.FILTERS
1405
+ :type filters: List[str]
1406
+ :param launchpad_platform: DTO.TOKEN.FILTER.LAUNCHPAD_PLATFORM
1407
+ :type launchpad_platform: List[str]
1408
+ :param search_keywords: DTO.TOKEN.FILTER.SEARCH_KEYWORDS
1409
+ :type search_keywords: List[str]
1410
+ :param exclude_keywords: DTO.TOKEN.FILTER.EXCLUDE_KEYWORDS
1411
+ :type exclude_keywords: List[str]
1412
+ :param _request_timeout: timeout setting for this request. If one
1413
+ number provided, it will be total request
1414
+ timeout. It can also be a pair (tuple) of
1415
+ (connection, read) timeouts.
1416
+ :type _request_timeout: int, tuple(int, int), optional
1417
+ :param _request_auth: set to override the auth_settings for an a single
1418
+ request; this effectively ignores the
1419
+ authentication in the spec for a single request.
1420
+ :type _request_auth: dict, optional
1421
+ :param _content_type: force content-type for the request.
1422
+ :type _content_type: str, Optional
1423
+ :param _headers: set to override the headers for a single
1424
+ request; this effectively ignores the headers
1425
+ in the spec for a single request.
1426
+ :type _headers: dict, optional
1427
+ :param _host_index: set to override the host_index for a single
1428
+ request; this effectively ignores the host_index
1429
+ in the spec for a single request.
1430
+ :type _host_index: int, optional
1431
+ :return: Returns the result object.
1432
+ """ # noqa: E501
1433
+
1434
+ _param = self._get_new_tokens_serialize(
1435
+ chain=chain,
1436
+ sort_by=sort_by,
1437
+ sort_direction=sort_direction,
1438
+ range_filters=range_filters,
1439
+ tag=tag,
1440
+ filters=filters,
1441
+ launchpad_platform=launchpad_platform,
1442
+ search_keywords=search_keywords,
1443
+ exclude_keywords=exclude_keywords,
1444
+ _request_auth=_request_auth,
1445
+ _content_type=_content_type,
1446
+ _headers=_headers,
1447
+ _host_index=_host_index
1448
+ )
1449
+
1450
+ _response_types_map: Dict[str, Optional[str]] = {
1451
+ '200': "List[Token]",
1452
+ }
1453
+ response_data = await self.api_client.call_api(
1454
+ *_param,
1455
+ _request_timeout=_request_timeout
1456
+ )
1457
+ await response_data.read()
1458
+ return self.api_client.response_deserialize(
1459
+ response_data=response_data,
1460
+ response_types_map=_response_types_map,
1461
+ )
1462
+
1463
+
1464
+ @validate_call
1465
+ async def get_new_tokens_without_preload_content(
1466
+ self,
1467
+ chain: Annotated[ChainSymbol, Field(description="GLOBAL.CHAIN.DESCRIPTION")],
1468
+ sort_by: Annotated[Optional[StrictStr], Field(description="DTO.TOKEN.REQUEST.SORT_BY")] = None,
1469
+ sort_direction: Annotated[Optional[StrictStr], Field(description="DTO.TOKEN.REQUEST.SORT_DIRECTION")] = None,
1470
+ range_filters: Annotated[Optional[List[FilterCondition]], Field(description="DTO.TOKEN.REQUEST.FILTER_BY")] = None,
1471
+ tag: Annotated[Optional[StrictStr], Field(description="DTO.TOKEN.REQUEST.TAG")] = None,
1472
+ filters: Annotated[Optional[List[StrictStr]], Field(description="DTO.TOKEN.FILTER.FILTERS")] = None,
1473
+ launchpad_platform: Annotated[Optional[List[StrictStr]], Field(description="DTO.TOKEN.FILTER.LAUNCHPAD_PLATFORM")] = None,
1474
+ search_keywords: Annotated[Optional[List[StrictStr]], Field(description="DTO.TOKEN.FILTER.SEARCH_KEYWORDS")] = None,
1475
+ exclude_keywords: Annotated[Optional[List[StrictStr]], Field(description="DTO.TOKEN.FILTER.EXCLUDE_KEYWORDS")] = None,
1476
+ _request_timeout: Union[
1477
+ None,
1478
+ Annotated[StrictFloat, Field(gt=0)],
1479
+ Tuple[
1480
+ Annotated[StrictFloat, Field(gt=0)],
1481
+ Annotated[StrictFloat, Field(gt=0)]
1482
+ ]
1483
+ ] = None,
1484
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1485
+ _content_type: Optional[StrictStr] = None,
1486
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1487
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1488
+ ) -> RESTResponseType:
1489
+ """CONTROLLER.RANKING.NEW_TOKENS.SUMMARY
1490
+
1491
+ CONTROLLER.RANKING.NEW_TOKENS.DESCRIPTION
1492
+
1493
+ :param chain: GLOBAL.CHAIN.DESCRIPTION (required)
1494
+ :type chain: ChainSymbol
1495
+ :param sort_by: DTO.TOKEN.REQUEST.SORT_BY
1496
+ :type sort_by: str
1497
+ :param sort_direction: DTO.TOKEN.REQUEST.SORT_DIRECTION
1498
+ :type sort_direction: str
1499
+ :param range_filters: DTO.TOKEN.REQUEST.FILTER_BY
1500
+ :type range_filters: List[FilterCondition]
1501
+ :param tag: DTO.TOKEN.REQUEST.TAG
1502
+ :type tag: str
1503
+ :param filters: DTO.TOKEN.FILTER.FILTERS
1504
+ :type filters: List[str]
1505
+ :param launchpad_platform: DTO.TOKEN.FILTER.LAUNCHPAD_PLATFORM
1506
+ :type launchpad_platform: List[str]
1507
+ :param search_keywords: DTO.TOKEN.FILTER.SEARCH_KEYWORDS
1508
+ :type search_keywords: List[str]
1509
+ :param exclude_keywords: DTO.TOKEN.FILTER.EXCLUDE_KEYWORDS
1510
+ :type exclude_keywords: List[str]
1511
+ :param _request_timeout: timeout setting for this request. If one
1512
+ number provided, it will be total request
1513
+ timeout. It can also be a pair (tuple) of
1514
+ (connection, read) timeouts.
1515
+ :type _request_timeout: int, tuple(int, int), optional
1516
+ :param _request_auth: set to override the auth_settings for an a single
1517
+ request; this effectively ignores the
1518
+ authentication in the spec for a single request.
1519
+ :type _request_auth: dict, optional
1520
+ :param _content_type: force content-type for the request.
1521
+ :type _content_type: str, Optional
1522
+ :param _headers: set to override the headers for a single
1523
+ request; this effectively ignores the headers
1524
+ in the spec for a single request.
1525
+ :type _headers: dict, optional
1526
+ :param _host_index: set to override the host_index for a single
1527
+ request; this effectively ignores the host_index
1528
+ in the spec for a single request.
1529
+ :type _host_index: int, optional
1530
+ :return: Returns the result object.
1531
+ """ # noqa: E501
1532
+
1533
+ _param = self._get_new_tokens_serialize(
1534
+ chain=chain,
1535
+ sort_by=sort_by,
1536
+ sort_direction=sort_direction,
1537
+ range_filters=range_filters,
1538
+ tag=tag,
1539
+ filters=filters,
1540
+ launchpad_platform=launchpad_platform,
1541
+ search_keywords=search_keywords,
1542
+ exclude_keywords=exclude_keywords,
1543
+ _request_auth=_request_auth,
1544
+ _content_type=_content_type,
1545
+ _headers=_headers,
1546
+ _host_index=_host_index
1547
+ )
1548
+
1549
+ _response_types_map: Dict[str, Optional[str]] = {
1550
+ '200': "List[Token]",
1551
+ }
1552
+ response_data = await self.api_client.call_api(
1553
+ *_param,
1554
+ _request_timeout=_request_timeout
1555
+ )
1556
+ return response_data.response
1557
+
1558
+
1559
+ def _get_new_tokens_serialize(
1560
+ self,
1561
+ chain,
1562
+ sort_by,
1563
+ sort_direction,
1564
+ range_filters,
1565
+ tag,
1566
+ filters,
1567
+ launchpad_platform,
1568
+ search_keywords,
1569
+ exclude_keywords,
1570
+ _request_auth,
1571
+ _content_type,
1572
+ _headers,
1573
+ _host_index,
1574
+ ) -> RequestSerialized:
1575
+
1576
+ _host = None
1577
+
1578
+ _collection_formats: Dict[str, str] = {
1579
+ 'rangeFilters': 'multi',
1580
+ 'filters': 'multi',
1581
+ 'launchpadPlatform': 'multi',
1582
+ 'searchKeywords': 'multi',
1583
+ 'excludeKeywords': 'multi',
1584
+ }
1585
+
1586
+ _path_params: Dict[str, str] = {}
1587
+ _query_params: List[Tuple[str, str]] = []
1588
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1589
+ _form_params: List[Tuple[str, str]] = []
1590
+ _files: Dict[
1591
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1592
+ ] = {}
1593
+ _body_params: Optional[bytes] = None
1594
+
1595
+ # process the path parameters
1596
+ if chain is not None:
1597
+ _path_params['chain'] = chain.value
1598
+ # process the query parameters
1599
+ if sort_by is not None:
1600
+
1601
+ _query_params.append(('sortBy', sort_by))
1602
+
1603
+ if sort_direction is not None:
1604
+
1605
+ _query_params.append(('sortDirection', sort_direction))
1606
+
1607
+ if range_filters is not None:
1608
+
1609
+ _query_params.append(('rangeFilters', range_filters))
1610
+
1611
+ if tag is not None:
1612
+
1613
+ _query_params.append(('tag', tag))
1614
+
1615
+ if filters is not None:
1616
+
1617
+ _query_params.append(('filters', filters))
1618
+
1619
+ if launchpad_platform is not None:
1620
+
1621
+ _query_params.append(('launchpadPlatform', launchpad_platform))
1622
+
1623
+ if search_keywords is not None:
1624
+
1625
+ _query_params.append(('searchKeywords', search_keywords))
1626
+
1627
+ if exclude_keywords is not None:
1628
+
1629
+ _query_params.append(('excludeKeywords', exclude_keywords))
1630
+
1631
+ # process the header parameters
1632
+ # process the form parameters
1633
+ # process the body parameter
1634
+
1635
+
1636
+ # set the HTTP header `Accept`
1637
+ if 'Accept' not in _header_params:
1638
+ _header_params['Accept'] = self.api_client.select_header_accept(
1639
+ [
1640
+ 'application/json'
1641
+ ]
1642
+ )
1643
+
1644
+
1645
+ # authentication setting
1646
+ _auth_settings: List[str] = [
1647
+ 'bearer'
1648
+ ]
1649
+
1650
+ return self.api_client.param_serialize(
1651
+ method='GET',
1652
+ resource_path='/v1/ranking/{chain}/newTokens',
1653
+ path_params=_path_params,
1654
+ query_params=_query_params,
1655
+ header_params=_header_params,
1656
+ body=_body_params,
1657
+ post_params=_form_params,
1658
+ files=_files,
1659
+ auth_settings=_auth_settings,
1660
+ collection_formats=_collection_formats,
1661
+ _host=_host,
1662
+ _request_auth=_request_auth
1663
+ )
1664
+
1665
+
1666
+
1667
+
1668
+ @validate_call
1669
+ async def get_stocks_tokens(
1670
+ self,
1671
+ chain: Annotated[ChainSymbol, Field(description="GLOBAL.CHAIN.DESCRIPTION")],
1672
+ sort_by: Annotated[Optional[StrictStr], Field(description="DTO.TOKEN.REQUEST.SORT_BY")] = None,
1673
+ sort_direction: Annotated[Optional[StrictStr], Field(description="DTO.TOKEN.REQUEST.SORT_DIRECTION")] = None,
1674
+ range_filters: Annotated[Optional[List[FilterCondition]], Field(description="DTO.TOKEN.REQUEST.FILTER_BY")] = None,
1675
+ tag: Annotated[Optional[StrictStr], Field(description="DTO.TOKEN.REQUEST.TAG")] = None,
1676
+ filters: Annotated[Optional[List[StrictStr]], Field(description="DTO.TOKEN.FILTER.FILTERS")] = None,
1677
+ launchpad_platform: Annotated[Optional[List[StrictStr]], Field(description="DTO.TOKEN.FILTER.LAUNCHPAD_PLATFORM")] = None,
1678
+ search_keywords: Annotated[Optional[List[StrictStr]], Field(description="DTO.TOKEN.FILTER.SEARCH_KEYWORDS")] = None,
1679
+ exclude_keywords: Annotated[Optional[List[StrictStr]], Field(description="DTO.TOKEN.FILTER.EXCLUDE_KEYWORDS")] = None,
1680
+ _request_timeout: Union[
1681
+ None,
1682
+ Annotated[StrictFloat, Field(gt=0)],
1683
+ Tuple[
1684
+ Annotated[StrictFloat, Field(gt=0)],
1685
+ Annotated[StrictFloat, Field(gt=0)]
1686
+ ]
1687
+ ] = None,
1688
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1689
+ _content_type: Optional[StrictStr] = None,
1690
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1691
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1692
+ ) -> List[Token]:
1693
+ """CONTROLLER.RANKING.STOCKS_TOKENS.SUMMARY
1694
+
1695
+ CONTROLLER.RANKING.STOCKS_TOKENS.DESCRIPTION
1696
+
1697
+ :param chain: GLOBAL.CHAIN.DESCRIPTION (required)
1698
+ :type chain: ChainSymbol
1699
+ :param sort_by: DTO.TOKEN.REQUEST.SORT_BY
1700
+ :type sort_by: str
1701
+ :param sort_direction: DTO.TOKEN.REQUEST.SORT_DIRECTION
1702
+ :type sort_direction: str
1703
+ :param range_filters: DTO.TOKEN.REQUEST.FILTER_BY
1704
+ :type range_filters: List[FilterCondition]
1705
+ :param tag: DTO.TOKEN.REQUEST.TAG
1706
+ :type tag: str
1707
+ :param filters: DTO.TOKEN.FILTER.FILTERS
1708
+ :type filters: List[str]
1709
+ :param launchpad_platform: DTO.TOKEN.FILTER.LAUNCHPAD_PLATFORM
1710
+ :type launchpad_platform: List[str]
1711
+ :param search_keywords: DTO.TOKEN.FILTER.SEARCH_KEYWORDS
1712
+ :type search_keywords: List[str]
1713
+ :param exclude_keywords: DTO.TOKEN.FILTER.EXCLUDE_KEYWORDS
1714
+ :type exclude_keywords: List[str]
1715
+ :param _request_timeout: timeout setting for this request. If one
1716
+ number provided, it will be total request
1717
+ timeout. It can also be a pair (tuple) of
1718
+ (connection, read) timeouts.
1719
+ :type _request_timeout: int, tuple(int, int), optional
1720
+ :param _request_auth: set to override the auth_settings for an a single
1721
+ request; this effectively ignores the
1722
+ authentication in the spec for a single request.
1723
+ :type _request_auth: dict, optional
1724
+ :param _content_type: force content-type for the request.
1725
+ :type _content_type: str, Optional
1726
+ :param _headers: set to override the headers for a single
1727
+ request; this effectively ignores the headers
1728
+ in the spec for a single request.
1729
+ :type _headers: dict, optional
1730
+ :param _host_index: set to override the host_index for a single
1731
+ request; this effectively ignores the host_index
1732
+ in the spec for a single request.
1733
+ :type _host_index: int, optional
1734
+ :return: Returns the result object.
1735
+ """ # noqa: E501
1736
+
1737
+ _param = self._get_stocks_tokens_serialize(
1738
+ chain=chain,
1739
+ sort_by=sort_by,
1740
+ sort_direction=sort_direction,
1741
+ range_filters=range_filters,
1742
+ tag=tag,
1743
+ filters=filters,
1744
+ launchpad_platform=launchpad_platform,
1745
+ search_keywords=search_keywords,
1746
+ exclude_keywords=exclude_keywords,
1747
+ _request_auth=_request_auth,
1748
+ _content_type=_content_type,
1749
+ _headers=_headers,
1750
+ _host_index=_host_index
1751
+ )
1752
+
1753
+ _response_types_map: Dict[str, Optional[str]] = {
1754
+ '200': "List[Token]",
1755
+ }
1756
+ response_data = await self.api_client.call_api(
1757
+ *_param,
1758
+ _request_timeout=_request_timeout
1759
+ )
1760
+ await response_data.read()
1761
+ return self.api_client.response_deserialize(
1762
+ response_data=response_data,
1763
+ response_types_map=_response_types_map,
1764
+ ).data
1765
+
1766
+
1767
+ @validate_call
1768
+ async def get_stocks_tokens_with_http_info(
1769
+ self,
1770
+ chain: Annotated[ChainSymbol, Field(description="GLOBAL.CHAIN.DESCRIPTION")],
1771
+ sort_by: Annotated[Optional[StrictStr], Field(description="DTO.TOKEN.REQUEST.SORT_BY")] = None,
1772
+ sort_direction: Annotated[Optional[StrictStr], Field(description="DTO.TOKEN.REQUEST.SORT_DIRECTION")] = None,
1773
+ range_filters: Annotated[Optional[List[FilterCondition]], Field(description="DTO.TOKEN.REQUEST.FILTER_BY")] = None,
1774
+ tag: Annotated[Optional[StrictStr], Field(description="DTO.TOKEN.REQUEST.TAG")] = None,
1775
+ filters: Annotated[Optional[List[StrictStr]], Field(description="DTO.TOKEN.FILTER.FILTERS")] = None,
1776
+ launchpad_platform: Annotated[Optional[List[StrictStr]], Field(description="DTO.TOKEN.FILTER.LAUNCHPAD_PLATFORM")] = None,
1777
+ search_keywords: Annotated[Optional[List[StrictStr]], Field(description="DTO.TOKEN.FILTER.SEARCH_KEYWORDS")] = None,
1778
+ exclude_keywords: Annotated[Optional[List[StrictStr]], Field(description="DTO.TOKEN.FILTER.EXCLUDE_KEYWORDS")] = None,
1779
+ _request_timeout: Union[
1780
+ None,
1781
+ Annotated[StrictFloat, Field(gt=0)],
1782
+ Tuple[
1783
+ Annotated[StrictFloat, Field(gt=0)],
1784
+ Annotated[StrictFloat, Field(gt=0)]
1785
+ ]
1786
+ ] = None,
1787
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1788
+ _content_type: Optional[StrictStr] = None,
1789
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1790
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1791
+ ) -> ApiResponse[List[Token]]:
1792
+ """CONTROLLER.RANKING.STOCKS_TOKENS.SUMMARY
1793
+
1794
+ CONTROLLER.RANKING.STOCKS_TOKENS.DESCRIPTION
1795
+
1796
+ :param chain: GLOBAL.CHAIN.DESCRIPTION (required)
1797
+ :type chain: ChainSymbol
1798
+ :param sort_by: DTO.TOKEN.REQUEST.SORT_BY
1799
+ :type sort_by: str
1800
+ :param sort_direction: DTO.TOKEN.REQUEST.SORT_DIRECTION
1801
+ :type sort_direction: str
1802
+ :param range_filters: DTO.TOKEN.REQUEST.FILTER_BY
1803
+ :type range_filters: List[FilterCondition]
1804
+ :param tag: DTO.TOKEN.REQUEST.TAG
1805
+ :type tag: str
1806
+ :param filters: DTO.TOKEN.FILTER.FILTERS
1807
+ :type filters: List[str]
1808
+ :param launchpad_platform: DTO.TOKEN.FILTER.LAUNCHPAD_PLATFORM
1809
+ :type launchpad_platform: List[str]
1810
+ :param search_keywords: DTO.TOKEN.FILTER.SEARCH_KEYWORDS
1811
+ :type search_keywords: List[str]
1812
+ :param exclude_keywords: DTO.TOKEN.FILTER.EXCLUDE_KEYWORDS
1813
+ :type exclude_keywords: List[str]
1814
+ :param _request_timeout: timeout setting for this request. If one
1815
+ number provided, it will be total request
1816
+ timeout. It can also be a pair (tuple) of
1817
+ (connection, read) timeouts.
1818
+ :type _request_timeout: int, tuple(int, int), optional
1819
+ :param _request_auth: set to override the auth_settings for an a single
1820
+ request; this effectively ignores the
1821
+ authentication in the spec for a single request.
1822
+ :type _request_auth: dict, optional
1823
+ :param _content_type: force content-type for the request.
1824
+ :type _content_type: str, Optional
1825
+ :param _headers: set to override the headers for a single
1826
+ request; this effectively ignores the headers
1827
+ in the spec for a single request.
1828
+ :type _headers: dict, optional
1829
+ :param _host_index: set to override the host_index for a single
1830
+ request; this effectively ignores the host_index
1831
+ in the spec for a single request.
1832
+ :type _host_index: int, optional
1833
+ :return: Returns the result object.
1834
+ """ # noqa: E501
1835
+
1836
+ _param = self._get_stocks_tokens_serialize(
1837
+ chain=chain,
1838
+ sort_by=sort_by,
1839
+ sort_direction=sort_direction,
1840
+ range_filters=range_filters,
1841
+ tag=tag,
1842
+ filters=filters,
1843
+ launchpad_platform=launchpad_platform,
1844
+ search_keywords=search_keywords,
1845
+ exclude_keywords=exclude_keywords,
1846
+ _request_auth=_request_auth,
1847
+ _content_type=_content_type,
1848
+ _headers=_headers,
1849
+ _host_index=_host_index
1850
+ )
1851
+
1852
+ _response_types_map: Dict[str, Optional[str]] = {
1853
+ '200': "List[Token]",
1854
+ }
1855
+ response_data = await self.api_client.call_api(
1856
+ *_param,
1857
+ _request_timeout=_request_timeout
1858
+ )
1859
+ await response_data.read()
1860
+ return self.api_client.response_deserialize(
1861
+ response_data=response_data,
1862
+ response_types_map=_response_types_map,
1863
+ )
1864
+
1865
+
1866
+ @validate_call
1867
+ async def get_stocks_tokens_without_preload_content(
1868
+ self,
1869
+ chain: Annotated[ChainSymbol, Field(description="GLOBAL.CHAIN.DESCRIPTION")],
1870
+ sort_by: Annotated[Optional[StrictStr], Field(description="DTO.TOKEN.REQUEST.SORT_BY")] = None,
1871
+ sort_direction: Annotated[Optional[StrictStr], Field(description="DTO.TOKEN.REQUEST.SORT_DIRECTION")] = None,
1872
+ range_filters: Annotated[Optional[List[FilterCondition]], Field(description="DTO.TOKEN.REQUEST.FILTER_BY")] = None,
1873
+ tag: Annotated[Optional[StrictStr], Field(description="DTO.TOKEN.REQUEST.TAG")] = None,
1874
+ filters: Annotated[Optional[List[StrictStr]], Field(description="DTO.TOKEN.FILTER.FILTERS")] = None,
1875
+ launchpad_platform: Annotated[Optional[List[StrictStr]], Field(description="DTO.TOKEN.FILTER.LAUNCHPAD_PLATFORM")] = None,
1876
+ search_keywords: Annotated[Optional[List[StrictStr]], Field(description="DTO.TOKEN.FILTER.SEARCH_KEYWORDS")] = None,
1877
+ exclude_keywords: Annotated[Optional[List[StrictStr]], Field(description="DTO.TOKEN.FILTER.EXCLUDE_KEYWORDS")] = None,
1878
+ _request_timeout: Union[
1879
+ None,
1880
+ Annotated[StrictFloat, Field(gt=0)],
1881
+ Tuple[
1882
+ Annotated[StrictFloat, Field(gt=0)],
1883
+ Annotated[StrictFloat, Field(gt=0)]
1884
+ ]
1885
+ ] = None,
1886
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
1887
+ _content_type: Optional[StrictStr] = None,
1888
+ _headers: Optional[Dict[StrictStr, Any]] = None,
1889
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
1890
+ ) -> RESTResponseType:
1891
+ """CONTROLLER.RANKING.STOCKS_TOKENS.SUMMARY
1892
+
1893
+ CONTROLLER.RANKING.STOCKS_TOKENS.DESCRIPTION
1894
+
1895
+ :param chain: GLOBAL.CHAIN.DESCRIPTION (required)
1896
+ :type chain: ChainSymbol
1897
+ :param sort_by: DTO.TOKEN.REQUEST.SORT_BY
1898
+ :type sort_by: str
1899
+ :param sort_direction: DTO.TOKEN.REQUEST.SORT_DIRECTION
1900
+ :type sort_direction: str
1901
+ :param range_filters: DTO.TOKEN.REQUEST.FILTER_BY
1902
+ :type range_filters: List[FilterCondition]
1903
+ :param tag: DTO.TOKEN.REQUEST.TAG
1904
+ :type tag: str
1905
+ :param filters: DTO.TOKEN.FILTER.FILTERS
1906
+ :type filters: List[str]
1907
+ :param launchpad_platform: DTO.TOKEN.FILTER.LAUNCHPAD_PLATFORM
1908
+ :type launchpad_platform: List[str]
1909
+ :param search_keywords: DTO.TOKEN.FILTER.SEARCH_KEYWORDS
1910
+ :type search_keywords: List[str]
1911
+ :param exclude_keywords: DTO.TOKEN.FILTER.EXCLUDE_KEYWORDS
1912
+ :type exclude_keywords: List[str]
1913
+ :param _request_timeout: timeout setting for this request. If one
1914
+ number provided, it will be total request
1915
+ timeout. It can also be a pair (tuple) of
1916
+ (connection, read) timeouts.
1917
+ :type _request_timeout: int, tuple(int, int), optional
1918
+ :param _request_auth: set to override the auth_settings for an a single
1919
+ request; this effectively ignores the
1920
+ authentication in the spec for a single request.
1921
+ :type _request_auth: dict, optional
1922
+ :param _content_type: force content-type for the request.
1923
+ :type _content_type: str, Optional
1924
+ :param _headers: set to override the headers for a single
1925
+ request; this effectively ignores the headers
1926
+ in the spec for a single request.
1927
+ :type _headers: dict, optional
1928
+ :param _host_index: set to override the host_index for a single
1929
+ request; this effectively ignores the host_index
1930
+ in the spec for a single request.
1931
+ :type _host_index: int, optional
1932
+ :return: Returns the result object.
1933
+ """ # noqa: E501
1934
+
1935
+ _param = self._get_stocks_tokens_serialize(
1936
+ chain=chain,
1937
+ sort_by=sort_by,
1938
+ sort_direction=sort_direction,
1939
+ range_filters=range_filters,
1940
+ tag=tag,
1941
+ filters=filters,
1942
+ launchpad_platform=launchpad_platform,
1943
+ search_keywords=search_keywords,
1944
+ exclude_keywords=exclude_keywords,
1945
+ _request_auth=_request_auth,
1946
+ _content_type=_content_type,
1947
+ _headers=_headers,
1948
+ _host_index=_host_index
1949
+ )
1950
+
1951
+ _response_types_map: Dict[str, Optional[str]] = {
1952
+ '200': "List[Token]",
1953
+ }
1954
+ response_data = await self.api_client.call_api(
1955
+ *_param,
1956
+ _request_timeout=_request_timeout
1957
+ )
1958
+ return response_data.response
1959
+
1960
+
1961
+ def _get_stocks_tokens_serialize(
1962
+ self,
1963
+ chain,
1964
+ sort_by,
1965
+ sort_direction,
1966
+ range_filters,
1967
+ tag,
1968
+ filters,
1969
+ launchpad_platform,
1970
+ search_keywords,
1971
+ exclude_keywords,
1972
+ _request_auth,
1973
+ _content_type,
1974
+ _headers,
1975
+ _host_index,
1976
+ ) -> RequestSerialized:
1977
+
1978
+ _host = None
1979
+
1980
+ _collection_formats: Dict[str, str] = {
1981
+ 'rangeFilters': 'multi',
1982
+ 'filters': 'multi',
1983
+ 'launchpadPlatform': 'multi',
1984
+ 'searchKeywords': 'multi',
1985
+ 'excludeKeywords': 'multi',
1986
+ }
1987
+
1988
+ _path_params: Dict[str, str] = {}
1989
+ _query_params: List[Tuple[str, str]] = []
1990
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1991
+ _form_params: List[Tuple[str, str]] = []
1992
+ _files: Dict[
1993
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1994
+ ] = {}
1995
+ _body_params: Optional[bytes] = None
1996
+
1997
+ # process the path parameters
1998
+ if chain is not None:
1999
+ _path_params['chain'] = chain.value
2000
+ # process the query parameters
2001
+ if sort_by is not None:
2002
+
2003
+ _query_params.append(('sortBy', sort_by))
2004
+
2005
+ if sort_direction is not None:
2006
+
2007
+ _query_params.append(('sortDirection', sort_direction))
2008
+
2009
+ if range_filters is not None:
2010
+
2011
+ _query_params.append(('rangeFilters', range_filters))
2012
+
2013
+ if tag is not None:
2014
+
2015
+ _query_params.append(('tag', tag))
2016
+
2017
+ if filters is not None:
2018
+
2019
+ _query_params.append(('filters', filters))
2020
+
2021
+ if launchpad_platform is not None:
2022
+
2023
+ _query_params.append(('launchpadPlatform', launchpad_platform))
2024
+
2025
+ if search_keywords is not None:
2026
+
2027
+ _query_params.append(('searchKeywords', search_keywords))
2028
+
2029
+ if exclude_keywords is not None:
2030
+
2031
+ _query_params.append(('excludeKeywords', exclude_keywords))
2032
+
2033
+ # process the header parameters
2034
+ # process the form parameters
2035
+ # process the body parameter
2036
+
2037
+
2038
+ # set the HTTP header `Accept`
2039
+ if 'Accept' not in _header_params:
2040
+ _header_params['Accept'] = self.api_client.select_header_accept(
2041
+ [
2042
+ 'application/json'
2043
+ ]
2044
+ )
2045
+
2046
+
2047
+ # authentication setting
2048
+ _auth_settings: List[str] = [
2049
+ 'bearer'
2050
+ ]
2051
+
2052
+ return self.api_client.param_serialize(
2053
+ method='GET',
2054
+ resource_path='/v1/ranking/{chain}/stocks',
2055
+ path_params=_path_params,
2056
+ query_params=_query_params,
2057
+ header_params=_header_params,
2058
+ body=_body_params,
2059
+ post_params=_form_params,
2060
+ files=_files,
2061
+ auth_settings=_auth_settings,
2062
+ collection_formats=_collection_formats,
2063
+ _host=_host,
2064
+ _request_auth=_request_auth
2065
+ )
2066
+
2067
+