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,64 @@
|
|
|
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.update_endpoint_input import UpdateEndpointInput
|
|
19
|
+
|
|
20
|
+
class TestUpdateEndpointInput(unittest.TestCase):
|
|
21
|
+
"""UpdateEndpointInput 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) -> UpdateEndpointInput:
|
|
30
|
+
"""Test UpdateEndpointInput
|
|
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 `UpdateEndpointInput`
|
|
35
|
+
"""
|
|
36
|
+
model = UpdateEndpointInput()
|
|
37
|
+
if include_optional:
|
|
38
|
+
return UpdateEndpointInput(
|
|
39
|
+
endpoint_id = '123',
|
|
40
|
+
channels = [
|
|
41
|
+
''
|
|
42
|
+
],
|
|
43
|
+
description = 'Webhook description',
|
|
44
|
+
disabled = True,
|
|
45
|
+
filter_types = [
|
|
46
|
+
''
|
|
47
|
+
],
|
|
48
|
+
metadata = {key=value},
|
|
49
|
+
rate_limit = 1000,
|
|
50
|
+
url = 'https://example.com',
|
|
51
|
+
filter = ''
|
|
52
|
+
)
|
|
53
|
+
else:
|
|
54
|
+
return UpdateEndpointInput(
|
|
55
|
+
)
|
|
56
|
+
"""
|
|
57
|
+
|
|
58
|
+
def testUpdateEndpointInput(self):
|
|
59
|
+
"""Test UpdateEndpointInput"""
|
|
60
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
61
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
62
|
+
|
|
63
|
+
if __name__ == '__main__':
|
|
64
|
+
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.wallet_api import WalletApi
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class TestWalletApi(unittest.IsolatedAsyncioTestCase):
|
|
22
|
+
"""WalletApi unit test stubs"""
|
|
23
|
+
|
|
24
|
+
async def asyncSetUp(self) -> None:
|
|
25
|
+
self.api = WalletApi()
|
|
26
|
+
|
|
27
|
+
async def asyncTearDown(self) -> None:
|
|
28
|
+
await self.api.api_client.close()
|
|
29
|
+
|
|
30
|
+
async def test_calculate_pnl(self) -> None:
|
|
31
|
+
"""Test case for calculate_pnl
|
|
32
|
+
|
|
33
|
+
CONTROLLER.WALLET.CALCULATE_PNL.SUMMARY
|
|
34
|
+
"""
|
|
35
|
+
pass
|
|
36
|
+
|
|
37
|
+
async def test_get_balance(self) -> None:
|
|
38
|
+
"""Test case for get_balance
|
|
39
|
+
|
|
40
|
+
CONTROLLER.WALLET.GET_BALANCES.SUMMARY
|
|
41
|
+
"""
|
|
42
|
+
pass
|
|
43
|
+
|
|
44
|
+
async def test_get_balance_updates(self) -> None:
|
|
45
|
+
"""Test case for get_balance_updates
|
|
46
|
+
|
|
47
|
+
CONTROLLER.WALLET.GET_BALANCE_UPDATES.SUMMARY
|
|
48
|
+
"""
|
|
49
|
+
pass
|
|
50
|
+
|
|
51
|
+
async def test_get_pnl(self) -> None:
|
|
52
|
+
"""Test case for get_pnl
|
|
53
|
+
|
|
54
|
+
CONTROLLER.WALLET.GET_PNL.SUMMARY
|
|
55
|
+
"""
|
|
56
|
+
pass
|
|
57
|
+
|
|
58
|
+
async def test_get_pnl_stats(self) -> None:
|
|
59
|
+
"""Test case for get_pnl_stats
|
|
60
|
+
|
|
61
|
+
CONTROLLER.WALLET.GET_PNL_STATS.SUMMARY
|
|
62
|
+
"""
|
|
63
|
+
pass
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
if __name__ == '__main__':
|
|
67
|
+
unittest.main()
|
|
@@ -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.wallet_balance_detail_dto import WalletBalanceDetailDTO
|
|
19
|
+
|
|
20
|
+
class TestWalletBalanceDetailDTO(unittest.TestCase):
|
|
21
|
+
"""WalletBalanceDetailDTO 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) -> WalletBalanceDetailDTO:
|
|
30
|
+
"""Test WalletBalanceDetailDTO
|
|
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 `WalletBalanceDetailDTO`
|
|
35
|
+
"""
|
|
36
|
+
model = WalletBalanceDetailDTO()
|
|
37
|
+
if include_optional:
|
|
38
|
+
return WalletBalanceDetailDTO(
|
|
39
|
+
token_address = 'So11111111111111111111111111111111111111112',
|
|
40
|
+
amount = '2675.098457775',
|
|
41
|
+
value_in_usd = '366908.31721324675',
|
|
42
|
+
name = 'Solana',
|
|
43
|
+
symbol = 'SOL',
|
|
44
|
+
image_url = 'https://solana.com/images/solana-logo.png',
|
|
45
|
+
price_in_sol = '137.15',
|
|
46
|
+
price_in_usd = '137.15',
|
|
47
|
+
price_change_ratio_in_usd24h = '5.23',
|
|
48
|
+
unrealized_profit_in_usd = '123.45',
|
|
49
|
+
unrealized_profit_ratio = '12.34',
|
|
50
|
+
open_time = 1741780466000,
|
|
51
|
+
close_time = 1741780466000,
|
|
52
|
+
buys = '10',
|
|
53
|
+
buy_amount = '1500',
|
|
54
|
+
buy_amount_in_usd = '1845',
|
|
55
|
+
sells = '5',
|
|
56
|
+
sell_amount = '500',
|
|
57
|
+
sell_amount_in_usd = '615',
|
|
58
|
+
average_buy_price_in_usd = '1.23',
|
|
59
|
+
average_sell_price_in_usd = '1.23',
|
|
60
|
+
realized_profit_in_usd = '1234.56',
|
|
61
|
+
realized_profit_ratio = '12.34',
|
|
62
|
+
total_realized_profit_in_usd = '169.12',
|
|
63
|
+
total_realized_profit_ratio = '16.91'
|
|
64
|
+
)
|
|
65
|
+
else:
|
|
66
|
+
return WalletBalanceDetailDTO(
|
|
67
|
+
token_address = 'So11111111111111111111111111111111111111112',
|
|
68
|
+
amount = '2675.098457775',
|
|
69
|
+
value_in_usd = '366908.31721324675',
|
|
70
|
+
name = 'Solana',
|
|
71
|
+
symbol = 'SOL',
|
|
72
|
+
image_url = 'https://solana.com/images/solana-logo.png',
|
|
73
|
+
price_in_sol = '137.15',
|
|
74
|
+
price_in_usd = '137.15',
|
|
75
|
+
price_change_ratio_in_usd24h = '5.23',
|
|
76
|
+
unrealized_profit_in_usd = '123.45',
|
|
77
|
+
unrealized_profit_ratio = '12.34',
|
|
78
|
+
open_time = 1741780466000,
|
|
79
|
+
close_time = 1741780466000,
|
|
80
|
+
buys = '10',
|
|
81
|
+
buy_amount = '1500',
|
|
82
|
+
buy_amount_in_usd = '1845',
|
|
83
|
+
sells = '5',
|
|
84
|
+
sell_amount = '500',
|
|
85
|
+
sell_amount_in_usd = '615',
|
|
86
|
+
average_buy_price_in_usd = '1.23',
|
|
87
|
+
average_sell_price_in_usd = '1.23',
|
|
88
|
+
realized_profit_in_usd = '1234.56',
|
|
89
|
+
realized_profit_ratio = '12.34',
|
|
90
|
+
total_realized_profit_in_usd = '169.12',
|
|
91
|
+
total_realized_profit_ratio = '16.91',
|
|
92
|
+
)
|
|
93
|
+
"""
|
|
94
|
+
|
|
95
|
+
def testWalletBalanceDetailDTO(self):
|
|
96
|
+
"""Test WalletBalanceDetailDTO"""
|
|
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,111 @@
|
|
|
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.wallet_balances_dto import WalletBalancesDTO
|
|
19
|
+
|
|
20
|
+
class TestWalletBalancesDTO(unittest.TestCase):
|
|
21
|
+
"""WalletBalancesDTO 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) -> WalletBalancesDTO:
|
|
30
|
+
"""Test WalletBalancesDTO
|
|
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 `WalletBalancesDTO`
|
|
35
|
+
"""
|
|
36
|
+
model = WalletBalancesDTO()
|
|
37
|
+
if include_optional:
|
|
38
|
+
return WalletBalancesDTO(
|
|
39
|
+
total_balances_in_usd = '1000000',
|
|
40
|
+
total_profit_in_usd = '1000000',
|
|
41
|
+
balances = [
|
|
42
|
+
chainstream.openapi_client.models.wallet_balance_detail_dto.WalletBalanceDetailDTO(
|
|
43
|
+
token_address = 'So11111111111111111111111111111111111111112',
|
|
44
|
+
amount = '2675.098457775',
|
|
45
|
+
value_in_usd = '366908.31721324675',
|
|
46
|
+
name = 'Solana',
|
|
47
|
+
symbol = 'SOL',
|
|
48
|
+
image_url = 'https://solana.com/images/solana-logo.png',
|
|
49
|
+
price_in_sol = '137.15',
|
|
50
|
+
price_in_usd = '137.15',
|
|
51
|
+
price_change_ratio_in_usd24h = '5.23',
|
|
52
|
+
unrealized_profit_in_usd = '123.45',
|
|
53
|
+
unrealized_profit_ratio = '12.34',
|
|
54
|
+
open_time = 1741780466000,
|
|
55
|
+
close_time = 1741780466000,
|
|
56
|
+
buys = '10',
|
|
57
|
+
buy_amount = '1500',
|
|
58
|
+
buy_amount_in_usd = '1845',
|
|
59
|
+
sells = '5',
|
|
60
|
+
sell_amount = '500',
|
|
61
|
+
sell_amount_in_usd = '615',
|
|
62
|
+
average_buy_price_in_usd = '1.23',
|
|
63
|
+
average_sell_price_in_usd = '1.23',
|
|
64
|
+
realized_profit_in_usd = '1234.56',
|
|
65
|
+
realized_profit_ratio = '12.34',
|
|
66
|
+
total_realized_profit_in_usd = '169.12',
|
|
67
|
+
total_realized_profit_ratio = '16.91', )
|
|
68
|
+
]
|
|
69
|
+
)
|
|
70
|
+
else:
|
|
71
|
+
return WalletBalancesDTO(
|
|
72
|
+
total_balances_in_usd = '1000000',
|
|
73
|
+
total_profit_in_usd = '1000000',
|
|
74
|
+
balances = [
|
|
75
|
+
chainstream.openapi_client.models.wallet_balance_detail_dto.WalletBalanceDetailDTO(
|
|
76
|
+
token_address = 'So11111111111111111111111111111111111111112',
|
|
77
|
+
amount = '2675.098457775',
|
|
78
|
+
value_in_usd = '366908.31721324675',
|
|
79
|
+
name = 'Solana',
|
|
80
|
+
symbol = 'SOL',
|
|
81
|
+
image_url = 'https://solana.com/images/solana-logo.png',
|
|
82
|
+
price_in_sol = '137.15',
|
|
83
|
+
price_in_usd = '137.15',
|
|
84
|
+
price_change_ratio_in_usd24h = '5.23',
|
|
85
|
+
unrealized_profit_in_usd = '123.45',
|
|
86
|
+
unrealized_profit_ratio = '12.34',
|
|
87
|
+
open_time = 1741780466000,
|
|
88
|
+
close_time = 1741780466000,
|
|
89
|
+
buys = '10',
|
|
90
|
+
buy_amount = '1500',
|
|
91
|
+
buy_amount_in_usd = '1845',
|
|
92
|
+
sells = '5',
|
|
93
|
+
sell_amount = '500',
|
|
94
|
+
sell_amount_in_usd = '615',
|
|
95
|
+
average_buy_price_in_usd = '1.23',
|
|
96
|
+
average_sell_price_in_usd = '1.23',
|
|
97
|
+
realized_profit_in_usd = '1234.56',
|
|
98
|
+
realized_profit_ratio = '12.34',
|
|
99
|
+
total_realized_profit_in_usd = '169.12',
|
|
100
|
+
total_realized_profit_ratio = '16.91', )
|
|
101
|
+
],
|
|
102
|
+
)
|
|
103
|
+
"""
|
|
104
|
+
|
|
105
|
+
def testWalletBalancesDTO(self):
|
|
106
|
+
"""Test WalletBalancesDTO"""
|
|
107
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
108
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
109
|
+
|
|
110
|
+
if __name__ == '__main__':
|
|
111
|
+
unittest.main()
|
|
@@ -0,0 +1,97 @@
|
|
|
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.wallet_pnl_dto import WalletPnlDTO
|
|
19
|
+
|
|
20
|
+
class TestWalletPnlDTO(unittest.TestCase):
|
|
21
|
+
"""WalletPnlDTO 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) -> WalletPnlDTO:
|
|
30
|
+
"""Test WalletPnlDTO
|
|
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 `WalletPnlDTO`
|
|
35
|
+
"""
|
|
36
|
+
model = WalletPnlDTO()
|
|
37
|
+
if include_optional:
|
|
38
|
+
return WalletPnlDTO(
|
|
39
|
+
id = 1,
|
|
40
|
+
chain = 'solana',
|
|
41
|
+
wallet_address = 'oQPnhXAbLbMuKHESaGrbXT17CyvWCpLyERSJA9HCYd7',
|
|
42
|
+
token_address = '6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN',
|
|
43
|
+
token_price_in_usd = '1.23',
|
|
44
|
+
open_time = 1741780514000,
|
|
45
|
+
close_time = 1741780514000,
|
|
46
|
+
last_time = 1741780514000,
|
|
47
|
+
balance = '1000',
|
|
48
|
+
buy_amount = '1500',
|
|
49
|
+
buy_amount_in_usd = '1845',
|
|
50
|
+
buys = '10',
|
|
51
|
+
sell_amount = '500',
|
|
52
|
+
sell_amount_in_usd = '615',
|
|
53
|
+
sells = '5',
|
|
54
|
+
average_buy_price_in_usd = '1.23',
|
|
55
|
+
average_sell_price_in_usd = '1.23',
|
|
56
|
+
unrealized_profit_in_usd = '123.45',
|
|
57
|
+
unrealized_profit_ratio = '12.34',
|
|
58
|
+
realized_profit_in_usd = '45.67',
|
|
59
|
+
realized_profit_ratio = '4.56',
|
|
60
|
+
total_realized_profit_in_usd = '169.12',
|
|
61
|
+
total_realized_profit_ratio = '16.91'
|
|
62
|
+
)
|
|
63
|
+
else:
|
|
64
|
+
return WalletPnlDTO(
|
|
65
|
+
id = 1,
|
|
66
|
+
chain = 'solana',
|
|
67
|
+
wallet_address = 'oQPnhXAbLbMuKHESaGrbXT17CyvWCpLyERSJA9HCYd7',
|
|
68
|
+
token_address = '6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN',
|
|
69
|
+
token_price_in_usd = '1.23',
|
|
70
|
+
open_time = 1741780514000,
|
|
71
|
+
close_time = 1741780514000,
|
|
72
|
+
last_time = 1741780514000,
|
|
73
|
+
balance = '1000',
|
|
74
|
+
buy_amount = '1500',
|
|
75
|
+
buy_amount_in_usd = '1845',
|
|
76
|
+
buys = '10',
|
|
77
|
+
sell_amount = '500',
|
|
78
|
+
sell_amount_in_usd = '615',
|
|
79
|
+
sells = '5',
|
|
80
|
+
average_buy_price_in_usd = '1.23',
|
|
81
|
+
average_sell_price_in_usd = '1.23',
|
|
82
|
+
unrealized_profit_in_usd = '123.45',
|
|
83
|
+
unrealized_profit_ratio = '12.34',
|
|
84
|
+
realized_profit_in_usd = '45.67',
|
|
85
|
+
realized_profit_ratio = '4.56',
|
|
86
|
+
total_realized_profit_in_usd = '169.12',
|
|
87
|
+
total_realized_profit_ratio = '16.91',
|
|
88
|
+
)
|
|
89
|
+
"""
|
|
90
|
+
|
|
91
|
+
def testWalletPnlDTO(self):
|
|
92
|
+
"""Test WalletPnlDTO"""
|
|
93
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
94
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
95
|
+
|
|
96
|
+
if __name__ == '__main__':
|
|
97
|
+
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.watchlist_api import WatchlistApi
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class TestWatchlistApi(unittest.IsolatedAsyncioTestCase):
|
|
22
|
+
"""WatchlistApi unit test stubs"""
|
|
23
|
+
|
|
24
|
+
async def asyncSetUp(self) -> None:
|
|
25
|
+
self.api = WatchlistApi()
|
|
26
|
+
|
|
27
|
+
async def asyncTearDown(self) -> None:
|
|
28
|
+
await self.api.api_client.close()
|
|
29
|
+
|
|
30
|
+
async def test_watchlist_add(self) -> None:
|
|
31
|
+
"""Test case for watchlist_add
|
|
32
|
+
|
|
33
|
+
CONTROLLER.WATCHLIST.ADD.SUMMARY
|
|
34
|
+
"""
|
|
35
|
+
pass
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
if __name__ == '__main__':
|
|
39
|
+
unittest.main()
|
|
@@ -0,0 +1,65 @@
|
|
|
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.withdrawal_address_identifications_response_dto import WithdrawalAddressIdentificationsResponseDTO
|
|
19
|
+
|
|
20
|
+
class TestWithdrawalAddressIdentificationsResponseDTO(unittest.TestCase):
|
|
21
|
+
"""WithdrawalAddressIdentificationsResponseDTO 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) -> WithdrawalAddressIdentificationsResponseDTO:
|
|
30
|
+
"""Test WithdrawalAddressIdentificationsResponseDTO
|
|
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 `WithdrawalAddressIdentificationsResponseDTO`
|
|
35
|
+
"""
|
|
36
|
+
model = WithdrawalAddressIdentificationsResponseDTO()
|
|
37
|
+
if include_optional:
|
|
38
|
+
return WithdrawalAddressIdentificationsResponseDTO(
|
|
39
|
+
chainalysis_identifications = [
|
|
40
|
+
chainstream.openapi_client.models.chainalysis_address_identification.ChainalysisAddressIdentification(
|
|
41
|
+
address_name = 'SANCTIONS: OFAC SDN: Xiaobing Yan',
|
|
42
|
+
description = 'This specific address 12QtD5BFwRsdNsAZY76UVE1xyCGNTojH9h within the cluster has been identified...',
|
|
43
|
+
category_id = 3, )
|
|
44
|
+
],
|
|
45
|
+
custom_addresses = []
|
|
46
|
+
)
|
|
47
|
+
else:
|
|
48
|
+
return WithdrawalAddressIdentificationsResponseDTO(
|
|
49
|
+
chainalysis_identifications = [
|
|
50
|
+
chainstream.openapi_client.models.chainalysis_address_identification.ChainalysisAddressIdentification(
|
|
51
|
+
address_name = 'SANCTIONS: OFAC SDN: Xiaobing Yan',
|
|
52
|
+
description = 'This specific address 12QtD5BFwRsdNsAZY76UVE1xyCGNTojH9h within the cluster has been identified...',
|
|
53
|
+
category_id = 3, )
|
|
54
|
+
],
|
|
55
|
+
custom_addresses = [],
|
|
56
|
+
)
|
|
57
|
+
"""
|
|
58
|
+
|
|
59
|
+
def testWithdrawalAddressIdentificationsResponseDTO(self):
|
|
60
|
+
"""Test WithdrawalAddressIdentificationsResponseDTO"""
|
|
61
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
62
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
63
|
+
|
|
64
|
+
if __name__ == '__main__':
|
|
65
|
+
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.withdrawal_base_response_dto import WithdrawalBaseResponseDTO
|
|
19
|
+
|
|
20
|
+
class TestWithdrawalBaseResponseDTO(unittest.TestCase):
|
|
21
|
+
"""WithdrawalBaseResponseDTO 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) -> WithdrawalBaseResponseDTO:
|
|
30
|
+
"""Test WithdrawalBaseResponseDTO
|
|
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 `WithdrawalBaseResponseDTO`
|
|
35
|
+
"""
|
|
36
|
+
model = WithdrawalBaseResponseDTO()
|
|
37
|
+
if include_optional:
|
|
38
|
+
return WithdrawalBaseResponseDTO(
|
|
39
|
+
asset = 'BTC',
|
|
40
|
+
asset_id = '',
|
|
41
|
+
network = 'Bitcoin',
|
|
42
|
+
address = '1EM4e8eu2S2RQrbS8C6aYnunWpkAwQ8GtG',
|
|
43
|
+
memo = '',
|
|
44
|
+
attempt_identifier = 'attempt1',
|
|
45
|
+
asset_amount = '5',
|
|
46
|
+
external_id = '9855b826-2bad-31f2-8a89-96f164293a83',
|
|
47
|
+
usd_amount = '1000',
|
|
48
|
+
updated_at = '2020-12-09T17:25:40.008307'
|
|
49
|
+
)
|
|
50
|
+
else:
|
|
51
|
+
return WithdrawalBaseResponseDTO(
|
|
52
|
+
asset = 'BTC',
|
|
53
|
+
asset_id = '',
|
|
54
|
+
network = 'Bitcoin',
|
|
55
|
+
address = '1EM4e8eu2S2RQrbS8C6aYnunWpkAwQ8GtG',
|
|
56
|
+
memo = '',
|
|
57
|
+
attempt_identifier = 'attempt1',
|
|
58
|
+
asset_amount = '5',
|
|
59
|
+
external_id = '9855b826-2bad-31f2-8a89-96f164293a83',
|
|
60
|
+
usd_amount = '1000',
|
|
61
|
+
updated_at = '2020-12-09T17:25:40.008307',
|
|
62
|
+
)
|
|
63
|
+
"""
|
|
64
|
+
|
|
65
|
+
def testWithdrawalBaseResponseDTO(self):
|
|
66
|
+
"""Test WithdrawalBaseResponseDTO"""
|
|
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()
|