@codex-data/sdk 0.5.7
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 +104 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +32 -0
- package/dist/index.js.map +1 -0
- package/dist/resources/graphql.d.ts +7438 -0
- package/dist/resources/graphql.d.ts.map +1 -0
- package/dist/resources/graphql.js +1314 -0
- package/dist/resources/graphql.js.map +1 -0
- package/dist/resources/graphql.schema.json +50830 -0
- package/dist/resources/graphql.ts +7976 -0
- package/dist/resources/schema.graphql +10393 -0
- package/dist/sdk/Mutation.d.ts +14 -0
- package/dist/sdk/Mutation.d.ts.map +1 -0
- package/dist/sdk/Mutation.js +22 -0
- package/dist/sdk/Mutation.js.map +1 -0
- package/dist/sdk/Query.d.ts +22 -0
- package/dist/sdk/Query.d.ts.map +1 -0
- package/dist/sdk/Query.js +35 -0
- package/dist/sdk/Query.js.map +1 -0
- package/dist/sdk/Query.test.d.ts +2 -0
- package/dist/sdk/Query.test.d.ts.map +1 -0
- package/dist/sdk/Query.test.js +50 -0
- package/dist/sdk/Query.test.js.map +1 -0
- package/dist/sdk/Subscribe.d.ts +17 -0
- package/dist/sdk/Subscribe.d.ts.map +1 -0
- package/dist/sdk/Subscribe.js +28 -0
- package/dist/sdk/Subscribe.js.map +1 -0
- package/dist/sdk/generated/fragment-masking.d.ts +16 -0
- package/dist/sdk/generated/fragment-masking.d.ts.map +1 -0
- package/dist/sdk/generated/fragment-masking.js +23 -0
- package/dist/sdk/generated/fragment-masking.js.map +1 -0
- package/dist/sdk/generated/gql.d.ts +243 -0
- package/dist/sdk/generated/gql.d.ts.map +1 -0
- package/dist/sdk/generated/gql.js +70 -0
- package/dist/sdk/generated/gql.js.map +1 -0
- package/dist/sdk/generated/graphql.d.ts +11765 -0
- package/dist/sdk/generated/graphql.d.ts.map +1 -0
- package/dist/sdk/generated/graphql.js +1338 -0
- package/dist/sdk/generated/graphql.js.map +1 -0
- package/dist/sdk/generated/index.d.ts +3 -0
- package/dist/sdk/generated/index.d.ts.map +1 -0
- package/dist/sdk/generated/index.js +19 -0
- package/dist/sdk/generated/index.js.map +1 -0
- package/dist/sdk/index.d.ts +23 -0
- package/dist/sdk/index.d.ts.map +1 -0
- package/dist/sdk/index.js +76 -0
- package/dist/sdk/index.js.map +1 -0
- package/dist/sdk/index.test.d.ts +2 -0
- package/dist/sdk/index.test.d.ts.map +1 -0
- package/dist/sdk/index.test.js +78 -0
- package/dist/sdk/index.test.js.map +1 -0
- package/dist/sdk/invariant.d.ts +2 -0
- package/dist/sdk/invariant.d.ts.map +1 -0
- package/dist/sdk/invariant.js +31 -0
- package/dist/sdk/invariant.js.map +1 -0
- package/package.json +60 -0
- package/src/index.ts +2 -0
- package/src/resources/.keep +0 -0
- package/src/resources/graphql.schema.json +50830 -0
- package/src/resources/graphql.ts +7976 -0
- package/src/resources/schema.graphql +10393 -0
- package/src/sdk/Mutation.ts +15 -0
- package/src/sdk/Query.test.ts +40 -0
- package/src/sdk/Query.ts +65 -0
- package/src/sdk/Subscribe.ts +61 -0
- package/src/sdk/generated/fragment-masking.ts +66 -0
- package/src/sdk/generated/gql.ts +157 -0
- package/src/sdk/generated/graphql.ts +8215 -0
- package/src/sdk/generated/index.ts +2 -0
- package/src/sdk/graphql/CreateWebhooks.graphql +1145 -0
- package/src/sdk/graphql/DeleteWebhooks.graphql +5 -0
- package/src/sdk/graphql/FilterExchanges.graphql +23 -0
- package/src/sdk/graphql/FilterPairs.graphql +124 -0
- package/src/sdk/graphql/FilterTokens.graphql +129 -0
- package/src/sdk/graphql/GetBars.graphql +32 -0
- package/src/sdk/graphql/GetDetailedPairStats.graphql +941 -0
- package/src/sdk/graphql/GetNetworkStatus.graphql +7 -0
- package/src/sdk/graphql/GetNetworks.graphql +6 -0
- package/src/sdk/graphql/GetPairEvents.graphql +28 -0
- package/src/sdk/graphql/GetPrice.graphql +9 -0
- package/src/sdk/graphql/GetSparklines.graphql +10 -0
- package/src/sdk/graphql/GetSymbol.graphql +11 -0
- package/src/sdk/graphql/GetTokens.graphql +14 -0
- package/src/sdk/graphql/GetWebhooks.graphql +168 -0
- package/src/sdk/graphql/ListPairsForToken.graphql +105 -0
- package/src/sdk/graphql/ListTopTokens.graphql +48 -0
- package/src/sdk/graphql/OnBarsUpdated.graphql +183 -0
- package/src/sdk/graphql/OnDetailedStatsUpdated.graphql +324 -0
- package/src/sdk/graphql/OnEventsCreated.graphql +62 -0
- package/src/sdk/graphql/OnNftAssetsCreated.graphql +29 -0
- package/src/sdk/graphql/OnNftEventsCreated.graphql +83 -0
- package/src/sdk/graphql/OnPairMetadataUpdated.graphql +55 -0
- package/src/sdk/graphql/OnPriceUpdated.graphql +9 -0
- package/src/sdk/index.test.ts +78 -0
- package/src/sdk/index.ts +100 -0
- package/src/sdk/invariant.ts +34 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
query FilterExchanges($filters: ExchangeFilters, $phrase: String, $rankings: [ExchangeRanking], $limit: Int, $offset: Int) {
|
|
2
|
+
filterExchanges(
|
|
3
|
+
filters: $filters
|
|
4
|
+
rankings: $rankings
|
|
5
|
+
limit: $limit
|
|
6
|
+
phrase: $phrase
|
|
7
|
+
offset: $offset
|
|
8
|
+
) {
|
|
9
|
+
results {
|
|
10
|
+
exchange {
|
|
11
|
+
address
|
|
12
|
+
iconUrl
|
|
13
|
+
name
|
|
14
|
+
tradeUrl
|
|
15
|
+
}
|
|
16
|
+
dailyActiveUsers
|
|
17
|
+
monthlyActiveUsers
|
|
18
|
+
txnCount1
|
|
19
|
+
volumeNBT12
|
|
20
|
+
volumeUSD24
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
query FilterPairs(
|
|
2
|
+
$filters: PairFilters
|
|
3
|
+
$phrase: String
|
|
4
|
+
$pairs: [String]
|
|
5
|
+
$rankings: [PairRanking]
|
|
6
|
+
$limit: Int
|
|
7
|
+
$offset: Int
|
|
8
|
+
$matchTokens: PairFilterMatchTokens
|
|
9
|
+
) {
|
|
10
|
+
filterPairs(
|
|
11
|
+
filters: $filters
|
|
12
|
+
phrase: $phrase
|
|
13
|
+
pairs: $pairs
|
|
14
|
+
rankings: $rankings
|
|
15
|
+
limit: $limit
|
|
16
|
+
offset: $offset
|
|
17
|
+
matchTokens: $matchTokens
|
|
18
|
+
) {
|
|
19
|
+
count
|
|
20
|
+
offset
|
|
21
|
+
results {
|
|
22
|
+
createdAt
|
|
23
|
+
lastTransaction
|
|
24
|
+
buyCount1
|
|
25
|
+
buyCount4
|
|
26
|
+
buyCount12
|
|
27
|
+
buyCount24
|
|
28
|
+
highPrice1
|
|
29
|
+
highPrice4
|
|
30
|
+
highPrice12
|
|
31
|
+
highPrice24
|
|
32
|
+
liquidity
|
|
33
|
+
liquidityToken
|
|
34
|
+
quoteToken
|
|
35
|
+
lowPrice1
|
|
36
|
+
lowPrice4
|
|
37
|
+
lowPrice12
|
|
38
|
+
lowPrice24
|
|
39
|
+
marketCap
|
|
40
|
+
price
|
|
41
|
+
priceScale
|
|
42
|
+
priceChange1
|
|
43
|
+
priceChange4
|
|
44
|
+
priceChange12
|
|
45
|
+
priceChange24
|
|
46
|
+
sellCount1
|
|
47
|
+
sellCount4
|
|
48
|
+
sellCount12
|
|
49
|
+
sellCount24
|
|
50
|
+
txnCount1
|
|
51
|
+
txnCount4
|
|
52
|
+
txnCount12
|
|
53
|
+
txnCount24
|
|
54
|
+
uniqueBuys1
|
|
55
|
+
uniqueBuys4
|
|
56
|
+
uniqueBuys12
|
|
57
|
+
uniqueBuys24
|
|
58
|
+
uniqueSells1
|
|
59
|
+
uniqueSells4
|
|
60
|
+
uniqueSells12
|
|
61
|
+
uniqueSells24
|
|
62
|
+
uniqueTransactions1
|
|
63
|
+
uniqueTransactions4
|
|
64
|
+
uniqueTransactions12
|
|
65
|
+
uniqueTransactions24
|
|
66
|
+
volumeUSD1
|
|
67
|
+
volumeUSD4
|
|
68
|
+
volumeUSD12
|
|
69
|
+
volumeUSD24
|
|
70
|
+
pair {
|
|
71
|
+
address
|
|
72
|
+
createdAt
|
|
73
|
+
exchangeHash
|
|
74
|
+
fee
|
|
75
|
+
id
|
|
76
|
+
networkId
|
|
77
|
+
pooled {
|
|
78
|
+
token0
|
|
79
|
+
token1
|
|
80
|
+
}
|
|
81
|
+
tickSpacing
|
|
82
|
+
token0
|
|
83
|
+
token1
|
|
84
|
+
}
|
|
85
|
+
token0 {
|
|
86
|
+
address
|
|
87
|
+
decimals
|
|
88
|
+
name
|
|
89
|
+
networkId
|
|
90
|
+
symbol
|
|
91
|
+
info {
|
|
92
|
+
imageThumbUrl
|
|
93
|
+
imageSmallUrl
|
|
94
|
+
imageLargeUrl
|
|
95
|
+
circulatingSupply
|
|
96
|
+
totalSupply
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
token1 {
|
|
100
|
+
address
|
|
101
|
+
decimals
|
|
102
|
+
name
|
|
103
|
+
networkId
|
|
104
|
+
symbol
|
|
105
|
+
info {
|
|
106
|
+
imageThumbUrl
|
|
107
|
+
imageSmallUrl
|
|
108
|
+
imageLargeUrl
|
|
109
|
+
circulatingSupply
|
|
110
|
+
totalSupply
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
exchange {
|
|
114
|
+
address
|
|
115
|
+
id
|
|
116
|
+
name
|
|
117
|
+
exchangeVersion
|
|
118
|
+
iconUrl
|
|
119
|
+
networkId
|
|
120
|
+
tradeUrl
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
query FilterTokens(
|
|
2
|
+
$filters: TokenFilters
|
|
3
|
+
$phrase: String
|
|
4
|
+
$tokens: [String]
|
|
5
|
+
$rankings: [TokenRanking]
|
|
6
|
+
$limit: Int
|
|
7
|
+
$offset: Int
|
|
8
|
+
) {
|
|
9
|
+
filterTokens(
|
|
10
|
+
filters: $filters
|
|
11
|
+
phrase: $phrase
|
|
12
|
+
tokens: $tokens
|
|
13
|
+
rankings: $rankings
|
|
14
|
+
limit: $limit
|
|
15
|
+
offset: $offset
|
|
16
|
+
) {
|
|
17
|
+
count
|
|
18
|
+
page
|
|
19
|
+
results {
|
|
20
|
+
buyCount1
|
|
21
|
+
buyCount4
|
|
22
|
+
buyCount12
|
|
23
|
+
buyCount24
|
|
24
|
+
change1
|
|
25
|
+
change4
|
|
26
|
+
change12
|
|
27
|
+
change24
|
|
28
|
+
createdAt
|
|
29
|
+
exchanges {
|
|
30
|
+
address
|
|
31
|
+
color
|
|
32
|
+
exchangeVersion
|
|
33
|
+
iconUrl
|
|
34
|
+
id
|
|
35
|
+
name
|
|
36
|
+
networkId
|
|
37
|
+
tradeUrl
|
|
38
|
+
}
|
|
39
|
+
high1
|
|
40
|
+
high4
|
|
41
|
+
high12
|
|
42
|
+
high24
|
|
43
|
+
lastTransaction
|
|
44
|
+
liquidity
|
|
45
|
+
low1
|
|
46
|
+
low4
|
|
47
|
+
low12
|
|
48
|
+
low24
|
|
49
|
+
marketCap
|
|
50
|
+
priceUSD
|
|
51
|
+
quoteToken
|
|
52
|
+
sellCount1
|
|
53
|
+
sellCount4
|
|
54
|
+
sellCount12
|
|
55
|
+
sellCount24
|
|
56
|
+
txnCount1
|
|
57
|
+
txnCount4
|
|
58
|
+
txnCount12
|
|
59
|
+
txnCount24
|
|
60
|
+
uniqueBuys1
|
|
61
|
+
uniqueBuys4
|
|
62
|
+
uniqueBuys12
|
|
63
|
+
uniqueBuys24
|
|
64
|
+
uniqueSells1
|
|
65
|
+
uniqueSells4
|
|
66
|
+
uniqueSells12
|
|
67
|
+
uniqueSells24
|
|
68
|
+
uniqueTransactions1
|
|
69
|
+
uniqueTransactions4
|
|
70
|
+
uniqueTransactions12
|
|
71
|
+
uniqueTransactions24
|
|
72
|
+
volume1
|
|
73
|
+
volume4
|
|
74
|
+
volume12
|
|
75
|
+
volume24
|
|
76
|
+
pair {
|
|
77
|
+
address
|
|
78
|
+
exchangeHash
|
|
79
|
+
fee
|
|
80
|
+
id
|
|
81
|
+
networkId
|
|
82
|
+
tickSpacing
|
|
83
|
+
token0
|
|
84
|
+
token1
|
|
85
|
+
createdAt
|
|
86
|
+
pooled {
|
|
87
|
+
token0
|
|
88
|
+
token1
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
token {
|
|
92
|
+
address
|
|
93
|
+
decimals
|
|
94
|
+
name
|
|
95
|
+
networkId
|
|
96
|
+
symbol
|
|
97
|
+
isScam
|
|
98
|
+
socialLinks {
|
|
99
|
+
bitcointalk
|
|
100
|
+
blog
|
|
101
|
+
coingecko
|
|
102
|
+
coinmarketcap
|
|
103
|
+
discord
|
|
104
|
+
email
|
|
105
|
+
facebook
|
|
106
|
+
github
|
|
107
|
+
instagram
|
|
108
|
+
linkedin
|
|
109
|
+
reddit
|
|
110
|
+
slack
|
|
111
|
+
telegram
|
|
112
|
+
twitch
|
|
113
|
+
twitter
|
|
114
|
+
website
|
|
115
|
+
wechat
|
|
116
|
+
whitepaper
|
|
117
|
+
youtube
|
|
118
|
+
}
|
|
119
|
+
info {
|
|
120
|
+
imageThumbUrl
|
|
121
|
+
imageSmallUrl
|
|
122
|
+
imageLargeUrl
|
|
123
|
+
circulatingSupply
|
|
124
|
+
totalSupply
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
query GetBars($symbol: String!, $from: Int!, $to: Int!, $resolution: String!, $currencyCode: String, $quoteToken: QuoteToken, $removeLeadingNullValues: Boolean, $removeEmptyBars: Boolean, $statsType: TokenPairStatisticsType) {
|
|
2
|
+
getBars(
|
|
3
|
+
symbol: $symbol
|
|
4
|
+
from: $from
|
|
5
|
+
to: $to
|
|
6
|
+
resolution: $resolution
|
|
7
|
+
currencyCode: $currencyCode
|
|
8
|
+
quoteToken: $quoteToken
|
|
9
|
+
removeLeadingNullValues: $removeLeadingNullValues
|
|
10
|
+
removeEmptyBars: $removeEmptyBars
|
|
11
|
+
statsType: $statsType
|
|
12
|
+
) {
|
|
13
|
+
buyers
|
|
14
|
+
buys
|
|
15
|
+
buyVolume
|
|
16
|
+
c
|
|
17
|
+
h
|
|
18
|
+
l
|
|
19
|
+
liquidity
|
|
20
|
+
o
|
|
21
|
+
s
|
|
22
|
+
sellers
|
|
23
|
+
sells
|
|
24
|
+
sellVolume
|
|
25
|
+
t
|
|
26
|
+
traders
|
|
27
|
+
transactions
|
|
28
|
+
v
|
|
29
|
+
volume
|
|
30
|
+
volumeNativeToken
|
|
31
|
+
}
|
|
32
|
+
}
|