@chainstream-io/sdk 0.1.4 → 0.1.6
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.
- package/README.md +46 -0
- package/dist/esm/index.d.ts +3 -3
- package/dist/esm/index.js +77 -61
- package/dist/esm/openapi/apis/BlockchainApi.js +118 -0
- package/dist/esm/openapi/apis/DefiSolanaMoonshotApi.js +109 -0
- package/dist/esm/openapi/apis/DefiSolanaPumpfunApi.js +69 -0
- package/dist/esm/openapi/apis/DexApi.js +347 -0
- package/dist/esm/openapi/apis/DexPoolApi.js +87 -0
- package/dist/esm/openapi/apis/EndpointApi.js +316 -0
- package/dist/esm/openapi/apis/IpfsApi.js +68 -0
- package/dist/esm/openapi/apis/JobsApi.js +107 -0
- package/dist/esm/openapi/{src/apis → apis}/RankingApi.js +278 -249
- package/dist/esm/openapi/apis/RedPacketApi.js +454 -0
- package/dist/esm/openapi/apis/TokenApi.js +1837 -0
- package/dist/esm/openapi/apis/TradeApi.js +450 -0
- package/dist/esm/openapi/apis/TransactionApi.js +73 -0
- package/dist/esm/openapi/apis/WalletApi.js +272 -0
- package/dist/esm/openapi/apis/WatchlistApi.js +87 -0
- package/dist/esm/openapi/{src/runtime.js → runtime.js} +81 -69
- package/dist/esm/stream/index.d.ts +3 -0
- package/dist/esm/stream/index.js +3 -0
- package/dist/{api → esm/stream}/stream.d.ts +1 -1
- package/dist/esm/{api → stream}/stream.js +36 -29
- package/dist/{api → esm/stream}/stream.model.d.ts +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +92 -76
- package/dist/openapi/apis/BlockchainApi.js +122 -0
- package/dist/openapi/apis/DefiSolanaMoonshotApi.js +113 -0
- package/dist/openapi/apis/DefiSolanaPumpfunApi.js +73 -0
- package/dist/openapi/apis/DexApi.js +351 -0
- package/dist/openapi/apis/DexPoolApi.js +91 -0
- package/dist/openapi/apis/EndpointApi.js +320 -0
- package/dist/openapi/apis/IpfsApi.js +72 -0
- package/dist/openapi/apis/JobsApi.js +111 -0
- package/dist/openapi/{src/apis → apis}/RankingApi.js +279 -283
- package/dist/openapi/apis/RedPacketApi.js +458 -0
- package/dist/openapi/apis/TokenApi.js +1841 -0
- package/dist/openapi/apis/TradeApi.js +454 -0
- package/dist/openapi/apis/TransactionApi.js +77 -0
- package/dist/openapi/apis/WalletApi.js +276 -0
- package/dist/openapi/apis/WatchlistApi.js +91 -0
- package/dist/openapi/{src/runtime.js → runtime.js} +81 -69
- package/dist/stream/index.d.ts +3 -0
- package/dist/stream/index.js +19 -0
- package/dist/{esm/api → stream}/stream.d.ts +1 -1
- package/dist/{api → stream}/stream.js +36 -29
- package/dist/{esm/api → stream}/stream.model.d.ts +1 -1
- package/package.json +29 -29
- package/dist/esm/openapi/src/apis/BlockchainApi.js +0 -101
- package/dist/esm/openapi/src/apis/DefiSolanaMoonshotApi.js +0 -92
- package/dist/esm/openapi/src/apis/DefiSolanaPumpfunApi.js +0 -56
- package/dist/esm/openapi/src/apis/DexApi.js +0 -318
- package/dist/esm/openapi/src/apis/DexPoolApi.js +0 -74
- package/dist/esm/openapi/src/apis/EndpointApi.js +0 -279
- package/dist/esm/openapi/src/apis/IpfsApi.js +0 -55
- package/dist/esm/openapi/src/apis/JobsApi.js +0 -90
- package/dist/esm/openapi/src/apis/RedPacketApi.js +0 -413
- package/dist/esm/openapi/src/apis/TokenApi.js +0 -1748
- package/dist/esm/openapi/src/apis/TradeApi.js +0 -425
- package/dist/esm/openapi/src/apis/TransactionApi.js +0 -60
- package/dist/esm/openapi/src/apis/WalletApi.js +0 -247
- package/dist/esm/openapi/src/apis/WatchlistApi.js +0 -74
- package/dist/openapi/src/apis/BlockchainApi.js +0 -138
- package/dist/openapi/src/apis/DefiSolanaMoonshotApi.js +0 -129
- package/dist/openapi/src/apis/DefiSolanaPumpfunApi.js +0 -93
- package/dist/openapi/src/apis/DexApi.js +0 -355
- package/dist/openapi/src/apis/DexPoolApi.js +0 -111
- package/dist/openapi/src/apis/EndpointApi.js +0 -316
- package/dist/openapi/src/apis/IpfsApi.js +0 -92
- package/dist/openapi/src/apis/JobsApi.js +0 -127
- package/dist/openapi/src/apis/RedPacketApi.js +0 -450
- package/dist/openapi/src/apis/TokenApi.js +0 -1785
- package/dist/openapi/src/apis/TradeApi.js +0 -462
- package/dist/openapi/src/apis/TransactionApi.js +0 -97
- package/dist/openapi/src/apis/WalletApi.js +0 -284
- package/dist/openapi/src/apis/WatchlistApi.js +0 -111
- package/src/api/stream.fields.ts +0 -271
- package/src/api/stream.model.ts +0 -307
- package/src/api/stream.ts +0 -1086
- package/src/index.ts +0 -188
- package/src/openapi/src/apis/BlockchainApi.ts +0 -140
- package/src/openapi/src/apis/DefiSolanaMoonshotApi.ts +0 -145
- package/src/openapi/src/apis/DefiSolanaPumpfunApi.ts +0 -86
- package/src/openapi/src/apis/DexApi.ts +0 -490
- package/src/openapi/src/apis/DexPoolApi.ts +0 -107
- package/src/openapi/src/apis/EndpointApi.ts +0 -421
- package/src/openapi/src/apis/IpfsApi.ts +0 -66
- package/src/openapi/src/apis/JobsApi.ts +0 -135
- package/src/openapi/src/apis/RankingApi.ts +0 -939
- package/src/openapi/src/apis/RedPacketApi.ts +0 -621
- package/src/openapi/src/apis/TokenApi.ts +0 -2569
- package/src/openapi/src/apis/TradeApi.ts +0 -596
- package/src/openapi/src/apis/TransactionApi.ts +0 -95
- package/src/openapi/src/apis/WalletApi.ts +0 -365
- package/src/openapi/src/apis/WatchlistApi.ts +0 -107
- package/src/openapi/src/apis/index.ts +0 -17
- package/src/openapi/src/index.ts +0 -5
- package/src/openapi/src/models/BlockchainDTO.ts +0 -93
- package/src/openapi/src/models/BlockchainLatestBlockDTO.ts +0 -75
- package/src/openapi/src/models/BooleanResultDTO.ts +0 -66
- package/src/openapi/src/models/CalculatePnlInput.ts +0 -65
- package/src/openapi/src/models/Candle.ts +0 -130
- package/src/openapi/src/models/ClaimRedPacketInput.ts +0 -90
- package/src/openapi/src/models/CreateEndpointInput.ts +0 -121
- package/src/openapi/src/models/CreateRedPacketInput.ts +0 -124
- package/src/openapi/src/models/CreateRedPacketReply.ts +0 -75
- package/src/openapi/src/models/CreateTokenInput.ts +0 -139
- package/src/openapi/src/models/CreateTokenReply.ts +0 -75
- package/src/openapi/src/models/DexDTO.ts +0 -90
- package/src/openapi/src/models/DexPage.ts +0 -114
- package/src/openapi/src/models/DexPoolDTO.ts +0 -141
- package/src/openapi/src/models/EndpointListResponse.ts +0 -97
- package/src/openapi/src/models/EndpointOperationResponse.ts +0 -65
- package/src/openapi/src/models/EndpointResponse.ts +0 -145
- package/src/openapi/src/models/EndpointSecretResponse.ts +0 -65
- package/src/openapi/src/models/FilterCondition.ts +0 -135
- package/src/openapi/src/models/GainersAndLosersDTO.ts +0 -93
- package/src/openapi/src/models/GainersAndLosersPage.ts +0 -114
- package/src/openapi/src/models/JobDTO.ts +0 -75
- package/src/openapi/src/models/JobStreamingDTO.ts +0 -75
- package/src/openapi/src/models/Link.ts +0 -88
- package/src/openapi/src/models/MoonshotCreateTokenInput.ts +0 -182
- package/src/openapi/src/models/MoonshotCreateTokenReply.ts +0 -75
- package/src/openapi/src/models/MoonshotSubmitCreateToken200Response.ts +0 -73
- package/src/openapi/src/models/MoonshotSubmitCreateTokenInput.ts +0 -74
- package/src/openapi/src/models/PumpCreateTokenInput.ts +0 -180
- package/src/openapi/src/models/PumpCreateTokenReply.ts +0 -74
- package/src/openapi/src/models/QuoteResponse.ts +0 -105
- package/src/openapi/src/models/RedPacketClaimDTO.ts +0 -148
- package/src/openapi/src/models/RedPacketClaimsPage.ts +0 -110
- package/src/openapi/src/models/RedPacketDTO.ts +0 -229
- package/src/openapi/src/models/RedPacketReply.ts +0 -66
- package/src/openapi/src/models/RedPacketSendTxInput.ts +0 -66
- package/src/openapi/src/models/RedPacketSendTxResponse.ts +0 -66
- package/src/openapi/src/models/RedPacketsPage.ts +0 -110
- package/src/openapi/src/models/Resolution.ts +0 -61
- package/src/openapi/src/models/SendTxInput.ts +0 -93
- package/src/openapi/src/models/SendTxResponse.ts +0 -84
- package/src/openapi/src/models/SwapInput.ts +0 -157
- package/src/openapi/src/models/SwapReply.ts +0 -75
- package/src/openapi/src/models/SwapRouteInput.ts +0 -186
- package/src/openapi/src/models/SwapRouteResponse.ts +0 -101
- package/src/openapi/src/models/Token.ts +0 -251
- package/src/openapi/src/models/TokenCreationDTO.ts +0 -131
- package/src/openapi/src/models/TokenCreationPage.ts +0 -114
- package/src/openapi/src/models/TokenCreatorsDTO.ts +0 -81
- package/src/openapi/src/models/TokenExtraDTO.ts +0 -225
- package/src/openapi/src/models/TokenHolder.ts +0 -93
- package/src/openapi/src/models/TokenHolderPage.ts +0 -114
- package/src/openapi/src/models/TokenListPage.ts +0 -114
- package/src/openapi/src/models/TokenMarketData.ts +0 -190
- package/src/openapi/src/models/TokenMetadata.ts +0 -188
- package/src/openapi/src/models/TokenPage.ts +0 -122
- package/src/openapi/src/models/TokenPriceDTO.ts +0 -93
- package/src/openapi/src/models/TokenPricePage.ts +0 -114
- package/src/openapi/src/models/TokenSocialMediasDTO.ts +0 -161
- package/src/openapi/src/models/TokenStat.ts +0 -1152
- package/src/openapi/src/models/TopTradersDTO.ts +0 -164
- package/src/openapi/src/models/TopTradersPage.ts +0 -114
- package/src/openapi/src/models/TradeDetailDTO.ts +0 -282
- package/src/openapi/src/models/TradeEvent.ts +0 -184
- package/src/openapi/src/models/TradePage.ts +0 -114
- package/src/openapi/src/models/TradeType.ts +0 -53
- package/src/openapi/src/models/UpdateEndpointInput.ts +0 -129
- package/src/openapi/src/models/WalletBalanceDetailDTO.ts +0 -282
- package/src/openapi/src/models/WalletBalancesDTO.ts +0 -92
- package/src/openapi/src/models/WalletPnlDTO.ts +0 -264
- package/src/openapi/src/models/index.ts +0 -72
- package/src/openapi/src/runtime.ts +0 -432
- /package/dist/esm/openapi/{src/apis → apis}/BlockchainApi.d.ts +0 -0
- /package/dist/esm/openapi/{src/apis → apis}/DefiSolanaMoonshotApi.d.ts +0 -0
- /package/dist/esm/openapi/{src/apis → apis}/DefiSolanaPumpfunApi.d.ts +0 -0
- /package/dist/esm/openapi/{src/apis → apis}/DexApi.d.ts +0 -0
- /package/dist/esm/openapi/{src/apis → apis}/DexPoolApi.d.ts +0 -0
- /package/dist/esm/openapi/{src/apis → apis}/EndpointApi.d.ts +0 -0
- /package/dist/esm/openapi/{src/apis → apis}/IpfsApi.d.ts +0 -0
- /package/dist/esm/openapi/{src/apis → apis}/JobsApi.d.ts +0 -0
- /package/dist/esm/openapi/{src/apis → apis}/RankingApi.d.ts +0 -0
- /package/dist/esm/openapi/{src/apis → apis}/RedPacketApi.d.ts +0 -0
- /package/dist/esm/openapi/{src/apis → apis}/TokenApi.d.ts +0 -0
- /package/dist/esm/openapi/{src/apis → apis}/TradeApi.d.ts +0 -0
- /package/dist/esm/openapi/{src/apis → apis}/TransactionApi.d.ts +0 -0
- /package/dist/esm/openapi/{src/apis → apis}/WalletApi.d.ts +0 -0
- /package/dist/esm/openapi/{src/apis → apis}/WatchlistApi.d.ts +0 -0
- /package/dist/esm/openapi/{src/apis → apis}/index.d.ts +0 -0
- /package/dist/esm/openapi/{src/apis → apis}/index.js +0 -0
- /package/dist/esm/openapi/{src/index.d.ts → index.d.ts} +0 -0
- /package/dist/esm/openapi/{src/index.js → index.js} +0 -0
- /package/dist/esm/openapi/{src/models → models}/BlockchainDTO.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/BlockchainDTO.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/BlockchainLatestBlockDTO.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/BlockchainLatestBlockDTO.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/BooleanResultDTO.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/BooleanResultDTO.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/CalculatePnlInput.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/CalculatePnlInput.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/Candle.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/Candle.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/ClaimRedPacketInput.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/ClaimRedPacketInput.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/CreateEndpointInput.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/CreateEndpointInput.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/CreateRedPacketInput.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/CreateRedPacketInput.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/CreateRedPacketReply.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/CreateRedPacketReply.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/CreateTokenInput.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/CreateTokenInput.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/CreateTokenReply.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/CreateTokenReply.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/DexDTO.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/DexDTO.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/DexPage.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/DexPage.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/DexPoolDTO.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/DexPoolDTO.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/EndpointListResponse.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/EndpointListResponse.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/EndpointOperationResponse.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/EndpointOperationResponse.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/EndpointResponse.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/EndpointResponse.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/EndpointSecretResponse.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/EndpointSecretResponse.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/FilterCondition.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/FilterCondition.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/GainersAndLosersDTO.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/GainersAndLosersDTO.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/GainersAndLosersPage.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/GainersAndLosersPage.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/JobDTO.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/JobDTO.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/JobStreamingDTO.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/JobStreamingDTO.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/Link.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/Link.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/MoonshotCreateTokenInput.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/MoonshotCreateTokenInput.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/MoonshotCreateTokenReply.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/MoonshotCreateTokenReply.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/MoonshotSubmitCreateToken200Response.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/MoonshotSubmitCreateToken200Response.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/MoonshotSubmitCreateTokenInput.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/MoonshotSubmitCreateTokenInput.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/PumpCreateTokenInput.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/PumpCreateTokenInput.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/PumpCreateTokenReply.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/PumpCreateTokenReply.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/QuoteResponse.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/QuoteResponse.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/RedPacketClaimDTO.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/RedPacketClaimDTO.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/RedPacketClaimsPage.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/RedPacketClaimsPage.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/RedPacketDTO.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/RedPacketDTO.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/RedPacketReply.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/RedPacketReply.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/RedPacketSendTxInput.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/RedPacketSendTxInput.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/RedPacketSendTxResponse.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/RedPacketSendTxResponse.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/RedPacketsPage.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/RedPacketsPage.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/Resolution.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/Resolution.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/SendTxInput.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/SendTxInput.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/SendTxResponse.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/SendTxResponse.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/SwapInput.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/SwapInput.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/SwapReply.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/SwapReply.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/SwapRouteInput.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/SwapRouteInput.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/SwapRouteResponse.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/SwapRouteResponse.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/Token.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/Token.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenCreationDTO.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenCreationDTO.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenCreationPage.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenCreationPage.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenCreatorsDTO.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenCreatorsDTO.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenExtraDTO.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenExtraDTO.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenHolder.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenHolder.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenHolderPage.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenHolderPage.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenListPage.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenListPage.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenMarketData.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenMarketData.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenMetadata.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenMetadata.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenPage.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenPage.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenPriceDTO.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenPriceDTO.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenPricePage.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenPricePage.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenSocialMediasDTO.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenSocialMediasDTO.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenStat.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/TokenStat.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/TopTradersDTO.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/TopTradersDTO.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/TopTradersPage.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/TopTradersPage.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/TradeDetailDTO.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/TradeDetailDTO.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/TradeEvent.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/TradeEvent.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/TradePage.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/TradePage.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/TradeType.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/TradeType.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/UpdateEndpointInput.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/UpdateEndpointInput.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/WalletBalanceDetailDTO.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/WalletBalanceDetailDTO.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/WalletBalancesDTO.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/WalletBalancesDTO.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/WalletPnlDTO.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/WalletPnlDTO.js +0 -0
- /package/dist/esm/openapi/{src/models → models}/index.d.ts +0 -0
- /package/dist/esm/openapi/{src/models → models}/index.js +0 -0
- /package/dist/esm/openapi/{src/runtime.d.ts → runtime.d.ts} +0 -0
- /package/dist/{api → esm/stream}/stream.fields.d.ts +0 -0
- /package/dist/esm/{api → stream}/stream.fields.js +0 -0
- /package/dist/esm/{api → stream}/stream.model.js +0 -0
- /package/dist/openapi/{src/apis → apis}/BlockchainApi.d.ts +0 -0
- /package/dist/openapi/{src/apis → apis}/DefiSolanaMoonshotApi.d.ts +0 -0
- /package/dist/openapi/{src/apis → apis}/DefiSolanaPumpfunApi.d.ts +0 -0
- /package/dist/openapi/{src/apis → apis}/DexApi.d.ts +0 -0
- /package/dist/openapi/{src/apis → apis}/DexPoolApi.d.ts +0 -0
- /package/dist/openapi/{src/apis → apis}/EndpointApi.d.ts +0 -0
- /package/dist/openapi/{src/apis → apis}/IpfsApi.d.ts +0 -0
- /package/dist/openapi/{src/apis → apis}/JobsApi.d.ts +0 -0
- /package/dist/openapi/{src/apis → apis}/RankingApi.d.ts +0 -0
- /package/dist/openapi/{src/apis → apis}/RedPacketApi.d.ts +0 -0
- /package/dist/openapi/{src/apis → apis}/TokenApi.d.ts +0 -0
- /package/dist/openapi/{src/apis → apis}/TradeApi.d.ts +0 -0
- /package/dist/openapi/{src/apis → apis}/TransactionApi.d.ts +0 -0
- /package/dist/openapi/{src/apis → apis}/WalletApi.d.ts +0 -0
- /package/dist/openapi/{src/apis → apis}/WatchlistApi.d.ts +0 -0
- /package/dist/openapi/{src/apis → apis}/index.d.ts +0 -0
- /package/dist/openapi/{src/apis → apis}/index.js +0 -0
- /package/dist/openapi/{src/index.d.ts → index.d.ts} +0 -0
- /package/dist/openapi/{src/index.js → index.js} +0 -0
- /package/dist/openapi/{src/models → models}/BlockchainDTO.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/BlockchainDTO.js +0 -0
- /package/dist/openapi/{src/models → models}/BlockchainLatestBlockDTO.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/BlockchainLatestBlockDTO.js +0 -0
- /package/dist/openapi/{src/models → models}/BooleanResultDTO.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/BooleanResultDTO.js +0 -0
- /package/dist/openapi/{src/models → models}/CalculatePnlInput.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/CalculatePnlInput.js +0 -0
- /package/dist/openapi/{src/models → models}/Candle.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/Candle.js +0 -0
- /package/dist/openapi/{src/models → models}/ClaimRedPacketInput.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/ClaimRedPacketInput.js +0 -0
- /package/dist/openapi/{src/models → models}/CreateEndpointInput.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/CreateEndpointInput.js +0 -0
- /package/dist/openapi/{src/models → models}/CreateRedPacketInput.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/CreateRedPacketInput.js +0 -0
- /package/dist/openapi/{src/models → models}/CreateRedPacketReply.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/CreateRedPacketReply.js +0 -0
- /package/dist/openapi/{src/models → models}/CreateTokenInput.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/CreateTokenInput.js +0 -0
- /package/dist/openapi/{src/models → models}/CreateTokenReply.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/CreateTokenReply.js +0 -0
- /package/dist/openapi/{src/models → models}/DexDTO.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/DexDTO.js +0 -0
- /package/dist/openapi/{src/models → models}/DexPage.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/DexPage.js +0 -0
- /package/dist/openapi/{src/models → models}/DexPoolDTO.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/DexPoolDTO.js +0 -0
- /package/dist/openapi/{src/models → models}/EndpointListResponse.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/EndpointListResponse.js +0 -0
- /package/dist/openapi/{src/models → models}/EndpointOperationResponse.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/EndpointOperationResponse.js +0 -0
- /package/dist/openapi/{src/models → models}/EndpointResponse.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/EndpointResponse.js +0 -0
- /package/dist/openapi/{src/models → models}/EndpointSecretResponse.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/EndpointSecretResponse.js +0 -0
- /package/dist/openapi/{src/models → models}/FilterCondition.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/FilterCondition.js +0 -0
- /package/dist/openapi/{src/models → models}/GainersAndLosersDTO.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/GainersAndLosersDTO.js +0 -0
- /package/dist/openapi/{src/models → models}/GainersAndLosersPage.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/GainersAndLosersPage.js +0 -0
- /package/dist/openapi/{src/models → models}/JobDTO.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/JobDTO.js +0 -0
- /package/dist/openapi/{src/models → models}/JobStreamingDTO.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/JobStreamingDTO.js +0 -0
- /package/dist/openapi/{src/models → models}/Link.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/Link.js +0 -0
- /package/dist/openapi/{src/models → models}/MoonshotCreateTokenInput.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/MoonshotCreateTokenInput.js +0 -0
- /package/dist/openapi/{src/models → models}/MoonshotCreateTokenReply.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/MoonshotCreateTokenReply.js +0 -0
- /package/dist/openapi/{src/models → models}/MoonshotSubmitCreateToken200Response.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/MoonshotSubmitCreateToken200Response.js +0 -0
- /package/dist/openapi/{src/models → models}/MoonshotSubmitCreateTokenInput.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/MoonshotSubmitCreateTokenInput.js +0 -0
- /package/dist/openapi/{src/models → models}/PumpCreateTokenInput.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/PumpCreateTokenInput.js +0 -0
- /package/dist/openapi/{src/models → models}/PumpCreateTokenReply.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/PumpCreateTokenReply.js +0 -0
- /package/dist/openapi/{src/models → models}/QuoteResponse.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/QuoteResponse.js +0 -0
- /package/dist/openapi/{src/models → models}/RedPacketClaimDTO.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/RedPacketClaimDTO.js +0 -0
- /package/dist/openapi/{src/models → models}/RedPacketClaimsPage.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/RedPacketClaimsPage.js +0 -0
- /package/dist/openapi/{src/models → models}/RedPacketDTO.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/RedPacketDTO.js +0 -0
- /package/dist/openapi/{src/models → models}/RedPacketReply.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/RedPacketReply.js +0 -0
- /package/dist/openapi/{src/models → models}/RedPacketSendTxInput.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/RedPacketSendTxInput.js +0 -0
- /package/dist/openapi/{src/models → models}/RedPacketSendTxResponse.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/RedPacketSendTxResponse.js +0 -0
- /package/dist/openapi/{src/models → models}/RedPacketsPage.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/RedPacketsPage.js +0 -0
- /package/dist/openapi/{src/models → models}/Resolution.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/Resolution.js +0 -0
- /package/dist/openapi/{src/models → models}/SendTxInput.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/SendTxInput.js +0 -0
- /package/dist/openapi/{src/models → models}/SendTxResponse.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/SendTxResponse.js +0 -0
- /package/dist/openapi/{src/models → models}/SwapInput.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/SwapInput.js +0 -0
- /package/dist/openapi/{src/models → models}/SwapReply.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/SwapReply.js +0 -0
- /package/dist/openapi/{src/models → models}/SwapRouteInput.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/SwapRouteInput.js +0 -0
- /package/dist/openapi/{src/models → models}/SwapRouteResponse.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/SwapRouteResponse.js +0 -0
- /package/dist/openapi/{src/models → models}/Token.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/Token.js +0 -0
- /package/dist/openapi/{src/models → models}/TokenCreationDTO.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/TokenCreationDTO.js +0 -0
- /package/dist/openapi/{src/models → models}/TokenCreationPage.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/TokenCreationPage.js +0 -0
- /package/dist/openapi/{src/models → models}/TokenCreatorsDTO.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/TokenCreatorsDTO.js +0 -0
- /package/dist/openapi/{src/models → models}/TokenExtraDTO.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/TokenExtraDTO.js +0 -0
- /package/dist/openapi/{src/models → models}/TokenHolder.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/TokenHolder.js +0 -0
- /package/dist/openapi/{src/models → models}/TokenHolderPage.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/TokenHolderPage.js +0 -0
- /package/dist/openapi/{src/models → models}/TokenListPage.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/TokenListPage.js +0 -0
- /package/dist/openapi/{src/models → models}/TokenMarketData.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/TokenMarketData.js +0 -0
- /package/dist/openapi/{src/models → models}/TokenMetadata.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/TokenMetadata.js +0 -0
- /package/dist/openapi/{src/models → models}/TokenPage.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/TokenPage.js +0 -0
- /package/dist/openapi/{src/models → models}/TokenPriceDTO.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/TokenPriceDTO.js +0 -0
- /package/dist/openapi/{src/models → models}/TokenPricePage.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/TokenPricePage.js +0 -0
- /package/dist/openapi/{src/models → models}/TokenSocialMediasDTO.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/TokenSocialMediasDTO.js +0 -0
- /package/dist/openapi/{src/models → models}/TokenStat.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/TokenStat.js +0 -0
- /package/dist/openapi/{src/models → models}/TopTradersDTO.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/TopTradersDTO.js +0 -0
- /package/dist/openapi/{src/models → models}/TopTradersPage.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/TopTradersPage.js +0 -0
- /package/dist/openapi/{src/models → models}/TradeDetailDTO.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/TradeDetailDTO.js +0 -0
- /package/dist/openapi/{src/models → models}/TradeEvent.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/TradeEvent.js +0 -0
- /package/dist/openapi/{src/models → models}/TradePage.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/TradePage.js +0 -0
- /package/dist/openapi/{src/models → models}/TradeType.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/TradeType.js +0 -0
- /package/dist/openapi/{src/models → models}/UpdateEndpointInput.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/UpdateEndpointInput.js +0 -0
- /package/dist/openapi/{src/models → models}/WalletBalanceDetailDTO.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/WalletBalanceDetailDTO.js +0 -0
- /package/dist/openapi/{src/models → models}/WalletBalancesDTO.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/WalletBalancesDTO.js +0 -0
- /package/dist/openapi/{src/models → models}/WalletPnlDTO.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/WalletPnlDTO.js +0 -0
- /package/dist/openapi/{src/models → models}/index.d.ts +0 -0
- /package/dist/openapi/{src/models → models}/index.js +0 -0
- /package/dist/openapi/{src/runtime.d.ts → runtime.d.ts} +0 -0
- /package/dist/{esm/api → stream}/stream.fields.d.ts +0 -0
- /package/dist/{api → stream}/stream.fields.js +0 -0
- /package/dist/{api → stream}/stream.model.js +0 -0
|
@@ -1,282 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Dex Aggregator API
|
|
5
|
-
* Dex Aggregator API ⚡️
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0
|
|
8
|
-
* Contact: ai@sx.ai
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface WalletBalanceDetailDTO
|
|
20
|
-
*/
|
|
21
|
-
export interface WalletBalanceDetailDTO {
|
|
22
|
-
/**
|
|
23
|
-
* DTO.WALLET.BALANCE.TOKEN_ADDRESS
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof WalletBalanceDetailDTO
|
|
26
|
-
*/
|
|
27
|
-
tokenAddress: string;
|
|
28
|
-
/**
|
|
29
|
-
* DTO.WALLET.BALANCE.AMOUNT
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof WalletBalanceDetailDTO
|
|
32
|
-
*/
|
|
33
|
-
amount: string;
|
|
34
|
-
/**
|
|
35
|
-
* DTO.WALLET.BALANCE.AMOUNT_IN_USD
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof WalletBalanceDetailDTO
|
|
38
|
-
*/
|
|
39
|
-
valueInUsd: string;
|
|
40
|
-
/**
|
|
41
|
-
* DTO.WALLET.BALANCE.TOKEN_NAME
|
|
42
|
-
* @type {string}
|
|
43
|
-
* @memberof WalletBalanceDetailDTO
|
|
44
|
-
*/
|
|
45
|
-
name: string;
|
|
46
|
-
/**
|
|
47
|
-
* DTO.WALLET.BALANCE.TOKEN_SYMBOL
|
|
48
|
-
* @type {string}
|
|
49
|
-
* @memberof WalletBalanceDetailDTO
|
|
50
|
-
*/
|
|
51
|
-
symbol: string;
|
|
52
|
-
/**
|
|
53
|
-
* DTO.WALLET.BALANCE.TOKEN_IMAGE_URL
|
|
54
|
-
* @type {string}
|
|
55
|
-
* @memberof WalletBalanceDetailDTO
|
|
56
|
-
*/
|
|
57
|
-
imageUrl: string;
|
|
58
|
-
/**
|
|
59
|
-
* DTO.WALLET.BALANCE.TOKEN_PRICE_IN_SOL
|
|
60
|
-
* @type {string}
|
|
61
|
-
* @memberof WalletBalanceDetailDTO
|
|
62
|
-
*/
|
|
63
|
-
priceInSol: string;
|
|
64
|
-
/**
|
|
65
|
-
* DTO.WALLET.BALANCE.TOKEN_PRICE_IN_USD
|
|
66
|
-
* @type {string}
|
|
67
|
-
* @memberof WalletBalanceDetailDTO
|
|
68
|
-
*/
|
|
69
|
-
priceInUsd: string;
|
|
70
|
-
/**
|
|
71
|
-
* DTO.WALLET.BALANCE.PRICE_CHANGE_24H
|
|
72
|
-
* @type {string}
|
|
73
|
-
* @memberof WalletBalanceDetailDTO
|
|
74
|
-
*/
|
|
75
|
-
priceChangeRatioInUsd24h: string;
|
|
76
|
-
/**
|
|
77
|
-
* DTO.WALLET.BALANCE.UNREALIZED_PROFIT
|
|
78
|
-
* @type {string}
|
|
79
|
-
* @memberof WalletBalanceDetailDTO
|
|
80
|
-
*/
|
|
81
|
-
unrealizedProfitInUsd: string;
|
|
82
|
-
/**
|
|
83
|
-
* DTO.WALLET.BALANCE.UNREALIZED_PROFIT_RATIO
|
|
84
|
-
* @type {string}
|
|
85
|
-
* @memberof WalletBalanceDetailDTO
|
|
86
|
-
*/
|
|
87
|
-
unrealizedProfitRatio: string;
|
|
88
|
-
/**
|
|
89
|
-
* DTO.WALLET.BALANCE.OPEN_TIME
|
|
90
|
-
* @type {number}
|
|
91
|
-
* @memberof WalletBalanceDetailDTO
|
|
92
|
-
*/
|
|
93
|
-
openTime: number;
|
|
94
|
-
/**
|
|
95
|
-
* DTO.WALLET.BALANCE.CLOSE_TIME
|
|
96
|
-
* @type {number}
|
|
97
|
-
* @memberof WalletBalanceDetailDTO
|
|
98
|
-
*/
|
|
99
|
-
closeTime: number;
|
|
100
|
-
/**
|
|
101
|
-
* DTO.WALLET.BALANCE.BUYS
|
|
102
|
-
* @type {string}
|
|
103
|
-
* @memberof WalletBalanceDetailDTO
|
|
104
|
-
*/
|
|
105
|
-
buys: string;
|
|
106
|
-
/**
|
|
107
|
-
* DTO.WALLET.BALANCE.BUY_AMOUNT
|
|
108
|
-
* @type {string}
|
|
109
|
-
* @memberof WalletBalanceDetailDTO
|
|
110
|
-
*/
|
|
111
|
-
buyAmount: string;
|
|
112
|
-
/**
|
|
113
|
-
* DTO.WALLET.BALANCE.BUY_AMOUNT_USD
|
|
114
|
-
* @type {string}
|
|
115
|
-
* @memberof WalletBalanceDetailDTO
|
|
116
|
-
*/
|
|
117
|
-
buyAmountInUsd: string;
|
|
118
|
-
/**
|
|
119
|
-
* DTO.WALLET.BALANCE.SELLS
|
|
120
|
-
* @type {string}
|
|
121
|
-
* @memberof WalletBalanceDetailDTO
|
|
122
|
-
*/
|
|
123
|
-
sells: string;
|
|
124
|
-
/**
|
|
125
|
-
* DTO.WALLET.BALANCE.SELL_AMOUNT
|
|
126
|
-
* @type {string}
|
|
127
|
-
* @memberof WalletBalanceDetailDTO
|
|
128
|
-
*/
|
|
129
|
-
sellAmount: string;
|
|
130
|
-
/**
|
|
131
|
-
* DTO.WALLET.BALANCE.SELL_AMOUNT_USD
|
|
132
|
-
* @type {string}
|
|
133
|
-
* @memberof WalletBalanceDetailDTO
|
|
134
|
-
*/
|
|
135
|
-
sellAmountInUsd: string;
|
|
136
|
-
/**
|
|
137
|
-
* DTO.WALLET.BALANCE.AVERAGE_BUY_PRICE
|
|
138
|
-
* @type {string}
|
|
139
|
-
* @memberof WalletBalanceDetailDTO
|
|
140
|
-
*/
|
|
141
|
-
averageBuyPriceInUsd: string;
|
|
142
|
-
/**
|
|
143
|
-
* DTO.WALLET.BALANCE.AVERAGE_SELL_PRICE
|
|
144
|
-
* @type {string}
|
|
145
|
-
* @memberof WalletBalanceDetailDTO
|
|
146
|
-
*/
|
|
147
|
-
averageSellPriceInUsd: string;
|
|
148
|
-
/**
|
|
149
|
-
* DTO.WALLET.BALANCE.REALIZED_PROFIT_IN_USD
|
|
150
|
-
* @type {string}
|
|
151
|
-
* @memberof WalletBalanceDetailDTO
|
|
152
|
-
*/
|
|
153
|
-
realizedProfitInUsd: string;
|
|
154
|
-
/**
|
|
155
|
-
* DTO.WALLET.BALANCE.REALIZED_PROFIT_RATIO
|
|
156
|
-
* @type {string}
|
|
157
|
-
* @memberof WalletBalanceDetailDTO
|
|
158
|
-
*/
|
|
159
|
-
realizedProfitRatio: string;
|
|
160
|
-
/**
|
|
161
|
-
* DTO.WALLET.BALANCE.TOTAL_REALIZED_PROFIT
|
|
162
|
-
* @type {string}
|
|
163
|
-
* @memberof WalletBalanceDetailDTO
|
|
164
|
-
*/
|
|
165
|
-
totalRealizedProfitInUsd: string;
|
|
166
|
-
/**
|
|
167
|
-
* DTO.WALLET.BALANCE.TOTAL_REALIZED_PROFIT_RATIO
|
|
168
|
-
* @type {string}
|
|
169
|
-
* @memberof WalletBalanceDetailDTO
|
|
170
|
-
*/
|
|
171
|
-
totalRealizedProfitRatio: string;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
/**
|
|
175
|
-
* Check if a given object implements the WalletBalanceDetailDTO interface.
|
|
176
|
-
*/
|
|
177
|
-
export function instanceOfWalletBalanceDetailDTO(value: object): value is WalletBalanceDetailDTO {
|
|
178
|
-
if (!('tokenAddress' in value) || value['tokenAddress'] === undefined) return false;
|
|
179
|
-
if (!('amount' in value) || value['amount'] === undefined) return false;
|
|
180
|
-
if (!('valueInUsd' in value) || value['valueInUsd'] === undefined) return false;
|
|
181
|
-
if (!('name' in value) || value['name'] === undefined) return false;
|
|
182
|
-
if (!('symbol' in value) || value['symbol'] === undefined) return false;
|
|
183
|
-
if (!('imageUrl' in value) || value['imageUrl'] === undefined) return false;
|
|
184
|
-
if (!('priceInSol' in value) || value['priceInSol'] === undefined) return false;
|
|
185
|
-
if (!('priceInUsd' in value) || value['priceInUsd'] === undefined) return false;
|
|
186
|
-
if (!('priceChangeRatioInUsd24h' in value) || value['priceChangeRatioInUsd24h'] === undefined) return false;
|
|
187
|
-
if (!('unrealizedProfitInUsd' in value) || value['unrealizedProfitInUsd'] === undefined) return false;
|
|
188
|
-
if (!('unrealizedProfitRatio' in value) || value['unrealizedProfitRatio'] === undefined) return false;
|
|
189
|
-
if (!('openTime' in value) || value['openTime'] === undefined) return false;
|
|
190
|
-
if (!('closeTime' in value) || value['closeTime'] === undefined) return false;
|
|
191
|
-
if (!('buys' in value) || value['buys'] === undefined) return false;
|
|
192
|
-
if (!('buyAmount' in value) || value['buyAmount'] === undefined) return false;
|
|
193
|
-
if (!('buyAmountInUsd' in value) || value['buyAmountInUsd'] === undefined) return false;
|
|
194
|
-
if (!('sells' in value) || value['sells'] === undefined) return false;
|
|
195
|
-
if (!('sellAmount' in value) || value['sellAmount'] === undefined) return false;
|
|
196
|
-
if (!('sellAmountInUsd' in value) || value['sellAmountInUsd'] === undefined) return false;
|
|
197
|
-
if (!('averageBuyPriceInUsd' in value) || value['averageBuyPriceInUsd'] === undefined) return false;
|
|
198
|
-
if (!('averageSellPriceInUsd' in value) || value['averageSellPriceInUsd'] === undefined) return false;
|
|
199
|
-
if (!('realizedProfitInUsd' in value) || value['realizedProfitInUsd'] === undefined) return false;
|
|
200
|
-
if (!('realizedProfitRatio' in value) || value['realizedProfitRatio'] === undefined) return false;
|
|
201
|
-
if (!('totalRealizedProfitInUsd' in value) || value['totalRealizedProfitInUsd'] === undefined) return false;
|
|
202
|
-
if (!('totalRealizedProfitRatio' in value) || value['totalRealizedProfitRatio'] === undefined) return false;
|
|
203
|
-
return true;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
export function WalletBalanceDetailDTOFromJSON(json: any): WalletBalanceDetailDTO {
|
|
207
|
-
return WalletBalanceDetailDTOFromJSONTyped(json, false);
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
export function WalletBalanceDetailDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): WalletBalanceDetailDTO {
|
|
211
|
-
if (json == null) {
|
|
212
|
-
return json;
|
|
213
|
-
}
|
|
214
|
-
return {
|
|
215
|
-
|
|
216
|
-
'tokenAddress': json['tokenAddress'],
|
|
217
|
-
'amount': json['amount'],
|
|
218
|
-
'valueInUsd': json['valueInUsd'],
|
|
219
|
-
'name': json['name'],
|
|
220
|
-
'symbol': json['symbol'],
|
|
221
|
-
'imageUrl': json['imageUrl'],
|
|
222
|
-
'priceInSol': json['priceInSol'],
|
|
223
|
-
'priceInUsd': json['priceInUsd'],
|
|
224
|
-
'priceChangeRatioInUsd24h': json['priceChangeRatioInUsd24h'],
|
|
225
|
-
'unrealizedProfitInUsd': json['unrealizedProfitInUsd'],
|
|
226
|
-
'unrealizedProfitRatio': json['unrealizedProfitRatio'],
|
|
227
|
-
'openTime': json['openTime'],
|
|
228
|
-
'closeTime': json['closeTime'],
|
|
229
|
-
'buys': json['buys'],
|
|
230
|
-
'buyAmount': json['buyAmount'],
|
|
231
|
-
'buyAmountInUsd': json['buyAmountInUsd'],
|
|
232
|
-
'sells': json['sells'],
|
|
233
|
-
'sellAmount': json['sellAmount'],
|
|
234
|
-
'sellAmountInUsd': json['sellAmountInUsd'],
|
|
235
|
-
'averageBuyPriceInUsd': json['averageBuyPriceInUsd'],
|
|
236
|
-
'averageSellPriceInUsd': json['averageSellPriceInUsd'],
|
|
237
|
-
'realizedProfitInUsd': json['realizedProfitInUsd'],
|
|
238
|
-
'realizedProfitRatio': json['realizedProfitRatio'],
|
|
239
|
-
'totalRealizedProfitInUsd': json['totalRealizedProfitInUsd'],
|
|
240
|
-
'totalRealizedProfitRatio': json['totalRealizedProfitRatio'],
|
|
241
|
-
};
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
export function WalletBalanceDetailDTOToJSON(json: any): WalletBalanceDetailDTO {
|
|
245
|
-
return WalletBalanceDetailDTOToJSONTyped(json, false);
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
export function WalletBalanceDetailDTOToJSONTyped(value?: WalletBalanceDetailDTO | null, ignoreDiscriminator: boolean = false): any {
|
|
249
|
-
if (value == null) {
|
|
250
|
-
return value;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
return {
|
|
254
|
-
|
|
255
|
-
'tokenAddress': value['tokenAddress'],
|
|
256
|
-
'amount': value['amount'],
|
|
257
|
-
'valueInUsd': value['valueInUsd'],
|
|
258
|
-
'name': value['name'],
|
|
259
|
-
'symbol': value['symbol'],
|
|
260
|
-
'imageUrl': value['imageUrl'],
|
|
261
|
-
'priceInSol': value['priceInSol'],
|
|
262
|
-
'priceInUsd': value['priceInUsd'],
|
|
263
|
-
'priceChangeRatioInUsd24h': value['priceChangeRatioInUsd24h'],
|
|
264
|
-
'unrealizedProfitInUsd': value['unrealizedProfitInUsd'],
|
|
265
|
-
'unrealizedProfitRatio': value['unrealizedProfitRatio'],
|
|
266
|
-
'openTime': value['openTime'],
|
|
267
|
-
'closeTime': value['closeTime'],
|
|
268
|
-
'buys': value['buys'],
|
|
269
|
-
'buyAmount': value['buyAmount'],
|
|
270
|
-
'buyAmountInUsd': value['buyAmountInUsd'],
|
|
271
|
-
'sells': value['sells'],
|
|
272
|
-
'sellAmount': value['sellAmount'],
|
|
273
|
-
'sellAmountInUsd': value['sellAmountInUsd'],
|
|
274
|
-
'averageBuyPriceInUsd': value['averageBuyPriceInUsd'],
|
|
275
|
-
'averageSellPriceInUsd': value['averageSellPriceInUsd'],
|
|
276
|
-
'realizedProfitInUsd': value['realizedProfitInUsd'],
|
|
277
|
-
'realizedProfitRatio': value['realizedProfitRatio'],
|
|
278
|
-
'totalRealizedProfitInUsd': value['totalRealizedProfitInUsd'],
|
|
279
|
-
'totalRealizedProfitRatio': value['totalRealizedProfitRatio'],
|
|
280
|
-
};
|
|
281
|
-
}
|
|
282
|
-
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Dex Aggregator API
|
|
5
|
-
* Dex Aggregator API ⚡️
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0
|
|
8
|
-
* Contact: ai@sx.ai
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
import type { WalletBalanceDetailDTO } from './WalletBalanceDetailDTO';
|
|
17
|
-
import {
|
|
18
|
-
WalletBalanceDetailDTOFromJSON,
|
|
19
|
-
WalletBalanceDetailDTOFromJSONTyped,
|
|
20
|
-
WalletBalanceDetailDTOToJSON,
|
|
21
|
-
WalletBalanceDetailDTOToJSONTyped,
|
|
22
|
-
} from './WalletBalanceDetailDTO';
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
* @interface WalletBalancesDTO
|
|
28
|
-
*/
|
|
29
|
-
export interface WalletBalancesDTO {
|
|
30
|
-
/**
|
|
31
|
-
* DTO.WALLET.BALANCES.TOTAL_BALANCES_IN_USD
|
|
32
|
-
* @type {string}
|
|
33
|
-
* @memberof WalletBalancesDTO
|
|
34
|
-
*/
|
|
35
|
-
totalBalancesInUsd: string;
|
|
36
|
-
/**
|
|
37
|
-
* DTO.WALLET.BALANCES.TOTAL_PROFIT_IN_USD
|
|
38
|
-
* @type {string}
|
|
39
|
-
* @memberof WalletBalancesDTO
|
|
40
|
-
*/
|
|
41
|
-
totalProfitInUsd: string;
|
|
42
|
-
/**
|
|
43
|
-
* DTO.WALLET.BALANCES.BALANCES.DETAIL
|
|
44
|
-
* @type {Array<WalletBalanceDetailDTO>}
|
|
45
|
-
* @memberof WalletBalancesDTO
|
|
46
|
-
*/
|
|
47
|
-
balances: Array<WalletBalanceDetailDTO>;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* Check if a given object implements the WalletBalancesDTO interface.
|
|
52
|
-
*/
|
|
53
|
-
export function instanceOfWalletBalancesDTO(value: object): value is WalletBalancesDTO {
|
|
54
|
-
if (!('totalBalancesInUsd' in value) || value['totalBalancesInUsd'] === undefined) return false;
|
|
55
|
-
if (!('totalProfitInUsd' in value) || value['totalProfitInUsd'] === undefined) return false;
|
|
56
|
-
if (!('balances' in value) || value['balances'] === undefined) return false;
|
|
57
|
-
return true;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export function WalletBalancesDTOFromJSON(json: any): WalletBalancesDTO {
|
|
61
|
-
return WalletBalancesDTOFromJSONTyped(json, false);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export function WalletBalancesDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): WalletBalancesDTO {
|
|
65
|
-
if (json == null) {
|
|
66
|
-
return json;
|
|
67
|
-
}
|
|
68
|
-
return {
|
|
69
|
-
|
|
70
|
-
'totalBalancesInUsd': json['totalBalancesInUsd'],
|
|
71
|
-
'totalProfitInUsd': json['totalProfitInUsd'],
|
|
72
|
-
'balances': ((json['balances'] as Array<any>).map(WalletBalanceDetailDTOFromJSON)),
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export function WalletBalancesDTOToJSON(json: any): WalletBalancesDTO {
|
|
77
|
-
return WalletBalancesDTOToJSONTyped(json, false);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
export function WalletBalancesDTOToJSONTyped(value?: WalletBalancesDTO | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
-
if (value == null) {
|
|
82
|
-
return value;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
return {
|
|
86
|
-
|
|
87
|
-
'totalBalancesInUsd': value['totalBalancesInUsd'],
|
|
88
|
-
'totalProfitInUsd': value['totalProfitInUsd'],
|
|
89
|
-
'balances': ((value['balances'] as Array<any>).map(WalletBalanceDetailDTOToJSON)),
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
|
|
@@ -1,264 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Dex Aggregator API
|
|
5
|
-
* Dex Aggregator API ⚡️
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0
|
|
8
|
-
* Contact: ai@sx.ai
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
import { mapValues } from '../runtime';
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface WalletPnlDTO
|
|
20
|
-
*/
|
|
21
|
-
export interface WalletPnlDTO {
|
|
22
|
-
/**
|
|
23
|
-
* DTO.WALLET.PNL.ID
|
|
24
|
-
* @type {number}
|
|
25
|
-
* @memberof WalletPnlDTO
|
|
26
|
-
*/
|
|
27
|
-
id: number;
|
|
28
|
-
/**
|
|
29
|
-
* DTO.WALLET.PNL.CHAIN
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof WalletPnlDTO
|
|
32
|
-
*/
|
|
33
|
-
chain: string;
|
|
34
|
-
/**
|
|
35
|
-
* DTO.WALLET.PNL.WALLET_ADDRESS
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof WalletPnlDTO
|
|
38
|
-
*/
|
|
39
|
-
walletAddress: string;
|
|
40
|
-
/**
|
|
41
|
-
* DTO.WALLET.PNL.TOKEN_ADDRESS
|
|
42
|
-
* @type {string}
|
|
43
|
-
* @memberof WalletPnlDTO
|
|
44
|
-
*/
|
|
45
|
-
tokenAddress: string;
|
|
46
|
-
/**
|
|
47
|
-
* DTO.WALLET.PNL.TOKEN_PRICE
|
|
48
|
-
* @type {number}
|
|
49
|
-
* @memberof WalletPnlDTO
|
|
50
|
-
*/
|
|
51
|
-
tokenPriceInUsd: number;
|
|
52
|
-
/**
|
|
53
|
-
* DTO.WALLET.PNL.OPEN_TIME
|
|
54
|
-
* @type {number}
|
|
55
|
-
* @memberof WalletPnlDTO
|
|
56
|
-
*/
|
|
57
|
-
openTime: number;
|
|
58
|
-
/**
|
|
59
|
-
* DTO.WALLET.PNL.CLOSE_TIME
|
|
60
|
-
* @type {number}
|
|
61
|
-
* @memberof WalletPnlDTO
|
|
62
|
-
*/
|
|
63
|
-
closeTime: number;
|
|
64
|
-
/**
|
|
65
|
-
* DTO.WALLET.PNL.LAST_TIME
|
|
66
|
-
* @type {number}
|
|
67
|
-
* @memberof WalletPnlDTO
|
|
68
|
-
*/
|
|
69
|
-
lastTime: number;
|
|
70
|
-
/**
|
|
71
|
-
* DTO.WALLET.PNL.BALANCE
|
|
72
|
-
* @type {number}
|
|
73
|
-
* @memberof WalletPnlDTO
|
|
74
|
-
*/
|
|
75
|
-
balance: number;
|
|
76
|
-
/**
|
|
77
|
-
* DTO.WALLET.PNL.BUY_AMOUNT
|
|
78
|
-
* @type {number}
|
|
79
|
-
* @memberof WalletPnlDTO
|
|
80
|
-
*/
|
|
81
|
-
buyAmount: number;
|
|
82
|
-
/**
|
|
83
|
-
* DTO.WALLET.PNL.BUY_AMOUNT_USD
|
|
84
|
-
* @type {number}
|
|
85
|
-
* @memberof WalletPnlDTO
|
|
86
|
-
*/
|
|
87
|
-
buyAmountInUsd: number;
|
|
88
|
-
/**
|
|
89
|
-
* DTO.WALLET.PNL.BUYS
|
|
90
|
-
* @type {number}
|
|
91
|
-
* @memberof WalletPnlDTO
|
|
92
|
-
*/
|
|
93
|
-
buys: number;
|
|
94
|
-
/**
|
|
95
|
-
* DTO.WALLET.PNL.SELL_AMOUNT
|
|
96
|
-
* @type {number}
|
|
97
|
-
* @memberof WalletPnlDTO
|
|
98
|
-
*/
|
|
99
|
-
sellAmount: number;
|
|
100
|
-
/**
|
|
101
|
-
* DTO.WALLET.PNL.SELL_AMOUNT_USD
|
|
102
|
-
* @type {number}
|
|
103
|
-
* @memberof WalletPnlDTO
|
|
104
|
-
*/
|
|
105
|
-
sellAmountInUsd: number;
|
|
106
|
-
/**
|
|
107
|
-
* DTO.WALLET.PNL.SELLS
|
|
108
|
-
* @type {number}
|
|
109
|
-
* @memberof WalletPnlDTO
|
|
110
|
-
*/
|
|
111
|
-
sells: number;
|
|
112
|
-
/**
|
|
113
|
-
* DTO.WALLET.PNL.AVERAGE_BUY_PRICE
|
|
114
|
-
* @type {number}
|
|
115
|
-
* @memberof WalletPnlDTO
|
|
116
|
-
*/
|
|
117
|
-
averageBuyPriceInUsd: number;
|
|
118
|
-
/**
|
|
119
|
-
* DTO.WALLET.PNL.AVERAGE_SELL_PRICE
|
|
120
|
-
* @type {number}
|
|
121
|
-
* @memberof WalletPnlDTO
|
|
122
|
-
*/
|
|
123
|
-
averageSellPriceInUsd: number;
|
|
124
|
-
/**
|
|
125
|
-
* DTO.WALLET.PNL.UNREALIZED_PROFIT
|
|
126
|
-
* @type {number}
|
|
127
|
-
* @memberof WalletPnlDTO
|
|
128
|
-
*/
|
|
129
|
-
unrealizedProfitInUsd: number;
|
|
130
|
-
/**
|
|
131
|
-
* DTO.WALLET.PNL.UNREALIZED_PROFIT_RATIO
|
|
132
|
-
* @type {number}
|
|
133
|
-
* @memberof WalletPnlDTO
|
|
134
|
-
*/
|
|
135
|
-
unrealizedProfitRatio: number;
|
|
136
|
-
/**
|
|
137
|
-
* DTO.WALLET.PNL.REALIZED_PROFIT
|
|
138
|
-
* @type {number}
|
|
139
|
-
* @memberof WalletPnlDTO
|
|
140
|
-
*/
|
|
141
|
-
realizedProfitInUsd: number;
|
|
142
|
-
/**
|
|
143
|
-
* DTO.WALLET.PNL.REALIZED_PROFIT_RATIO
|
|
144
|
-
* @type {number}
|
|
145
|
-
* @memberof WalletPnlDTO
|
|
146
|
-
*/
|
|
147
|
-
realizedProfitRatio: number;
|
|
148
|
-
/**
|
|
149
|
-
* DTO.WALLET.PNL.TOTAL_REALIZED_PROFIT
|
|
150
|
-
* @type {number}
|
|
151
|
-
* @memberof WalletPnlDTO
|
|
152
|
-
*/
|
|
153
|
-
totalRealizedProfitInUsd: number;
|
|
154
|
-
/**
|
|
155
|
-
* DTO.WALLET.PNL.TOTAL_REALIZED_PROFIT_RATIO
|
|
156
|
-
* @type {number}
|
|
157
|
-
* @memberof WalletPnlDTO
|
|
158
|
-
*/
|
|
159
|
-
totalRealizedProfitRatio: number;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
/**
|
|
163
|
-
* Check if a given object implements the WalletPnlDTO interface.
|
|
164
|
-
*/
|
|
165
|
-
export function instanceOfWalletPnlDTO(value: object): value is WalletPnlDTO {
|
|
166
|
-
if (!('id' in value) || value['id'] === undefined) return false;
|
|
167
|
-
if (!('chain' in value) || value['chain'] === undefined) return false;
|
|
168
|
-
if (!('walletAddress' in value) || value['walletAddress'] === undefined) return false;
|
|
169
|
-
if (!('tokenAddress' in value) || value['tokenAddress'] === undefined) return false;
|
|
170
|
-
if (!('tokenPriceInUsd' in value) || value['tokenPriceInUsd'] === undefined) return false;
|
|
171
|
-
if (!('openTime' in value) || value['openTime'] === undefined) return false;
|
|
172
|
-
if (!('closeTime' in value) || value['closeTime'] === undefined) return false;
|
|
173
|
-
if (!('lastTime' in value) || value['lastTime'] === undefined) return false;
|
|
174
|
-
if (!('balance' in value) || value['balance'] === undefined) return false;
|
|
175
|
-
if (!('buyAmount' in value) || value['buyAmount'] === undefined) return false;
|
|
176
|
-
if (!('buyAmountInUsd' in value) || value['buyAmountInUsd'] === undefined) return false;
|
|
177
|
-
if (!('buys' in value) || value['buys'] === undefined) return false;
|
|
178
|
-
if (!('sellAmount' in value) || value['sellAmount'] === undefined) return false;
|
|
179
|
-
if (!('sellAmountInUsd' in value) || value['sellAmountInUsd'] === undefined) return false;
|
|
180
|
-
if (!('sells' in value) || value['sells'] === undefined) return false;
|
|
181
|
-
if (!('averageBuyPriceInUsd' in value) || value['averageBuyPriceInUsd'] === undefined) return false;
|
|
182
|
-
if (!('averageSellPriceInUsd' in value) || value['averageSellPriceInUsd'] === undefined) return false;
|
|
183
|
-
if (!('unrealizedProfitInUsd' in value) || value['unrealizedProfitInUsd'] === undefined) return false;
|
|
184
|
-
if (!('unrealizedProfitRatio' in value) || value['unrealizedProfitRatio'] === undefined) return false;
|
|
185
|
-
if (!('realizedProfitInUsd' in value) || value['realizedProfitInUsd'] === undefined) return false;
|
|
186
|
-
if (!('realizedProfitRatio' in value) || value['realizedProfitRatio'] === undefined) return false;
|
|
187
|
-
if (!('totalRealizedProfitInUsd' in value) || value['totalRealizedProfitInUsd'] === undefined) return false;
|
|
188
|
-
if (!('totalRealizedProfitRatio' in value) || value['totalRealizedProfitRatio'] === undefined) return false;
|
|
189
|
-
return true;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
export function WalletPnlDTOFromJSON(json: any): WalletPnlDTO {
|
|
193
|
-
return WalletPnlDTOFromJSONTyped(json, false);
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
export function WalletPnlDTOFromJSONTyped(json: any, ignoreDiscriminator: boolean): WalletPnlDTO {
|
|
197
|
-
if (json == null) {
|
|
198
|
-
return json;
|
|
199
|
-
}
|
|
200
|
-
return {
|
|
201
|
-
|
|
202
|
-
'id': json['id'],
|
|
203
|
-
'chain': json['chain'],
|
|
204
|
-
'walletAddress': json['walletAddress'],
|
|
205
|
-
'tokenAddress': json['tokenAddress'],
|
|
206
|
-
'tokenPriceInUsd': json['tokenPriceInUsd'],
|
|
207
|
-
'openTime': json['openTime'],
|
|
208
|
-
'closeTime': json['closeTime'],
|
|
209
|
-
'lastTime': json['lastTime'],
|
|
210
|
-
'balance': json['balance'],
|
|
211
|
-
'buyAmount': json['buyAmount'],
|
|
212
|
-
'buyAmountInUsd': json['buyAmountInUsd'],
|
|
213
|
-
'buys': json['buys'],
|
|
214
|
-
'sellAmount': json['sellAmount'],
|
|
215
|
-
'sellAmountInUsd': json['sellAmountInUsd'],
|
|
216
|
-
'sells': json['sells'],
|
|
217
|
-
'averageBuyPriceInUsd': json['averageBuyPriceInUsd'],
|
|
218
|
-
'averageSellPriceInUsd': json['averageSellPriceInUsd'],
|
|
219
|
-
'unrealizedProfitInUsd': json['unrealizedProfitInUsd'],
|
|
220
|
-
'unrealizedProfitRatio': json['unrealizedProfitRatio'],
|
|
221
|
-
'realizedProfitInUsd': json['realizedProfitInUsd'],
|
|
222
|
-
'realizedProfitRatio': json['realizedProfitRatio'],
|
|
223
|
-
'totalRealizedProfitInUsd': json['totalRealizedProfitInUsd'],
|
|
224
|
-
'totalRealizedProfitRatio': json['totalRealizedProfitRatio'],
|
|
225
|
-
};
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
export function WalletPnlDTOToJSON(json: any): WalletPnlDTO {
|
|
229
|
-
return WalletPnlDTOToJSONTyped(json, false);
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
export function WalletPnlDTOToJSONTyped(value?: WalletPnlDTO | null, ignoreDiscriminator: boolean = false): any {
|
|
233
|
-
if (value == null) {
|
|
234
|
-
return value;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
return {
|
|
238
|
-
|
|
239
|
-
'id': value['id'],
|
|
240
|
-
'chain': value['chain'],
|
|
241
|
-
'walletAddress': value['walletAddress'],
|
|
242
|
-
'tokenAddress': value['tokenAddress'],
|
|
243
|
-
'tokenPriceInUsd': value['tokenPriceInUsd'],
|
|
244
|
-
'openTime': value['openTime'],
|
|
245
|
-
'closeTime': value['closeTime'],
|
|
246
|
-
'lastTime': value['lastTime'],
|
|
247
|
-
'balance': value['balance'],
|
|
248
|
-
'buyAmount': value['buyAmount'],
|
|
249
|
-
'buyAmountInUsd': value['buyAmountInUsd'],
|
|
250
|
-
'buys': value['buys'],
|
|
251
|
-
'sellAmount': value['sellAmount'],
|
|
252
|
-
'sellAmountInUsd': value['sellAmountInUsd'],
|
|
253
|
-
'sells': value['sells'],
|
|
254
|
-
'averageBuyPriceInUsd': value['averageBuyPriceInUsd'],
|
|
255
|
-
'averageSellPriceInUsd': value['averageSellPriceInUsd'],
|
|
256
|
-
'unrealizedProfitInUsd': value['unrealizedProfitInUsd'],
|
|
257
|
-
'unrealizedProfitRatio': value['unrealizedProfitRatio'],
|
|
258
|
-
'realizedProfitInUsd': value['realizedProfitInUsd'],
|
|
259
|
-
'realizedProfitRatio': value['realizedProfitRatio'],
|
|
260
|
-
'totalRealizedProfitInUsd': value['totalRealizedProfitInUsd'],
|
|
261
|
-
'totalRealizedProfitRatio': value['totalRealizedProfitRatio'],
|
|
262
|
-
};
|
|
263
|
-
}
|
|
264
|
-
|