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.
- chainstream/__init__.py +46 -0
- chainstream/client.py +104 -0
- chainstream/openapi_client/__init__.py +156 -0
- chainstream/openapi_client/api/__init__.py +20 -0
- chainstream/openapi_client/api/blockchain_api.py +549 -0
- chainstream/openapi_client/api/defi_sol_moonshot_api.py +590 -0
- chainstream/openapi_client/api/defi_sol_pumpfun_api.py +314 -0
- chainstream/openapi_client/api/dex_api.py +1576 -0
- chainstream/openapi_client/api/dex_pool_api.py +645 -0
- chainstream/openapi_client/api/endpoint_api.py +1934 -0
- chainstream/openapi_client/api/ipfs_api.py +283 -0
- chainstream/openapi_client/api/jobs_api.py +562 -0
- chainstream/openapi_client/api/kyt_api.py +3743 -0
- chainstream/openapi_client/api/ranking_api.py +2067 -0
- chainstream/openapi_client/api/red_packet_api.py +2444 -0
- chainstream/openapi_client/api/token_api.py +9211 -0
- chainstream/openapi_client/api/trade_api.py +1352 -0
- chainstream/openapi_client/api/transaction_api.py +882 -0
- chainstream/openapi_client/api/wallet_api.py +1608 -0
- chainstream/openapi_client/api/watchlist_api.py +316 -0
- chainstream/openapi_client/api_client.py +801 -0
- chainstream/openapi_client/api_response.py +21 -0
- chainstream/openapi_client/configuration.py +572 -0
- chainstream/openapi_client/exceptions.py +217 -0
- chainstream/openapi_client/models/__init__.py +122 -0
- chainstream/openapi_client/models/address_exposure.py +94 -0
- chainstream/openapi_client/models/address_risk_response_dto.py +112 -0
- chainstream/openapi_client/models/alert_detail.py +100 -0
- chainstream/openapi_client/models/alterya_identification.py +106 -0
- chainstream/openapi_client/models/balance_change_type.py +38 -0
- chainstream/openapi_client/models/balance_token_type.py +38 -0
- chainstream/openapi_client/models/balance_update_dto.py +130 -0
- chainstream/openapi_client/models/balance_update_page.py +104 -0
- chainstream/openapi_client/models/blockchain_dto.py +94 -0
- chainstream/openapi_client/models/blockchain_latest_block_dto.py +90 -0
- chainstream/openapi_client/models/boolean_result_dto.py +88 -0
- chainstream/openapi_client/models/calculate_pnl_input.py +88 -0
- chainstream/openapi_client/models/candle.py +101 -0
- chainstream/openapi_client/models/chain.py +39 -0
- chainstream/openapi_client/models/chain_symbol.py +39 -0
- chainstream/openapi_client/models/chainalysis_address_identification.py +92 -0
- chainstream/openapi_client/models/claim_red_packet_input.py +103 -0
- chainstream/openapi_client/models/create_endpoint_input.py +102 -0
- chainstream/openapi_client/models/create_red_packet_input.py +112 -0
- chainstream/openapi_client/models/create_red_packet_reply.py +90 -0
- chainstream/openapi_client/models/create_token_input.py +110 -0
- chainstream/openapi_client/models/create_token_reply.py +90 -0
- chainstream/openapi_client/models/dev_token_dto.py +106 -0
- chainstream/openapi_client/models/dex_dto.py +94 -0
- chainstream/openapi_client/models/dex_page.py +106 -0
- chainstream/openapi_client/models/dex_pool_dto.py +161 -0
- chainstream/openapi_client/models/dex_pool_snapshot_dto.py +111 -0
- chainstream/openapi_client/models/dex_pool_snapshot_page.py +104 -0
- chainstream/openapi_client/models/dex_pool_token_liquidity.py +100 -0
- chainstream/openapi_client/models/dex_pool_token_snapshot_dto.py +100 -0
- chainstream/openapi_client/models/dex_quote_response.py +98 -0
- chainstream/openapi_client/models/direct_exposure_detail.py +90 -0
- chainstream/openapi_client/models/endpoint_list_response.py +102 -0
- chainstream/openapi_client/models/endpoint_operation_response.py +88 -0
- chainstream/openapi_client/models/endpoint_response.py +108 -0
- chainstream/openapi_client/models/endpoint_secret_response.py +88 -0
- chainstream/openapi_client/models/estimate_gas_limit_input.py +94 -0
- chainstream/openapi_client/models/estimate_gas_limit_response.py +90 -0
- chainstream/openapi_client/models/filter_condition.py +102 -0
- chainstream/openapi_client/models/gas_price_response.py +90 -0
- chainstream/openapi_client/models/job_dto.py +90 -0
- chainstream/openapi_client/models/job_streaming_dto.py +90 -0
- chainstream/openapi_client/models/kyt_register_transfer_request.py +108 -0
- chainstream/openapi_client/models/kyt_register_withdrawal_request.py +111 -0
- chainstream/openapi_client/models/link.py +97 -0
- chainstream/openapi_client/models/moonshot_create_token_input.py +145 -0
- chainstream/openapi_client/models/moonshot_create_token_reply.py +90 -0
- chainstream/openapi_client/models/moonshot_submit_create_token200_response.py +90 -0
- chainstream/openapi_client/models/moonshot_submit_create_token_input.py +90 -0
- chainstream/openapi_client/models/network_identification_org.py +88 -0
- chainstream/openapi_client/models/on_chain_activity.py +88 -0
- chainstream/openapi_client/models/pump_create_token_input.py +155 -0
- chainstream/openapi_client/models/pump_create_token_reply.py +90 -0
- chainstream/openapi_client/models/red_packet_claim_dto.py +103 -0
- chainstream/openapi_client/models/red_packet_claims_page.py +104 -0
- chainstream/openapi_client/models/red_packet_dto.py +121 -0
- chainstream/openapi_client/models/red_packet_reply.py +88 -0
- chainstream/openapi_client/models/red_packet_send_tx_input.py +88 -0
- chainstream/openapi_client/models/red_packet_send_tx_response.py +88 -0
- chainstream/openapi_client/models/red_packets_page.py +104 -0
- chainstream/openapi_client/models/register_address_request.py +88 -0
- chainstream/openapi_client/models/register_address_response_dto.py +88 -0
- chainstream/openapi_client/models/resolution.py +46 -0
- chainstream/openapi_client/models/send_tx_input.py +102 -0
- chainstream/openapi_client/models/send_tx_response.py +92 -0
- chainstream/openapi_client/models/swap_input.py +119 -0
- chainstream/openapi_client/models/swap_reply.py +90 -0
- chainstream/openapi_client/models/swap_route_input.py +127 -0
- chainstream/openapi_client/models/swap_route_response.py +98 -0
- chainstream/openapi_client/models/token.py +158 -0
- chainstream/openapi_client/models/token_creation_dto.py +107 -0
- chainstream/openapi_client/models/token_creation_page.py +106 -0
- chainstream/openapi_client/models/token_creators_dto.py +92 -0
- chainstream/openapi_client/models/token_extra_dto.py +128 -0
- chainstream/openapi_client/models/token_holder.py +94 -0
- chainstream/openapi_client/models/token_holder_page.py +106 -0
- chainstream/openapi_client/models/token_liquidity_snapshot_dto.py +106 -0
- chainstream/openapi_client/models/token_liquidity_snapshot_page.py +104 -0
- chainstream/openapi_client/models/token_list_page.py +106 -0
- chainstream/openapi_client/models/token_market_data.py +174 -0
- chainstream/openapi_client/models/token_metadata.py +132 -0
- chainstream/openapi_client/models/token_page.py +108 -0
- chainstream/openapi_client/models/token_price_dto.py +94 -0
- chainstream/openapi_client/models/token_price_page.py +106 -0
- chainstream/openapi_client/models/token_social_medias_dto.py +112 -0
- chainstream/openapi_client/models/token_stat.py +340 -0
- chainstream/openapi_client/models/token_trader.py +113 -0
- chainstream/openapi_client/models/token_trader_tag.py +45 -0
- chainstream/openapi_client/models/top_traders_dto.py +110 -0
- chainstream/openapi_client/models/top_traders_page.py +106 -0
- chainstream/openapi_client/models/trade_detail_dto.py +136 -0
- chainstream/openapi_client/models/trade_event.py +113 -0
- chainstream/openapi_client/models/trade_page.py +106 -0
- chainstream/openapi_client/models/trade_type.py +38 -0
- chainstream/openapi_client/models/transfer_alerts_response_dto.py +96 -0
- chainstream/openapi_client/models/transfer_base_response_dto.py +112 -0
- chainstream/openapi_client/models/transfer_direct_exposure_response_dto.py +92 -0
- chainstream/openapi_client/models/transfer_network_identifications_response_dto.py +98 -0
- chainstream/openapi_client/models/update_endpoint_input.py +104 -0
- chainstream/openapi_client/models/wallet_balance_detail_dto.py +136 -0
- chainstream/openapi_client/models/wallet_balances_dto.py +100 -0
- chainstream/openapi_client/models/wallet_pnl_dto.py +132 -0
- chainstream/openapi_client/models/withdrawal_address_identifications_response_dto.py +98 -0
- chainstream/openapi_client/models/withdrawal_base_response_dto.py +106 -0
- chainstream/openapi_client/models/withdrawal_fraud_assessment_response_dto.py +96 -0
- chainstream/openapi_client/rest.py +213 -0
- chainstream/openapi_client/test/__init__.py +0 -0
- chainstream/openapi_client/test/test_address_exposure.py +59 -0
- chainstream/openapi_client/test/test_address_risk_response_dto.py +81 -0
- chainstream/openapi_client/test/test_alert_detail.py +65 -0
- chainstream/openapi_client/test/test_alterya_identification.py +69 -0
- chainstream/openapi_client/test/test_balance_change_type.py +34 -0
- chainstream/openapi_client/test/test_balance_token_type.py +34 -0
- chainstream/openapi_client/test/test_balance_update_dto.py +93 -0
- chainstream/openapi_client/test/test_balance_update_page.py +105 -0
- chainstream/openapi_client/test/test_blockchain_api.py +46 -0
- chainstream/openapi_client/test/test_blockchain_dto.py +59 -0
- chainstream/openapi_client/test/test_blockchain_latest_block_dto.py +55 -0
- chainstream/openapi_client/test/test_boolean_result_dto.py +53 -0
- chainstream/openapi_client/test/test_calculate_pnl_input.py +52 -0
- chainstream/openapi_client/test/test_candle.py +65 -0
- chainstream/openapi_client/test/test_chain.py +34 -0
- chainstream/openapi_client/test/test_chain_symbol.py +34 -0
- chainstream/openapi_client/test/test_chainalysis_address_identification.py +57 -0
- chainstream/openapi_client/test/test_claim_red_packet_input.py +58 -0
- chainstream/openapi_client/test/test_create_endpoint_input.py +63 -0
- chainstream/openapi_client/test/test_create_red_packet_input.py +64 -0
- chainstream/openapi_client/test/test_create_red_packet_reply.py +55 -0
- chainstream/openapi_client/test/test_create_token_input.py +63 -0
- chainstream/openapi_client/test/test_create_token_reply.py +55 -0
- chainstream/openapi_client/test/test_defi_sol_moonshot_api.py +46 -0
- chainstream/openapi_client/test/test_defi_sol_pumpfun_api.py +39 -0
- chainstream/openapi_client/test/test_dev_token_dto.py +441 -0
- chainstream/openapi_client/test/test_dex_api.py +67 -0
- chainstream/openapi_client/test/test_dex_dto.py +56 -0
- chainstream/openapi_client/test/test_dex_page.py +70 -0
- chainstream/openapi_client/test/test_dex_pool_api.py +46 -0
- chainstream/openapi_client/test/test_dex_pool_dto.py +88 -0
- chainstream/openapi_client/test/test_dex_pool_snapshot_dto.py +96 -0
- chainstream/openapi_client/test/test_dex_pool_snapshot_page.py +81 -0
- chainstream/openapi_client/test/test_dex_pool_token_liquidity.py +65 -0
- chainstream/openapi_client/test/test_dex_pool_token_snapshot_dto.py +65 -0
- chainstream/openapi_client/test/test_dex_quote_response.py +57 -0
- chainstream/openapi_client/test/test_direct_exposure_detail.py +55 -0
- chainstream/openapi_client/test/test_endpoint_api.py +81 -0
- chainstream/openapi_client/test/test_endpoint_list_response.py +72 -0
- chainstream/openapi_client/test/test_endpoint_operation_response.py +52 -0
- chainstream/openapi_client/test/test_endpoint_response.py +66 -0
- chainstream/openapi_client/test/test_endpoint_secret_response.py +52 -0
- chainstream/openapi_client/test/test_estimate_gas_limit_input.py +58 -0
- chainstream/openapi_client/test/test_estimate_gas_limit_response.py +55 -0
- chainstream/openapi_client/test/test_filter_condition.py +54 -0
- chainstream/openapi_client/test/test_gas_price_response.py +55 -0
- chainstream/openapi_client/test/test_ipfs_api.py +39 -0
- chainstream/openapi_client/test/test_job_dto.py +55 -0
- chainstream/openapi_client/test/test_job_streaming_dto.py +55 -0
- chainstream/openapi_client/test/test_jobs_api.py +46 -0
- chainstream/openapi_client/test/test_kyt_api.py +130 -0
- chainstream/openapi_client/test/test_kyt_register_transfer_request.py +59 -0
- chainstream/openapi_client/test/test_kyt_register_withdrawal_request.py +65 -0
- chainstream/openapi_client/test/test_link.py +55 -0
- chainstream/openapi_client/test/test_moonshot_create_token_input.py +79 -0
- chainstream/openapi_client/test/test_moonshot_create_token_reply.py +55 -0
- chainstream/openapi_client/test/test_moonshot_submit_create_token200_response.py +53 -0
- chainstream/openapi_client/test/test_moonshot_submit_create_token_input.py +54 -0
- chainstream/openapi_client/test/test_network_identification_org.py +53 -0
- chainstream/openapi_client/test/test_on_chain_activity.py +53 -0
- chainstream/openapi_client/test/test_pump_create_token_input.py +71 -0
- chainstream/openapi_client/test/test_pump_create_token_reply.py +54 -0
- chainstream/openapi_client/test/test_ranking_api.py +67 -0
- chainstream/openapi_client/test/test_red_packet_api.py +88 -0
- chainstream/openapi_client/test/test_red_packet_claim_dto.py +67 -0
- chainstream/openapi_client/test/test_red_packet_claims_page.py +81 -0
- chainstream/openapi_client/test/test_red_packet_dto.py +85 -0
- chainstream/openapi_client/test/test_red_packet_reply.py +53 -0
- chainstream/openapi_client/test/test_red_packet_send_tx_input.py +53 -0
- chainstream/openapi_client/test/test_red_packet_send_tx_response.py +53 -0
- chainstream/openapi_client/test/test_red_packets_page.py +99 -0
- chainstream/openapi_client/test/test_register_address_request.py +53 -0
- chainstream/openapi_client/test/test_register_address_response_dto.py +53 -0
- chainstream/openapi_client/test/test_resolution.py +34 -0
- chainstream/openapi_client/test/test_send_tx_input.py +55 -0
- chainstream/openapi_client/test/test_send_tx_response.py +57 -0
- chainstream/openapi_client/test/test_swap_input.py +65 -0
- chainstream/openapi_client/test/test_swap_reply.py +55 -0
- chainstream/openapi_client/test/test_swap_route_input.py +69 -0
- chainstream/openapi_client/test/test_swap_route_response.py +85 -0
- chainstream/openapi_client/test/test_token.py +352 -0
- chainstream/openapi_client/test/test_token_api.py +193 -0
- chainstream/openapi_client/test/test_token_creation_dto.py +64 -0
- chainstream/openapi_client/test/test_token_creation_page.py +76 -0
- chainstream/openapi_client/test/test_token_creators_dto.py +54 -0
- chainstream/openapi_client/test/test_token_extra_dto.py +72 -0
- chainstream/openapi_client/test/test_token_holder.py +59 -0
- chainstream/openapi_client/test/test_token_holder_page.py +70 -0
- chainstream/openapi_client/test/test_token_liquidity_snapshot_dto.py +71 -0
- chainstream/openapi_client/test/test_token_liquidity_snapshot_page.py +83 -0
- chainstream/openapi_client/test/test_token_list_page.py +154 -0
- chainstream/openapi_client/test/test_token_market_data.py +101 -0
- chainstream/openapi_client/test/test_token_metadata.py +110 -0
- chainstream/openapi_client/test/test_token_page.py +155 -0
- chainstream/openapi_client/test/test_token_price_dto.py +59 -0
- chainstream/openapi_client/test/test_token_price_page.py +70 -0
- chainstream/openapi_client/test/test_token_social_medias_dto.py +64 -0
- chainstream/openapi_client/test/test_token_stat.py +257 -0
- chainstream/openapi_client/test/test_token_trader.py +65 -0
- chainstream/openapi_client/test/test_token_trader_tag.py +34 -0
- chainstream/openapi_client/test/test_top_traders_dto.py +75 -0
- chainstream/openapi_client/test/test_top_traders_page.py +86 -0
- chainstream/openapi_client/test/test_trade_api.py +53 -0
- chainstream/openapi_client/test/test_trade_detail_dto.py +101 -0
- chainstream/openapi_client/test/test_trade_event.py +77 -0
- chainstream/openapi_client/test/test_trade_page.py +112 -0
- chainstream/openapi_client/test/test_trade_type.py +34 -0
- chainstream/openapi_client/test/test_transaction_api.py +53 -0
- chainstream/openapi_client/test/test_transfer_alerts_response_dto.py +71 -0
- chainstream/openapi_client/test/test_transfer_base_response_dto.py +77 -0
- chainstream/openapi_client/test/test_transfer_direct_exposure_response_dto.py +57 -0
- chainstream/openapi_client/test/test_transfer_network_identifications_response_dto.py +61 -0
- chainstream/openapi_client/test/test_update_endpoint_input.py +64 -0
- chainstream/openapi_client/test/test_wallet_api.py +67 -0
- chainstream/openapi_client/test/test_wallet_balance_detail_dto.py +101 -0
- chainstream/openapi_client/test/test_wallet_balances_dto.py +111 -0
- chainstream/openapi_client/test/test_wallet_pnl_dto.py +97 -0
- chainstream/openapi_client/test/test_watchlist_api.py +39 -0
- chainstream/openapi_client/test/test_withdrawal_address_identifications_response_dto.py +65 -0
- chainstream/openapi_client/test/test_withdrawal_base_response_dto.py +71 -0
- chainstream/openapi_client/test/test_withdrawal_fraud_assessment_response_dto.py +73 -0
- chainstream/stream/__init__.py +74 -0
- chainstream/stream/client.py +761 -0
- chainstream/stream/fields.py +284 -0
- chainstream/stream/models.py +415 -0
- chainstream_sdk-0.1.0.dist-info/METADATA +80 -0
- chainstream_sdk-0.1.0.dist-info/RECORD +261 -0
- chainstream_sdk-0.1.0.dist-info/WHEEL +4 -0
- chainstream_sdk-0.1.0.dist-info/entry_points.txt +2 -0
|
@@ -0,0 +1,55 @@
|
|
|
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
|
+
|
|
16
|
+
import unittest
|
|
17
|
+
|
|
18
|
+
from chainstream.openapi_client.models.create_token_reply import CreateTokenReply
|
|
19
|
+
|
|
20
|
+
class TestCreateTokenReply(unittest.TestCase):
|
|
21
|
+
"""CreateTokenReply unit test stubs"""
|
|
22
|
+
|
|
23
|
+
def setUp(self):
|
|
24
|
+
pass
|
|
25
|
+
|
|
26
|
+
def tearDown(self):
|
|
27
|
+
pass
|
|
28
|
+
|
|
29
|
+
def make_instance(self, include_optional) -> CreateTokenReply:
|
|
30
|
+
"""Test CreateTokenReply
|
|
31
|
+
include_optional is a boolean, when False only required
|
|
32
|
+
params are included, when True both required and
|
|
33
|
+
optional params are included """
|
|
34
|
+
# uncomment below to create an instance of `CreateTokenReply`
|
|
35
|
+
"""
|
|
36
|
+
model = CreateTokenReply()
|
|
37
|
+
if include_optional:
|
|
38
|
+
return CreateTokenReply(
|
|
39
|
+
serialized_tx = 'AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEDRgYGpQEDAQIABQcICQoLDA0ODwAAAAAAAAAAAAAQERITFBUWFxgZGhscHR4fAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=',
|
|
40
|
+
mint_address = 'So11111111111111111111111111111111111111112'
|
|
41
|
+
)
|
|
42
|
+
else:
|
|
43
|
+
return CreateTokenReply(
|
|
44
|
+
serialized_tx = 'AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEDRgYGpQEDAQIABQcICQoLDA0ODwAAAAAAAAAAAAAQERITFBUWFxgZGhscHR4fAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=',
|
|
45
|
+
mint_address = 'So11111111111111111111111111111111111111112',
|
|
46
|
+
)
|
|
47
|
+
"""
|
|
48
|
+
|
|
49
|
+
def testCreateTokenReply(self):
|
|
50
|
+
"""Test CreateTokenReply"""
|
|
51
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
52
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
53
|
+
|
|
54
|
+
if __name__ == '__main__':
|
|
55
|
+
unittest.main()
|
|
@@ -0,0 +1,46 @@
|
|
|
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
|
+
|
|
16
|
+
import unittest
|
|
17
|
+
|
|
18
|
+
from chainstream.openapi_client.api.defi_sol_moonshot_api import DefiSolMoonshotApi
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class TestDefiSolMoonshotApi(unittest.IsolatedAsyncioTestCase):
|
|
22
|
+
"""DefiSolMoonshotApi unit test stubs"""
|
|
23
|
+
|
|
24
|
+
async def asyncSetUp(self) -> None:
|
|
25
|
+
self.api = DefiSolMoonshotApi()
|
|
26
|
+
|
|
27
|
+
async def asyncTearDown(self) -> None:
|
|
28
|
+
await self.api.api_client.close()
|
|
29
|
+
|
|
30
|
+
async def test_moonshot_create_token(self) -> None:
|
|
31
|
+
"""Test case for moonshot_create_token
|
|
32
|
+
|
|
33
|
+
CONTROLLER.MOONSHOT.CREATE_TOKEN.SUMMARY
|
|
34
|
+
"""
|
|
35
|
+
pass
|
|
36
|
+
|
|
37
|
+
async def test_moonshot_submit_create_token(self) -> None:
|
|
38
|
+
"""Test case for moonshot_submit_create_token
|
|
39
|
+
|
|
40
|
+
CONTROLLER.MOONSHOT.SUBMIT_CREATE_TOKEN.SUMMARY
|
|
41
|
+
"""
|
|
42
|
+
pass
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
if __name__ == '__main__':
|
|
46
|
+
unittest.main()
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
|
|
16
|
+
import unittest
|
|
17
|
+
|
|
18
|
+
from chainstream.openapi_client.api.defi_sol_pumpfun_api import DefiSolPumpfunApi
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class TestDefiSolPumpfunApi(unittest.IsolatedAsyncioTestCase):
|
|
22
|
+
"""DefiSolPumpfunApi unit test stubs"""
|
|
23
|
+
|
|
24
|
+
async def asyncSetUp(self) -> None:
|
|
25
|
+
self.api = DefiSolPumpfunApi()
|
|
26
|
+
|
|
27
|
+
async def asyncTearDown(self) -> None:
|
|
28
|
+
await self.api.api_client.close()
|
|
29
|
+
|
|
30
|
+
async def test_pumpfun_create_token(self) -> None:
|
|
31
|
+
"""Test case for pumpfun_create_token
|
|
32
|
+
|
|
33
|
+
CONTROLLER.PUMPFUN.CREATE_TOKEN.SUMMARY
|
|
34
|
+
"""
|
|
35
|
+
pass
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
if __name__ == '__main__':
|
|
39
|
+
unittest.main()
|
|
@@ -0,0 +1,441 @@
|
|
|
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
|
+
|
|
16
|
+
import unittest
|
|
17
|
+
|
|
18
|
+
from chainstream.openapi_client.models.dev_token_dto import DevTokenDTO
|
|
19
|
+
|
|
20
|
+
class TestDevTokenDTO(unittest.TestCase):
|
|
21
|
+
"""DevTokenDTO unit test stubs"""
|
|
22
|
+
|
|
23
|
+
def setUp(self):
|
|
24
|
+
pass
|
|
25
|
+
|
|
26
|
+
def tearDown(self):
|
|
27
|
+
pass
|
|
28
|
+
|
|
29
|
+
def make_instance(self, include_optional) -> DevTokenDTO:
|
|
30
|
+
"""Test DevTokenDTO
|
|
31
|
+
include_optional is a boolean, when False only required
|
|
32
|
+
params are included, when True both required and
|
|
33
|
+
optional params are included """
|
|
34
|
+
# uncomment below to create an instance of `DevTokenDTO`
|
|
35
|
+
"""
|
|
36
|
+
model = DevTokenDTO()
|
|
37
|
+
if include_optional:
|
|
38
|
+
return DevTokenDTO(
|
|
39
|
+
address = '',
|
|
40
|
+
metadata = chainstream.openapi_client.models.token_metadata.TokenMetadata(
|
|
41
|
+
chain = 'solana',
|
|
42
|
+
decimals = 9,
|
|
43
|
+
name = 'USD Coin',
|
|
44
|
+
symbol = 'USDC',
|
|
45
|
+
metadata_address = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s',
|
|
46
|
+
address = 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v',
|
|
47
|
+
token_creators = [
|
|
48
|
+
chainstream.openapi_client.models.token_creators_dto.TokenCreatorsDTO(
|
|
49
|
+
address = '5e2qRc1DNEXmyxP8qwPwJhRWjef7usLyi7v5xjqLr5G7',
|
|
50
|
+
share = 100,
|
|
51
|
+
is_verified = True, )
|
|
52
|
+
],
|
|
53
|
+
image_url = 'https://raw.githubusercontent.com/solana-labs/token-list/main/assets/mainnet/EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v/logo.png',
|
|
54
|
+
uri = 'https://...',
|
|
55
|
+
extra = null,
|
|
56
|
+
social_medias = null,
|
|
57
|
+
token_created_at = 1710417600000,
|
|
58
|
+
description = 'USDC is a stablecoin pegged to the US dollar',
|
|
59
|
+
dev_total_tokens = '163',
|
|
60
|
+
dev_last_token_created_at = '2025-12-03T09:23:34.000Z', ),
|
|
61
|
+
market_data = chainstream.openapi_client.models.token_market_data.TokenMarketData(
|
|
62
|
+
total_supply = '1000000',
|
|
63
|
+
market_cap_in_sol = '100000',
|
|
64
|
+
market_cap_in_usd = '100000',
|
|
65
|
+
top10_total_holdings = '100000',
|
|
66
|
+
top10_holdings_ratio = '0.1',
|
|
67
|
+
top100_total_holdings = '500000',
|
|
68
|
+
top100_holdings_ratio = '0.5',
|
|
69
|
+
holders = '1000',
|
|
70
|
+
price_in_sol = '0.00000261383847574915906643405542',
|
|
71
|
+
price_in_usd = '0.00000261383847574915906643405542',
|
|
72
|
+
max_pool_tvl_in_sol = '0.00000261383847574915906643405542',
|
|
73
|
+
max_pool_tvl_in_usd = '0.00000261383847574915906643405542',
|
|
74
|
+
total_tvl_in_sol = '0.00000261383847574915906643405542',
|
|
75
|
+
total_tvl_in_usd = '0.00000261383847574915906643405542',
|
|
76
|
+
completion_ratio = '0.1',
|
|
77
|
+
top50_total_holdings = '300000',
|
|
78
|
+
top50_holdings_ratio = '0.3',
|
|
79
|
+
bluechip_total_holders = '10',
|
|
80
|
+
bluechip_total_holdings = '50000',
|
|
81
|
+
bluechip_holdings_ratio = '0.05',
|
|
82
|
+
kol_total_holders = '20',
|
|
83
|
+
kol_total_holdings = '30000',
|
|
84
|
+
kol_holdings_ratio = '0.03',
|
|
85
|
+
sniper_total_holders = '15',
|
|
86
|
+
sniper_total_holdings = '25000',
|
|
87
|
+
sniper_holdings_ratio = '0.025',
|
|
88
|
+
pro_total_holders = '25',
|
|
89
|
+
pro_total_holdings = '40000',
|
|
90
|
+
pro_holdings_ratio = '0.04',
|
|
91
|
+
insider_total_holders = '5',
|
|
92
|
+
insider_total_holdings = '20000',
|
|
93
|
+
insider_holdings_ratio = '0.02',
|
|
94
|
+
sandwish_total_holders = '8',
|
|
95
|
+
sandwish_total_holdings = '15000',
|
|
96
|
+
sandwish_holdings_ratio = '0.015',
|
|
97
|
+
fresh_total_holders = '30',
|
|
98
|
+
fresh_total_holdings = '10000',
|
|
99
|
+
fresh_holdings_ratio = '0.01',
|
|
100
|
+
bundle_total_holders = '12',
|
|
101
|
+
bundle_total_holdings = '18000',
|
|
102
|
+
bundle_holdings_ratio = '0.018',
|
|
103
|
+
dev_total_holders = '3',
|
|
104
|
+
dev_total_holdings = '5000',
|
|
105
|
+
dev_holdings_ratio = '0.005', ),
|
|
106
|
+
stats = chainstream.openapi_client.models.token_stat.TokenStat(
|
|
107
|
+
address = 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v',
|
|
108
|
+
price1m = '1.234',
|
|
109
|
+
buys1m = '150',
|
|
110
|
+
sells1m = '120',
|
|
111
|
+
buy_volumes1m = '50000.45',
|
|
112
|
+
sells_volumes1m = '45000.32',
|
|
113
|
+
volumes1m = '95000.77',
|
|
114
|
+
buy_volumes_in_usd1m = '50000.45',
|
|
115
|
+
sell_volumes_in_usd1m = '45000.32',
|
|
116
|
+
volumes_in_usd1m = '95000.77',
|
|
117
|
+
buyers1m = '50',
|
|
118
|
+
sellers1m = '45',
|
|
119
|
+
open_price_in_usd1m = '1.255',
|
|
120
|
+
close_price_in_usd1m = '1.265',
|
|
121
|
+
price_change_ratio_in_usd1m = '0.01',
|
|
122
|
+
trades1m = '270',
|
|
123
|
+
traders1m = '270',
|
|
124
|
+
high_in_usd1m = '1.275',
|
|
125
|
+
low_in_usd1m = '1.235',
|
|
126
|
+
price5m = '1.245',
|
|
127
|
+
buys5m = '150',
|
|
128
|
+
sells5m = '120',
|
|
129
|
+
buy_volumes5m = '50000.45',
|
|
130
|
+
sells_volumes5m = '45000.32',
|
|
131
|
+
volumes5m = '95000.77',
|
|
132
|
+
buy_volumes_in_usd5m = '50000.45',
|
|
133
|
+
sell_volumes_in_usd5m = '45000.32',
|
|
134
|
+
volumes_in_usd5m = '95000.77',
|
|
135
|
+
buyers5m = '50',
|
|
136
|
+
sellers5m = '45',
|
|
137
|
+
open_price_in_usd5m = '1.255',
|
|
138
|
+
close_price_in_usd5m = '1.265',
|
|
139
|
+
price_change_ratio_in_usd5m = '0.01',
|
|
140
|
+
trades5m = '270',
|
|
141
|
+
traders5m = '270',
|
|
142
|
+
high_in_usd5m = '1.275',
|
|
143
|
+
low_in_usd5m = '1.235',
|
|
144
|
+
price15m = '1.255',
|
|
145
|
+
buys15m = '150',
|
|
146
|
+
sells15m = '120',
|
|
147
|
+
buy_volumes15m = '50000.45',
|
|
148
|
+
sells_volumes15m = '45000.32',
|
|
149
|
+
volumes15m = '95000.77',
|
|
150
|
+
buy_volumes_in_usd15m = '50000.45',
|
|
151
|
+
sell_volumes_in_usd15m = '45000.32',
|
|
152
|
+
volumes_in_usd15m = '95000.77',
|
|
153
|
+
buyers15m = '50',
|
|
154
|
+
sellers15m = '45',
|
|
155
|
+
open_price_in_usd15m = '1.255',
|
|
156
|
+
close_price_in_usd15m = '1.265',
|
|
157
|
+
price_change_ratio_in_usd15m = '0.01',
|
|
158
|
+
trades15m = '270',
|
|
159
|
+
traders15m = '270',
|
|
160
|
+
high_in_usd15m = '1.275',
|
|
161
|
+
low_in_usd15m = '1.235',
|
|
162
|
+
price30m = '1.265',
|
|
163
|
+
buys30m = '150',
|
|
164
|
+
sells30m = '120',
|
|
165
|
+
buy_volumes30m = '50000.45',
|
|
166
|
+
sells_volumes30m = '45000.32',
|
|
167
|
+
volumes30m = '95000.77',
|
|
168
|
+
buy_volumes_in_usd30m = '50000.45',
|
|
169
|
+
sell_volumes_in_usd30m = '45000.32',
|
|
170
|
+
volumes_in_usd30m = '95000.77',
|
|
171
|
+
buyers30m = '50',
|
|
172
|
+
sellers30m = '45',
|
|
173
|
+
open_price_in_usd30m = '1.255',
|
|
174
|
+
close_price_in_usd30m = '1.265',
|
|
175
|
+
price_change_ratio_in_usd30m = '0.01',
|
|
176
|
+
trades30m = '270',
|
|
177
|
+
traders30m = '270',
|
|
178
|
+
high_in_usd30m = '1.275',
|
|
179
|
+
low_in_usd30m = '1.235',
|
|
180
|
+
price1h = '1.275',
|
|
181
|
+
buys1h = '150',
|
|
182
|
+
sells1h = '120',
|
|
183
|
+
buy_volumes1h = '50000.45',
|
|
184
|
+
sells_volumes1h = '45000.32',
|
|
185
|
+
volumes1h = '95000.77',
|
|
186
|
+
buy_volumes_in_usd1h = '50000.45',
|
|
187
|
+
sell_volumes_in_usd1h = '45000.32',
|
|
188
|
+
volumes_in_usd1h = '95000.77',
|
|
189
|
+
buyers1h = '50',
|
|
190
|
+
sellers1h = '45',
|
|
191
|
+
open_price_in_usd1h = '1.255',
|
|
192
|
+
close_price_in_usd1h = '1.265',
|
|
193
|
+
price_change_ratio_in_usd1h = '0.01',
|
|
194
|
+
trades1h = '270',
|
|
195
|
+
traders1h = '270',
|
|
196
|
+
high_in_usd1h = '1.275',
|
|
197
|
+
low_in_usd1h = '1.235',
|
|
198
|
+
price4h = '1.285',
|
|
199
|
+
buys4h = '150',
|
|
200
|
+
sells4h = '120',
|
|
201
|
+
buy_volumes4h = '50000.45',
|
|
202
|
+
sells_volumes4h = '45000.32',
|
|
203
|
+
volumes4h = '95000.77',
|
|
204
|
+
buy_volumes_in_usd4h = '50000.45',
|
|
205
|
+
sell_volumes_in_usd4h = '45000.32',
|
|
206
|
+
volumes_in_usd4h = '95000.77',
|
|
207
|
+
buyers4h = '50',
|
|
208
|
+
sellers4h = '45',
|
|
209
|
+
open_price_in_usd4h = '1.255',
|
|
210
|
+
close_price_in_usd4h = '1.265',
|
|
211
|
+
price_change_ratio_in_usd4h = '0.01',
|
|
212
|
+
trades4h = '270',
|
|
213
|
+
traders4h = '270',
|
|
214
|
+
high_in_usd4h = '1.275',
|
|
215
|
+
low_in_usd4h = '1.235',
|
|
216
|
+
price24h = '1.295',
|
|
217
|
+
buys24h = '150',
|
|
218
|
+
sells24h = '120',
|
|
219
|
+
buy_volumes24h = '50000.45',
|
|
220
|
+
sells_volumes24h = '45000.32',
|
|
221
|
+
volumes24h = '95000.77',
|
|
222
|
+
buy_volumes_in_usd24h = '50000.45',
|
|
223
|
+
sell_volumes_in_usd24h = '45000.32',
|
|
224
|
+
volumes_in_usd24h = '95000.77',
|
|
225
|
+
buyers24h = '50',
|
|
226
|
+
sellers24h = '45',
|
|
227
|
+
open_price_in_usd24h = '1.255',
|
|
228
|
+
close_price_in_usd24h = '1.265',
|
|
229
|
+
price_change_ratio_in_usd24h = '0.01',
|
|
230
|
+
trades24h = '270',
|
|
231
|
+
traders24h = '270',
|
|
232
|
+
high_in_usd24h = '1.275',
|
|
233
|
+
low_in_usd24h = '1.235', )
|
|
234
|
+
)
|
|
235
|
+
else:
|
|
236
|
+
return DevTokenDTO(
|
|
237
|
+
address = '',
|
|
238
|
+
metadata = chainstream.openapi_client.models.token_metadata.TokenMetadata(
|
|
239
|
+
chain = 'solana',
|
|
240
|
+
decimals = 9,
|
|
241
|
+
name = 'USD Coin',
|
|
242
|
+
symbol = 'USDC',
|
|
243
|
+
metadata_address = 'metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s',
|
|
244
|
+
address = 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v',
|
|
245
|
+
token_creators = [
|
|
246
|
+
chainstream.openapi_client.models.token_creators_dto.TokenCreatorsDTO(
|
|
247
|
+
address = '5e2qRc1DNEXmyxP8qwPwJhRWjef7usLyi7v5xjqLr5G7',
|
|
248
|
+
share = 100,
|
|
249
|
+
is_verified = True, )
|
|
250
|
+
],
|
|
251
|
+
image_url = 'https://raw.githubusercontent.com/solana-labs/token-list/main/assets/mainnet/EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v/logo.png',
|
|
252
|
+
uri = 'https://...',
|
|
253
|
+
extra = null,
|
|
254
|
+
social_medias = null,
|
|
255
|
+
token_created_at = 1710417600000,
|
|
256
|
+
description = 'USDC is a stablecoin pegged to the US dollar',
|
|
257
|
+
dev_total_tokens = '163',
|
|
258
|
+
dev_last_token_created_at = '2025-12-03T09:23:34.000Z', ),
|
|
259
|
+
market_data = chainstream.openapi_client.models.token_market_data.TokenMarketData(
|
|
260
|
+
total_supply = '1000000',
|
|
261
|
+
market_cap_in_sol = '100000',
|
|
262
|
+
market_cap_in_usd = '100000',
|
|
263
|
+
top10_total_holdings = '100000',
|
|
264
|
+
top10_holdings_ratio = '0.1',
|
|
265
|
+
top100_total_holdings = '500000',
|
|
266
|
+
top100_holdings_ratio = '0.5',
|
|
267
|
+
holders = '1000',
|
|
268
|
+
price_in_sol = '0.00000261383847574915906643405542',
|
|
269
|
+
price_in_usd = '0.00000261383847574915906643405542',
|
|
270
|
+
max_pool_tvl_in_sol = '0.00000261383847574915906643405542',
|
|
271
|
+
max_pool_tvl_in_usd = '0.00000261383847574915906643405542',
|
|
272
|
+
total_tvl_in_sol = '0.00000261383847574915906643405542',
|
|
273
|
+
total_tvl_in_usd = '0.00000261383847574915906643405542',
|
|
274
|
+
completion_ratio = '0.1',
|
|
275
|
+
top50_total_holdings = '300000',
|
|
276
|
+
top50_holdings_ratio = '0.3',
|
|
277
|
+
bluechip_total_holders = '10',
|
|
278
|
+
bluechip_total_holdings = '50000',
|
|
279
|
+
bluechip_holdings_ratio = '0.05',
|
|
280
|
+
kol_total_holders = '20',
|
|
281
|
+
kol_total_holdings = '30000',
|
|
282
|
+
kol_holdings_ratio = '0.03',
|
|
283
|
+
sniper_total_holders = '15',
|
|
284
|
+
sniper_total_holdings = '25000',
|
|
285
|
+
sniper_holdings_ratio = '0.025',
|
|
286
|
+
pro_total_holders = '25',
|
|
287
|
+
pro_total_holdings = '40000',
|
|
288
|
+
pro_holdings_ratio = '0.04',
|
|
289
|
+
insider_total_holders = '5',
|
|
290
|
+
insider_total_holdings = '20000',
|
|
291
|
+
insider_holdings_ratio = '0.02',
|
|
292
|
+
sandwish_total_holders = '8',
|
|
293
|
+
sandwish_total_holdings = '15000',
|
|
294
|
+
sandwish_holdings_ratio = '0.015',
|
|
295
|
+
fresh_total_holders = '30',
|
|
296
|
+
fresh_total_holdings = '10000',
|
|
297
|
+
fresh_holdings_ratio = '0.01',
|
|
298
|
+
bundle_total_holders = '12',
|
|
299
|
+
bundle_total_holdings = '18000',
|
|
300
|
+
bundle_holdings_ratio = '0.018',
|
|
301
|
+
dev_total_holders = '3',
|
|
302
|
+
dev_total_holdings = '5000',
|
|
303
|
+
dev_holdings_ratio = '0.005', ),
|
|
304
|
+
stats = chainstream.openapi_client.models.token_stat.TokenStat(
|
|
305
|
+
address = 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v',
|
|
306
|
+
price1m = '1.234',
|
|
307
|
+
buys1m = '150',
|
|
308
|
+
sells1m = '120',
|
|
309
|
+
buy_volumes1m = '50000.45',
|
|
310
|
+
sells_volumes1m = '45000.32',
|
|
311
|
+
volumes1m = '95000.77',
|
|
312
|
+
buy_volumes_in_usd1m = '50000.45',
|
|
313
|
+
sell_volumes_in_usd1m = '45000.32',
|
|
314
|
+
volumes_in_usd1m = '95000.77',
|
|
315
|
+
buyers1m = '50',
|
|
316
|
+
sellers1m = '45',
|
|
317
|
+
open_price_in_usd1m = '1.255',
|
|
318
|
+
close_price_in_usd1m = '1.265',
|
|
319
|
+
price_change_ratio_in_usd1m = '0.01',
|
|
320
|
+
trades1m = '270',
|
|
321
|
+
traders1m = '270',
|
|
322
|
+
high_in_usd1m = '1.275',
|
|
323
|
+
low_in_usd1m = '1.235',
|
|
324
|
+
price5m = '1.245',
|
|
325
|
+
buys5m = '150',
|
|
326
|
+
sells5m = '120',
|
|
327
|
+
buy_volumes5m = '50000.45',
|
|
328
|
+
sells_volumes5m = '45000.32',
|
|
329
|
+
volumes5m = '95000.77',
|
|
330
|
+
buy_volumes_in_usd5m = '50000.45',
|
|
331
|
+
sell_volumes_in_usd5m = '45000.32',
|
|
332
|
+
volumes_in_usd5m = '95000.77',
|
|
333
|
+
buyers5m = '50',
|
|
334
|
+
sellers5m = '45',
|
|
335
|
+
open_price_in_usd5m = '1.255',
|
|
336
|
+
close_price_in_usd5m = '1.265',
|
|
337
|
+
price_change_ratio_in_usd5m = '0.01',
|
|
338
|
+
trades5m = '270',
|
|
339
|
+
traders5m = '270',
|
|
340
|
+
high_in_usd5m = '1.275',
|
|
341
|
+
low_in_usd5m = '1.235',
|
|
342
|
+
price15m = '1.255',
|
|
343
|
+
buys15m = '150',
|
|
344
|
+
sells15m = '120',
|
|
345
|
+
buy_volumes15m = '50000.45',
|
|
346
|
+
sells_volumes15m = '45000.32',
|
|
347
|
+
volumes15m = '95000.77',
|
|
348
|
+
buy_volumes_in_usd15m = '50000.45',
|
|
349
|
+
sell_volumes_in_usd15m = '45000.32',
|
|
350
|
+
volumes_in_usd15m = '95000.77',
|
|
351
|
+
buyers15m = '50',
|
|
352
|
+
sellers15m = '45',
|
|
353
|
+
open_price_in_usd15m = '1.255',
|
|
354
|
+
close_price_in_usd15m = '1.265',
|
|
355
|
+
price_change_ratio_in_usd15m = '0.01',
|
|
356
|
+
trades15m = '270',
|
|
357
|
+
traders15m = '270',
|
|
358
|
+
high_in_usd15m = '1.275',
|
|
359
|
+
low_in_usd15m = '1.235',
|
|
360
|
+
price30m = '1.265',
|
|
361
|
+
buys30m = '150',
|
|
362
|
+
sells30m = '120',
|
|
363
|
+
buy_volumes30m = '50000.45',
|
|
364
|
+
sells_volumes30m = '45000.32',
|
|
365
|
+
volumes30m = '95000.77',
|
|
366
|
+
buy_volumes_in_usd30m = '50000.45',
|
|
367
|
+
sell_volumes_in_usd30m = '45000.32',
|
|
368
|
+
volumes_in_usd30m = '95000.77',
|
|
369
|
+
buyers30m = '50',
|
|
370
|
+
sellers30m = '45',
|
|
371
|
+
open_price_in_usd30m = '1.255',
|
|
372
|
+
close_price_in_usd30m = '1.265',
|
|
373
|
+
price_change_ratio_in_usd30m = '0.01',
|
|
374
|
+
trades30m = '270',
|
|
375
|
+
traders30m = '270',
|
|
376
|
+
high_in_usd30m = '1.275',
|
|
377
|
+
low_in_usd30m = '1.235',
|
|
378
|
+
price1h = '1.275',
|
|
379
|
+
buys1h = '150',
|
|
380
|
+
sells1h = '120',
|
|
381
|
+
buy_volumes1h = '50000.45',
|
|
382
|
+
sells_volumes1h = '45000.32',
|
|
383
|
+
volumes1h = '95000.77',
|
|
384
|
+
buy_volumes_in_usd1h = '50000.45',
|
|
385
|
+
sell_volumes_in_usd1h = '45000.32',
|
|
386
|
+
volumes_in_usd1h = '95000.77',
|
|
387
|
+
buyers1h = '50',
|
|
388
|
+
sellers1h = '45',
|
|
389
|
+
open_price_in_usd1h = '1.255',
|
|
390
|
+
close_price_in_usd1h = '1.265',
|
|
391
|
+
price_change_ratio_in_usd1h = '0.01',
|
|
392
|
+
trades1h = '270',
|
|
393
|
+
traders1h = '270',
|
|
394
|
+
high_in_usd1h = '1.275',
|
|
395
|
+
low_in_usd1h = '1.235',
|
|
396
|
+
price4h = '1.285',
|
|
397
|
+
buys4h = '150',
|
|
398
|
+
sells4h = '120',
|
|
399
|
+
buy_volumes4h = '50000.45',
|
|
400
|
+
sells_volumes4h = '45000.32',
|
|
401
|
+
volumes4h = '95000.77',
|
|
402
|
+
buy_volumes_in_usd4h = '50000.45',
|
|
403
|
+
sell_volumes_in_usd4h = '45000.32',
|
|
404
|
+
volumes_in_usd4h = '95000.77',
|
|
405
|
+
buyers4h = '50',
|
|
406
|
+
sellers4h = '45',
|
|
407
|
+
open_price_in_usd4h = '1.255',
|
|
408
|
+
close_price_in_usd4h = '1.265',
|
|
409
|
+
price_change_ratio_in_usd4h = '0.01',
|
|
410
|
+
trades4h = '270',
|
|
411
|
+
traders4h = '270',
|
|
412
|
+
high_in_usd4h = '1.275',
|
|
413
|
+
low_in_usd4h = '1.235',
|
|
414
|
+
price24h = '1.295',
|
|
415
|
+
buys24h = '150',
|
|
416
|
+
sells24h = '120',
|
|
417
|
+
buy_volumes24h = '50000.45',
|
|
418
|
+
sells_volumes24h = '45000.32',
|
|
419
|
+
volumes24h = '95000.77',
|
|
420
|
+
buy_volumes_in_usd24h = '50000.45',
|
|
421
|
+
sell_volumes_in_usd24h = '45000.32',
|
|
422
|
+
volumes_in_usd24h = '95000.77',
|
|
423
|
+
buyers24h = '50',
|
|
424
|
+
sellers24h = '45',
|
|
425
|
+
open_price_in_usd24h = '1.255',
|
|
426
|
+
close_price_in_usd24h = '1.265',
|
|
427
|
+
price_change_ratio_in_usd24h = '0.01',
|
|
428
|
+
trades24h = '270',
|
|
429
|
+
traders24h = '270',
|
|
430
|
+
high_in_usd24h = '1.275',
|
|
431
|
+
low_in_usd24h = '1.235', ),
|
|
432
|
+
)
|
|
433
|
+
"""
|
|
434
|
+
|
|
435
|
+
def testDevTokenDTO(self):
|
|
436
|
+
"""Test DevTokenDTO"""
|
|
437
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
438
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
439
|
+
|
|
440
|
+
if __name__ == '__main__':
|
|
441
|
+
unittest.main()
|
|
@@ -0,0 +1,67 @@
|
|
|
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
|
+
|
|
16
|
+
import unittest
|
|
17
|
+
|
|
18
|
+
from chainstream.openapi_client.api.dex_api import DexApi
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class TestDexApi(unittest.IsolatedAsyncioTestCase):
|
|
22
|
+
"""DexApi unit test stubs"""
|
|
23
|
+
|
|
24
|
+
async def asyncSetUp(self) -> None:
|
|
25
|
+
self.api = DexApi()
|
|
26
|
+
|
|
27
|
+
async def asyncTearDown(self) -> None:
|
|
28
|
+
await self.api.api_client.close()
|
|
29
|
+
|
|
30
|
+
async def test_create_token(self) -> None:
|
|
31
|
+
"""Test case for create_token
|
|
32
|
+
|
|
33
|
+
CONTROLLER.DEX.CREATE.SUMMARY
|
|
34
|
+
"""
|
|
35
|
+
pass
|
|
36
|
+
|
|
37
|
+
async def test_list_dex(self) -> None:
|
|
38
|
+
"""Test case for list_dex
|
|
39
|
+
|
|
40
|
+
CONTROLLER.DEX.LIST.SUMMARY
|
|
41
|
+
"""
|
|
42
|
+
pass
|
|
43
|
+
|
|
44
|
+
async def test_quote(self) -> None:
|
|
45
|
+
"""Test case for quote
|
|
46
|
+
|
|
47
|
+
CONTROLLER.DEX.QUOTE.SUMMARY
|
|
48
|
+
"""
|
|
49
|
+
pass
|
|
50
|
+
|
|
51
|
+
async def test_route(self) -> None:
|
|
52
|
+
"""Test case for route
|
|
53
|
+
|
|
54
|
+
CONTROLLER.DEX.ROUTE.SUMMARY
|
|
55
|
+
"""
|
|
56
|
+
pass
|
|
57
|
+
|
|
58
|
+
async def test_swap(self) -> None:
|
|
59
|
+
"""Test case for swap
|
|
60
|
+
|
|
61
|
+
CONTROLLER.DEX.SWAP.SUMMARY
|
|
62
|
+
"""
|
|
63
|
+
pass
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
if __name__ == '__main__':
|
|
67
|
+
unittest.main()
|