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,101 @@
|
|
|
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.trade_detail_dto import TradeDetailDTO
|
|
19
|
+
|
|
20
|
+
class TestTradeDetailDTO(unittest.TestCase):
|
|
21
|
+
"""TradeDetailDTO 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) -> TradeDetailDTO:
|
|
30
|
+
"""Test TradeDetailDTO
|
|
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 `TradeDetailDTO`
|
|
35
|
+
"""
|
|
36
|
+
model = TradeDetailDTO()
|
|
37
|
+
if include_optional:
|
|
38
|
+
return TradeDetailDTO(
|
|
39
|
+
chain = '',
|
|
40
|
+
block_height = 56,
|
|
41
|
+
block_timestamp = 56,
|
|
42
|
+
account_owner_address = '',
|
|
43
|
+
transaction_signature = '',
|
|
44
|
+
token_name = '',
|
|
45
|
+
token_symbol = '',
|
|
46
|
+
token_image_url = '',
|
|
47
|
+
token_address = '',
|
|
48
|
+
pool_address = '',
|
|
49
|
+
dex_program_address = '',
|
|
50
|
+
dex_protocol_family = '',
|
|
51
|
+
dex_image = '',
|
|
52
|
+
token_amount = '',
|
|
53
|
+
token_price_in_usd = '',
|
|
54
|
+
token_amount_in_usd = '',
|
|
55
|
+
type = '',
|
|
56
|
+
side_token_name = '',
|
|
57
|
+
side_token_symbol = '',
|
|
58
|
+
side_token_image_url = '',
|
|
59
|
+
side_token_address = '',
|
|
60
|
+
side_token_price_in_usd = '',
|
|
61
|
+
side_token_amount = '',
|
|
62
|
+
side_token_amount_in_usd = '',
|
|
63
|
+
status = ''
|
|
64
|
+
)
|
|
65
|
+
else:
|
|
66
|
+
return TradeDetailDTO(
|
|
67
|
+
chain = '',
|
|
68
|
+
block_height = 56,
|
|
69
|
+
block_timestamp = 56,
|
|
70
|
+
account_owner_address = '',
|
|
71
|
+
transaction_signature = '',
|
|
72
|
+
token_name = '',
|
|
73
|
+
token_symbol = '',
|
|
74
|
+
token_image_url = '',
|
|
75
|
+
token_address = '',
|
|
76
|
+
pool_address = '',
|
|
77
|
+
dex_program_address = '',
|
|
78
|
+
dex_protocol_family = '',
|
|
79
|
+
dex_image = '',
|
|
80
|
+
token_amount = '',
|
|
81
|
+
token_price_in_usd = '',
|
|
82
|
+
token_amount_in_usd = '',
|
|
83
|
+
type = '',
|
|
84
|
+
side_token_name = '',
|
|
85
|
+
side_token_symbol = '',
|
|
86
|
+
side_token_image_url = '',
|
|
87
|
+
side_token_address = '',
|
|
88
|
+
side_token_price_in_usd = '',
|
|
89
|
+
side_token_amount = '',
|
|
90
|
+
side_token_amount_in_usd = '',
|
|
91
|
+
status = '',
|
|
92
|
+
)
|
|
93
|
+
"""
|
|
94
|
+
|
|
95
|
+
def testTradeDetailDTO(self):
|
|
96
|
+
"""Test TradeDetailDTO"""
|
|
97
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
98
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
99
|
+
|
|
100
|
+
if __name__ == '__main__':
|
|
101
|
+
unittest.main()
|
|
@@ -0,0 +1,77 @@
|
|
|
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.trade_event import TradeEvent
|
|
19
|
+
|
|
20
|
+
class TestTradeEvent(unittest.TestCase):
|
|
21
|
+
"""TradeEvent 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) -> TradeEvent:
|
|
30
|
+
"""Test TradeEvent
|
|
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 `TradeEvent`
|
|
35
|
+
"""
|
|
36
|
+
model = TradeEvent()
|
|
37
|
+
if include_optional:
|
|
38
|
+
return TradeEvent(
|
|
39
|
+
maker = 'GC8vnXWCpC5oDZeCTFLCpeBDHbgPczq1TQqziJctDFY',
|
|
40
|
+
base_amount = '3.49753400000000000000',
|
|
41
|
+
quote_amount = '0.00085986800000000000',
|
|
42
|
+
quote_symbol = 'SOL',
|
|
43
|
+
quote_address = 'So11111111111111111111111111111111111111112',
|
|
44
|
+
amount_in_usd = '0.18691810584000000000',
|
|
45
|
+
timestamp = 56,
|
|
46
|
+
event = 'buy',
|
|
47
|
+
tx_hash = '37XpPt9Ak6JiE1V3sftJDtdUsvR9FVFRqkZmoT3dp4BTD9pgyTWn1XgHH6R7NjuJ4pBMAgj8JvZtxQrf4s6NTC5F',
|
|
48
|
+
price_in_usd = '0.05344282738637203200',
|
|
49
|
+
id = 'MDAzMTc4OTQ0OTUxNTcwMDAwMg==',
|
|
50
|
+
buy_cost_usd = '',
|
|
51
|
+
token_address = '74SBV4zDXxTRgv1pEMoECskKBkZHc2yGPnc7GYVepump'
|
|
52
|
+
)
|
|
53
|
+
else:
|
|
54
|
+
return TradeEvent(
|
|
55
|
+
maker = 'GC8vnXWCpC5oDZeCTFLCpeBDHbgPczq1TQqziJctDFY',
|
|
56
|
+
base_amount = '3.49753400000000000000',
|
|
57
|
+
quote_amount = '0.00085986800000000000',
|
|
58
|
+
quote_symbol = 'SOL',
|
|
59
|
+
quote_address = 'So11111111111111111111111111111111111111112',
|
|
60
|
+
amount_in_usd = '0.18691810584000000000',
|
|
61
|
+
timestamp = 56,
|
|
62
|
+
event = 'buy',
|
|
63
|
+
tx_hash = '37XpPt9Ak6JiE1V3sftJDtdUsvR9FVFRqkZmoT3dp4BTD9pgyTWn1XgHH6R7NjuJ4pBMAgj8JvZtxQrf4s6NTC5F',
|
|
64
|
+
price_in_usd = '0.05344282738637203200',
|
|
65
|
+
id = 'MDAzMTc4OTQ0OTUxNTcwMDAwMg==',
|
|
66
|
+
buy_cost_usd = '',
|
|
67
|
+
token_address = '74SBV4zDXxTRgv1pEMoECskKBkZHc2yGPnc7GYVepump',
|
|
68
|
+
)
|
|
69
|
+
"""
|
|
70
|
+
|
|
71
|
+
def testTradeEvent(self):
|
|
72
|
+
"""Test TradeEvent"""
|
|
73
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
74
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
75
|
+
|
|
76
|
+
if __name__ == '__main__':
|
|
77
|
+
unittest.main()
|
|
@@ -0,0 +1,112 @@
|
|
|
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.trade_page import TradePage
|
|
19
|
+
|
|
20
|
+
class TestTradePage(unittest.TestCase):
|
|
21
|
+
"""TradePage 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) -> TradePage:
|
|
30
|
+
"""Test TradePage
|
|
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 `TradePage`
|
|
35
|
+
"""
|
|
36
|
+
model = TradePage()
|
|
37
|
+
if include_optional:
|
|
38
|
+
return TradePage(
|
|
39
|
+
has_next = True,
|
|
40
|
+
has_prev = True,
|
|
41
|
+
start_cursor = '',
|
|
42
|
+
end_cursor = '',
|
|
43
|
+
total = 1.337,
|
|
44
|
+
data = [
|
|
45
|
+
chainstream.openapi_client.models.trade_detail_dto.TradeDetailDTO(
|
|
46
|
+
chain = '',
|
|
47
|
+
block_height = 56,
|
|
48
|
+
block_timestamp = 56,
|
|
49
|
+
account_owner_address = '',
|
|
50
|
+
transaction_signature = '',
|
|
51
|
+
token_name = '',
|
|
52
|
+
token_symbol = '',
|
|
53
|
+
token_image_url = '',
|
|
54
|
+
token_address = '',
|
|
55
|
+
pool_address = '',
|
|
56
|
+
dex_program_address = '',
|
|
57
|
+
dex_protocol_family = '',
|
|
58
|
+
dex_image = '',
|
|
59
|
+
token_amount = '',
|
|
60
|
+
token_price_in_usd = '',
|
|
61
|
+
token_amount_in_usd = '',
|
|
62
|
+
type = '',
|
|
63
|
+
side_token_name = '',
|
|
64
|
+
side_token_symbol = '',
|
|
65
|
+
side_token_image_url = '',
|
|
66
|
+
side_token_address = '',
|
|
67
|
+
side_token_price_in_usd = '',
|
|
68
|
+
side_token_amount = '',
|
|
69
|
+
side_token_amount_in_usd = '',
|
|
70
|
+
status = '', )
|
|
71
|
+
]
|
|
72
|
+
)
|
|
73
|
+
else:
|
|
74
|
+
return TradePage(
|
|
75
|
+
data = [
|
|
76
|
+
chainstream.openapi_client.models.trade_detail_dto.TradeDetailDTO(
|
|
77
|
+
chain = '',
|
|
78
|
+
block_height = 56,
|
|
79
|
+
block_timestamp = 56,
|
|
80
|
+
account_owner_address = '',
|
|
81
|
+
transaction_signature = '',
|
|
82
|
+
token_name = '',
|
|
83
|
+
token_symbol = '',
|
|
84
|
+
token_image_url = '',
|
|
85
|
+
token_address = '',
|
|
86
|
+
pool_address = '',
|
|
87
|
+
dex_program_address = '',
|
|
88
|
+
dex_protocol_family = '',
|
|
89
|
+
dex_image = '',
|
|
90
|
+
token_amount = '',
|
|
91
|
+
token_price_in_usd = '',
|
|
92
|
+
token_amount_in_usd = '',
|
|
93
|
+
type = '',
|
|
94
|
+
side_token_name = '',
|
|
95
|
+
side_token_symbol = '',
|
|
96
|
+
side_token_image_url = '',
|
|
97
|
+
side_token_address = '',
|
|
98
|
+
side_token_price_in_usd = '',
|
|
99
|
+
side_token_amount = '',
|
|
100
|
+
side_token_amount_in_usd = '',
|
|
101
|
+
status = '', )
|
|
102
|
+
],
|
|
103
|
+
)
|
|
104
|
+
"""
|
|
105
|
+
|
|
106
|
+
def testTradePage(self):
|
|
107
|
+
"""Test TradePage"""
|
|
108
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
109
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
110
|
+
|
|
111
|
+
if __name__ == '__main__':
|
|
112
|
+
unittest.main()
|
|
@@ -0,0 +1,34 @@
|
|
|
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.trade_type import TradeType
|
|
19
|
+
|
|
20
|
+
class TestTradeType(unittest.TestCase):
|
|
21
|
+
"""TradeType unit test stubs"""
|
|
22
|
+
|
|
23
|
+
def setUp(self):
|
|
24
|
+
pass
|
|
25
|
+
|
|
26
|
+
def tearDown(self):
|
|
27
|
+
pass
|
|
28
|
+
|
|
29
|
+
def testTradeType(self):
|
|
30
|
+
"""Test TradeType"""
|
|
31
|
+
# inst = TradeType()
|
|
32
|
+
|
|
33
|
+
if __name__ == '__main__':
|
|
34
|
+
unittest.main()
|
|
@@ -0,0 +1,53 @@
|
|
|
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.transaction_api import TransactionApi
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class TestTransactionApi(unittest.IsolatedAsyncioTestCase):
|
|
22
|
+
"""TransactionApi unit test stubs"""
|
|
23
|
+
|
|
24
|
+
async def asyncSetUp(self) -> None:
|
|
25
|
+
self.api = TransactionApi()
|
|
26
|
+
|
|
27
|
+
async def asyncTearDown(self) -> None:
|
|
28
|
+
await self.api.api_client.close()
|
|
29
|
+
|
|
30
|
+
async def test_get_gas_limit(self) -> None:
|
|
31
|
+
"""Test case for get_gas_limit
|
|
32
|
+
|
|
33
|
+
CONTROLLER.TRANSACTION.ESTIMATE_GAS_LIMIT.SUMMARY
|
|
34
|
+
"""
|
|
35
|
+
pass
|
|
36
|
+
|
|
37
|
+
async def test_get_gas_price(self) -> None:
|
|
38
|
+
"""Test case for get_gas_price
|
|
39
|
+
|
|
40
|
+
CONTROLLER.TRANSACTION.GET_GAS_PRICE.SUMMARY
|
|
41
|
+
"""
|
|
42
|
+
pass
|
|
43
|
+
|
|
44
|
+
async def test_send(self) -> None:
|
|
45
|
+
"""Test case for send
|
|
46
|
+
|
|
47
|
+
CONTROLLER.TRANSACTION.SEND.SUMMARY
|
|
48
|
+
"""
|
|
49
|
+
pass
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
if __name__ == '__main__':
|
|
53
|
+
unittest.main()
|
|
@@ -0,0 +1,71 @@
|
|
|
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.transfer_alerts_response_dto import TransferAlertsResponseDTO
|
|
19
|
+
|
|
20
|
+
class TestTransferAlertsResponseDTO(unittest.TestCase):
|
|
21
|
+
"""TransferAlertsResponseDTO 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) -> TransferAlertsResponseDTO:
|
|
30
|
+
"""Test TransferAlertsResponseDTO
|
|
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 `TransferAlertsResponseDTO`
|
|
35
|
+
"""
|
|
36
|
+
model = TransferAlertsResponseDTO()
|
|
37
|
+
if include_optional:
|
|
38
|
+
return TransferAlertsResponseDTO(
|
|
39
|
+
alerts = [
|
|
40
|
+
chainstream.openapi_client.models.alert_detail.AlertDetail(
|
|
41
|
+
alert_level = 'SEVERE',
|
|
42
|
+
service = 'OFAC SDN Blender.io 2022-05-06',
|
|
43
|
+
external_id = 'b7d17de0-f890-11ec-83bd-c37b1b9f5365',
|
|
44
|
+
alert_amount = '8868.24',
|
|
45
|
+
exposure_type = 'DIRECT',
|
|
46
|
+
category_id = 3,
|
|
47
|
+
memo = '', )
|
|
48
|
+
]
|
|
49
|
+
)
|
|
50
|
+
else:
|
|
51
|
+
return TransferAlertsResponseDTO(
|
|
52
|
+
alerts = [
|
|
53
|
+
chainstream.openapi_client.models.alert_detail.AlertDetail(
|
|
54
|
+
alert_level = 'SEVERE',
|
|
55
|
+
service = 'OFAC SDN Blender.io 2022-05-06',
|
|
56
|
+
external_id = 'b7d17de0-f890-11ec-83bd-c37b1b9f5365',
|
|
57
|
+
alert_amount = '8868.24',
|
|
58
|
+
exposure_type = 'DIRECT',
|
|
59
|
+
category_id = 3,
|
|
60
|
+
memo = '', )
|
|
61
|
+
],
|
|
62
|
+
)
|
|
63
|
+
"""
|
|
64
|
+
|
|
65
|
+
def testTransferAlertsResponseDTO(self):
|
|
66
|
+
"""Test TransferAlertsResponseDTO"""
|
|
67
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
68
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
69
|
+
|
|
70
|
+
if __name__ == '__main__':
|
|
71
|
+
unittest.main()
|
|
@@ -0,0 +1,77 @@
|
|
|
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.transfer_base_response_dto import TransferBaseResponseDTO
|
|
19
|
+
|
|
20
|
+
class TestTransferBaseResponseDTO(unittest.TestCase):
|
|
21
|
+
"""TransferBaseResponseDTO 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) -> TransferBaseResponseDTO:
|
|
30
|
+
"""Test TransferBaseResponseDTO
|
|
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 `TransferBaseResponseDTO`
|
|
35
|
+
"""
|
|
36
|
+
model = TransferBaseResponseDTO()
|
|
37
|
+
if include_optional:
|
|
38
|
+
return TransferBaseResponseDTO(
|
|
39
|
+
updated_at = '2022-03-16T16:17:19.613215',
|
|
40
|
+
asset = 'BTC',
|
|
41
|
+
asset_id = '',
|
|
42
|
+
network = 'BITCOIN',
|
|
43
|
+
transfer_reference = '9f318afbad2a183f97750bc51a75b582ad8f9e9cbfb50401148857ca27cde10c:17A16QmavnUfCW11DAApiJxp7ARnxN5pGX',
|
|
44
|
+
memo = '',
|
|
45
|
+
tx = '9f318afbad2a183f97750bc51a75b582ad8f9e9cbfb50401148857ca27cde10c',
|
|
46
|
+
idx = 2,
|
|
47
|
+
usd_amount = '722099.75',
|
|
48
|
+
asset_amount = '11.35113454',
|
|
49
|
+
timestamp = '2021-11-16T18:33:33.000+00:00',
|
|
50
|
+
output_address = '17A16QmavnUfCW11DAApiJxp7ARnxN5pGX',
|
|
51
|
+
external_id = '393905a7-bb96-394b-9e20-3645298c1079'
|
|
52
|
+
)
|
|
53
|
+
else:
|
|
54
|
+
return TransferBaseResponseDTO(
|
|
55
|
+
updated_at = '2022-03-16T16:17:19.613215',
|
|
56
|
+
asset = 'BTC',
|
|
57
|
+
asset_id = '',
|
|
58
|
+
network = 'BITCOIN',
|
|
59
|
+
transfer_reference = '9f318afbad2a183f97750bc51a75b582ad8f9e9cbfb50401148857ca27cde10c:17A16QmavnUfCW11DAApiJxp7ARnxN5pGX',
|
|
60
|
+
memo = '',
|
|
61
|
+
tx = '9f318afbad2a183f97750bc51a75b582ad8f9e9cbfb50401148857ca27cde10c',
|
|
62
|
+
idx = 2,
|
|
63
|
+
usd_amount = '722099.75',
|
|
64
|
+
asset_amount = '11.35113454',
|
|
65
|
+
timestamp = '2021-11-16T18:33:33.000+00:00',
|
|
66
|
+
output_address = '17A16QmavnUfCW11DAApiJxp7ARnxN5pGX',
|
|
67
|
+
external_id = '393905a7-bb96-394b-9e20-3645298c1079',
|
|
68
|
+
)
|
|
69
|
+
"""
|
|
70
|
+
|
|
71
|
+
def testTransferBaseResponseDTO(self):
|
|
72
|
+
"""Test TransferBaseResponseDTO"""
|
|
73
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
74
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
75
|
+
|
|
76
|
+
if __name__ == '__main__':
|
|
77
|
+
unittest.main()
|
|
@@ -0,0 +1,57 @@
|
|
|
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.transfer_direct_exposure_response_dto import TransferDirectExposureResponseDTO
|
|
19
|
+
|
|
20
|
+
class TestTransferDirectExposureResponseDTO(unittest.TestCase):
|
|
21
|
+
"""TransferDirectExposureResponseDTO 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) -> TransferDirectExposureResponseDTO:
|
|
30
|
+
"""Test TransferDirectExposureResponseDTO
|
|
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 `TransferDirectExposureResponseDTO`
|
|
35
|
+
"""
|
|
36
|
+
model = TransferDirectExposureResponseDTO()
|
|
37
|
+
if include_optional:
|
|
38
|
+
return TransferDirectExposureResponseDTO(
|
|
39
|
+
direct = chainstream.openapi_client.models.direct_exposure_detail.DirectExposureDetail(
|
|
40
|
+
name = 'BitPay.com',
|
|
41
|
+
category_id = 17, )
|
|
42
|
+
)
|
|
43
|
+
else:
|
|
44
|
+
return TransferDirectExposureResponseDTO(
|
|
45
|
+
direct = chainstream.openapi_client.models.direct_exposure_detail.DirectExposureDetail(
|
|
46
|
+
name = 'BitPay.com',
|
|
47
|
+
category_id = 17, ),
|
|
48
|
+
)
|
|
49
|
+
"""
|
|
50
|
+
|
|
51
|
+
def testTransferDirectExposureResponseDTO(self):
|
|
52
|
+
"""Test TransferDirectExposureResponseDTO"""
|
|
53
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
54
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
55
|
+
|
|
56
|
+
if __name__ == '__main__':
|
|
57
|
+
unittest.main()
|
|
@@ -0,0 +1,61 @@
|
|
|
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.transfer_network_identifications_response_dto import TransferNetworkIdentificationsResponseDTO
|
|
19
|
+
|
|
20
|
+
class TestTransferNetworkIdentificationsResponseDTO(unittest.TestCase):
|
|
21
|
+
"""TransferNetworkIdentificationsResponseDTO 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) -> TransferNetworkIdentificationsResponseDTO:
|
|
30
|
+
"""Test TransferNetworkIdentificationsResponseDTO
|
|
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 `TransferNetworkIdentificationsResponseDTO`
|
|
35
|
+
"""
|
|
36
|
+
model = TransferNetworkIdentificationsResponseDTO()
|
|
37
|
+
if include_optional:
|
|
38
|
+
return TransferNetworkIdentificationsResponseDTO(
|
|
39
|
+
count = 1,
|
|
40
|
+
network_identification_orgs = [
|
|
41
|
+
chainstream.openapi_client.models.network_identification_org.NetworkIdentificationOrg(
|
|
42
|
+
name = 'XYZ Cryptocurrency Exchange', )
|
|
43
|
+
]
|
|
44
|
+
)
|
|
45
|
+
else:
|
|
46
|
+
return TransferNetworkIdentificationsResponseDTO(
|
|
47
|
+
count = 1,
|
|
48
|
+
network_identification_orgs = [
|
|
49
|
+
chainstream.openapi_client.models.network_identification_org.NetworkIdentificationOrg(
|
|
50
|
+
name = 'XYZ Cryptocurrency Exchange', )
|
|
51
|
+
],
|
|
52
|
+
)
|
|
53
|
+
"""
|
|
54
|
+
|
|
55
|
+
def testTransferNetworkIdentificationsResponseDTO(self):
|
|
56
|
+
"""Test TransferNetworkIdentificationsResponseDTO"""
|
|
57
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
58
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
59
|
+
|
|
60
|
+
if __name__ == '__main__':
|
|
61
|
+
unittest.main()
|