@n8n-dev/n8n-nodes-binance 1.0.0
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 +123 -0
- package/dist/credentials/BinanceApi.credentials.d.ts +10 -0
- package/dist/credentials/BinanceApi.credentials.js +56 -0
- package/dist/credentials/BinanceApi.credentials.js.map +1 -0
- package/dist/icons/binance.dark.svg +4 -0
- package/dist/icons/binance.svg +4 -0
- package/dist/nodes/Binance/Binance.node.d.ts +4 -0
- package/dist/nodes/Binance/Binance.node.js +250 -0
- package/dist/nodes/Binance/Binance.node.js.map +1 -0
- package/dist/nodes/Binance/Binance.node.json +20 -0
- package/dist/nodes/Binance/binance.dark.svg +4 -0
- package/dist/nodes/Binance/binance.svg +4 -0
- package/dist/nodes/Binance/resources/auto-invest/index.d.ts +2 -0
- package/dist/nodes/Binance/resources/auto-invest/index.js +3694 -0
- package/dist/nodes/Binance/resources/auto-invest/index.js.map +1 -0
- package/dist/nodes/Binance/resources/blvt/index.d.ts +2 -0
- package/dist/nodes/Binance/resources/blvt/index.js +994 -0
- package/dist/nodes/Binance/resources/blvt/index.js.map +1 -0
- package/dist/nodes/Binance/resources/c-2-c/index.d.ts +2 -0
- package/dist/nodes/Binance/resources/c-2-c/index.js +265 -0
- package/dist/nodes/Binance/resources/c-2-c/index.js.map +1 -0
- package/dist/nodes/Binance/resources/convert/index.d.ts +2 -0
- package/dist/nodes/Binance/resources/convert/index.js +1535 -0
- package/dist/nodes/Binance/resources/convert/index.js.map +1 -0
- package/dist/nodes/Binance/resources/copy-trading/index.d.ts +2 -0
- package/dist/nodes/Binance/resources/copy-trading/index.js +238 -0
- package/dist/nodes/Binance/resources/copy-trading/index.js.map +1 -0
- package/dist/nodes/Binance/resources/crypto-loans/index.d.ts +2 -0
- package/dist/nodes/Binance/resources/crypto-loans/index.js +4599 -0
- package/dist/nodes/Binance/resources/crypto-loans/index.js.map +1 -0
- package/dist/nodes/Binance/resources/dual-investment/index.d.ts +2 -0
- package/dist/nodes/Binance/resources/dual-investment/index.js +988 -0
- package/dist/nodes/Binance/resources/dual-investment/index.js.map +1 -0
- package/dist/nodes/Binance/resources/fiat/index.d.ts +2 -0
- package/dist/nodes/Binance/resources/fiat/index.js +488 -0
- package/dist/nodes/Binance/resources/fiat/index.js.map +1 -0
- package/dist/nodes/Binance/resources/futures/index.d.ts +2 -0
- package/dist/nodes/Binance/resources/futures/index.js +658 -0
- package/dist/nodes/Binance/resources/futures/index.js.map +1 -0
- package/dist/nodes/Binance/resources/futures-algo/index.d.ts +2 -0
- package/dist/nodes/Binance/resources/futures-algo/index.js +1398 -0
- package/dist/nodes/Binance/resources/futures-algo/index.js.map +1 -0
- package/dist/nodes/Binance/resources/gift-card/index.d.ts +2 -0
- package/dist/nodes/Binance/resources/gift-card/index.js +903 -0
- package/dist/nodes/Binance/resources/gift-card/index.js.map +1 -0
- package/dist/nodes/Binance/resources/index.d.ts +29 -0
- package/dist/nodes/Binance/resources/index.js +62 -0
- package/dist/nodes/Binance/resources/index.js.map +1 -0
- package/dist/nodes/Binance/resources/isolated-margin-stream/index.d.ts +2 -0
- package/dist/nodes/Binance/resources/isolated-margin-stream/index.js +165 -0
- package/dist/nodes/Binance/resources/isolated-margin-stream/index.js.map +1 -0
- package/dist/nodes/Binance/resources/margin/index.d.ts +2 -0
- package/dist/nodes/Binance/resources/margin/index.js +10472 -0
- package/dist/nodes/Binance/resources/margin/index.js.map +1 -0
- package/dist/nodes/Binance/resources/margin-stream/index.d.ts +2 -0
- package/dist/nodes/Binance/resources/margin-stream/index.js +165 -0
- package/dist/nodes/Binance/resources/margin-stream/index.js.map +1 -0
- package/dist/nodes/Binance/resources/market/index.d.ts +2 -0
- package/dist/nodes/Binance/resources/market/index.js +1716 -0
- package/dist/nodes/Binance/resources/market/index.js.map +1 -0
- package/dist/nodes/Binance/resources/mining/index.d.ts +2 -0
- package/dist/nodes/Binance/resources/mining/index.js +2444 -0
- package/dist/nodes/Binance/resources/mining/index.js.map +1 -0
- package/dist/nodes/Binance/resources/nft/index.d.ts +2 -0
- package/dist/nodes/Binance/resources/nft/index.js +830 -0
- package/dist/nodes/Binance/resources/nft/index.js.map +1 -0
- package/dist/nodes/Binance/resources/pay/index.d.ts +2 -0
- package/dist/nodes/Binance/resources/pay/index.js +205 -0
- package/dist/nodes/Binance/resources/pay/index.js.map +1 -0
- package/dist/nodes/Binance/resources/portfolio-margin/index.d.ts +2 -0
- package/dist/nodes/Binance/resources/portfolio-margin/index.js +1561 -0
- package/dist/nodes/Binance/resources/portfolio-margin/index.js.map +1 -0
- package/dist/nodes/Binance/resources/rebate/index.d.ts +2 -0
- package/dist/nodes/Binance/resources/rebate/index.js +205 -0
- package/dist/nodes/Binance/resources/rebate/index.js.map +1 -0
- package/dist/nodes/Binance/resources/savings/index.d.ts +2 -0
- package/dist/nodes/Binance/resources/savings/index.js +882 -0
- package/dist/nodes/Binance/resources/savings/index.js.map +1 -0
- package/dist/nodes/Binance/resources/simple-earn/index.d.ts +2 -0
- package/dist/nodes/Binance/resources/simple-earn/index.js +4686 -0
- package/dist/nodes/Binance/resources/simple-earn/index.js.map +1 -0
- package/dist/nodes/Binance/resources/spot-algo/index.d.ts +2 -0
- package/dist/nodes/Binance/resources/spot-algo/index.js +982 -0
- package/dist/nodes/Binance/resources/spot-algo/index.js.map +1 -0
- package/dist/nodes/Binance/resources/staking/index.d.ts +2 -0
- package/dist/nodes/Binance/resources/staking/index.js +2121 -0
- package/dist/nodes/Binance/resources/staking/index.js.map +1 -0
- package/dist/nodes/Binance/resources/stream/index.d.ts +2 -0
- package/dist/nodes/Binance/resources/stream/index.js +165 -0
- package/dist/nodes/Binance/resources/stream/index.js.map +1 -0
- package/dist/nodes/Binance/resources/sub-account/index.d.ts +2 -0
- package/dist/nodes/Binance/resources/sub-account/index.js +8448 -0
- package/dist/nodes/Binance/resources/sub-account/index.js.map +1 -0
- package/dist/nodes/Binance/resources/trade/index.d.ts +2 -0
- package/dist/nodes/Binance/resources/trade/index.js +8198 -0
- package/dist/nodes/Binance/resources/trade/index.js.map +1 -0
- package/dist/nodes/Binance/resources/vip-loans/index.d.ts +2 -0
- package/dist/nodes/Binance/resources/vip-loans/index.js +1883 -0
- package/dist/nodes/Binance/resources/vip-loans/index.js.map +1 -0
- package/dist/nodes/Binance/resources/wallet/index.d.ts +2 -0
- package/dist/nodes/Binance/resources/wallet/index.js +5908 -0
- package/dist/nodes/Binance/resources/wallet/index.js.map +1 -0
- package/dist/package.json +62 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +62 -0
|
@@ -0,0 +1,903 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.giftCardDescription = void 0;
|
|
4
|
+
exports.giftCardDescription = [
|
|
5
|
+
{
|
|
6
|
+
"displayName": "Operation",
|
|
7
|
+
"name": "operation",
|
|
8
|
+
"type": "options",
|
|
9
|
+
"noDataExpression": true,
|
|
10
|
+
"displayOptions": {
|
|
11
|
+
"show": {
|
|
12
|
+
"resource": [
|
|
13
|
+
"Gift Card"
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"options": [
|
|
18
|
+
{
|
|
19
|
+
"name": "POST Sapi V 1 Giftcard Create Code",
|
|
20
|
+
"value": "POST Sapi V 1 Giftcard Create Code",
|
|
21
|
+
"action": "Create a Binance Code (USER_DATA)",
|
|
22
|
+
"description": "This API is for creating a Binance Code. To get started with, please make sure:\n\n- You have a Binance account\n- You have passed kyc\n- You have a sufficient balance in your Binance funding wallet\n- You need Enable Withdrawals for the API Key which requests this endpoint.\n\nDaily creation volume: 2 BTC / 24H Daily creation times: 200 Codes / 24H\n\nWeight(IP): 1",
|
|
23
|
+
"routing": {
|
|
24
|
+
"request": {
|
|
25
|
+
"method": "POST",
|
|
26
|
+
"url": "=/sapi/v1/giftcard/createCode"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"name": "POST Sapi V 1 Giftcard Redeem Code",
|
|
32
|
+
"value": "POST Sapi V 1 Giftcard Redeem Code",
|
|
33
|
+
"action": "Redeem a Binance Code (USER_DATA)",
|
|
34
|
+
"description": "This API is for redeeming the Binance Code. Once redeemed, the coins will be deposited in your funding wallet.\n\nPlease note that if you enter the wrong code 5 times within 24 hours, you will no longer be able to redeem any Binance Code that day.\n\nWeight(IP): 1",
|
|
35
|
+
"routing": {
|
|
36
|
+
"request": {
|
|
37
|
+
"method": "POST",
|
|
38
|
+
"url": "=/sapi/v1/giftcard/redeemCode"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "GET Sapi V 1 Giftcard Verify",
|
|
44
|
+
"value": "GET Sapi V 1 Giftcard Verify",
|
|
45
|
+
"action": "Verify a Binance Code (USER_DATA)",
|
|
46
|
+
"description": "This API is for verifying whether the Binance Code is valid or not by entering Binance Code or reference number.\n\nPlease note that if you enter the wrong binance code 5 times within an hour, you will no longer be able to verify any binance code for that hour.\n\nWeight(IP): 1",
|
|
47
|
+
"routing": {
|
|
48
|
+
"request": {
|
|
49
|
+
"method": "GET",
|
|
50
|
+
"url": "=/sapi/v1/giftcard/verify"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"name": "GET Sapi V 1 Giftcard Cryptography Rsa Public Key",
|
|
56
|
+
"value": "GET Sapi V 1 Giftcard Cryptography Rsa Public Key",
|
|
57
|
+
"action": "Fetch RSA Public Key (USER_DATA)",
|
|
58
|
+
"description": "This API is for fetching the RSA Public Key.\nThis RSA Public key will be used to encrypt the card code.\nPlease note that the RSA Public key fetched is valid only for the current day.\n\nWeight(IP): 1",
|
|
59
|
+
"routing": {
|
|
60
|
+
"request": {
|
|
61
|
+
"method": "GET",
|
|
62
|
+
"url": "=/sapi/v1/giftcard/cryptography/rsa-public-key"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"name": "POST Sapi V 1 Giftcard Buy Code",
|
|
68
|
+
"value": "POST Sapi V 1 Giftcard Buy Code",
|
|
69
|
+
"action": "Buy a Binance Code (TRADE)",
|
|
70
|
+
"description": "This API is for buying a fixed-value Binance Code, which means your Binance Code will be redeemable to a token that is different to the token that you are paying in. If the token you’re paying and the redeemable token are the same, please use the Create Binance Code endpoint.\nYou can use supported crypto currency or fiat token as baseToken to buy Binance Code that is redeemable to your chosen faceToken.\nOnce successfully purchased, the amount of baseToken would be deducted from your funding wallet.\n\nTo get started with, please make sure:\n- You have a Binance account\n- You have passed kyc\n- You have a sufficient balance in your Binance funding wallet\n- You need Enable Withdrawals for the API Key which requests this endpoint.\n\nDaily creation volume: 2 BTC / 24H Daily creation times: 200 Codes / 24H\n\nWeight(IP): 1",
|
|
71
|
+
"routing": {
|
|
72
|
+
"request": {
|
|
73
|
+
"method": "POST",
|
|
74
|
+
"url": "=/sapi/v1/giftcard/buyCode"
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"name": "GET Sapi V 1 Giftcard Buy Code Token Limit",
|
|
80
|
+
"value": "GET Sapi V 1 Giftcard Buy Code Token Limit",
|
|
81
|
+
"action": "Fetch Token Limit (USER_DATA)",
|
|
82
|
+
"description": "This API is to help you verify which tokens are available for you to purchase fixed-value gift cards as mentioned in section 2 and it's limitation.\n\nWeight(IP): 1",
|
|
83
|
+
"routing": {
|
|
84
|
+
"request": {
|
|
85
|
+
"method": "GET",
|
|
86
|
+
"url": "=/sapi/v1/giftcard/buyCode/token-limit"
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
],
|
|
91
|
+
"default": ""
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"displayName": "POST /sapi/v1/giftcard/createCode",
|
|
95
|
+
"name": "operation",
|
|
96
|
+
"type": "notice",
|
|
97
|
+
"typeOptions": {
|
|
98
|
+
"theme": "info"
|
|
99
|
+
},
|
|
100
|
+
"default": "",
|
|
101
|
+
"displayOptions": {
|
|
102
|
+
"show": {
|
|
103
|
+
"resource": [
|
|
104
|
+
"Gift Card"
|
|
105
|
+
],
|
|
106
|
+
"operation": [
|
|
107
|
+
"POST Sapi V 1 Giftcard Create Code"
|
|
108
|
+
]
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"displayName": "Token",
|
|
114
|
+
"name": "token",
|
|
115
|
+
"required": true,
|
|
116
|
+
"description": "The coin type contained in the Binance Code",
|
|
117
|
+
"default": "",
|
|
118
|
+
"type": "string",
|
|
119
|
+
"routing": {
|
|
120
|
+
"send": {
|
|
121
|
+
"type": "query",
|
|
122
|
+
"property": "token",
|
|
123
|
+
"value": "={{ $value }}",
|
|
124
|
+
"propertyInDotNotation": false
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"displayOptions": {
|
|
128
|
+
"show": {
|
|
129
|
+
"resource": [
|
|
130
|
+
"Gift Card"
|
|
131
|
+
],
|
|
132
|
+
"operation": [
|
|
133
|
+
"POST Sapi V 1 Giftcard Create Code"
|
|
134
|
+
]
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"displayName": "Amount",
|
|
140
|
+
"name": "amount",
|
|
141
|
+
"required": true,
|
|
142
|
+
"description": "The amount of the coin",
|
|
143
|
+
"default": 0,
|
|
144
|
+
"type": "number",
|
|
145
|
+
"routing": {
|
|
146
|
+
"send": {
|
|
147
|
+
"type": "query",
|
|
148
|
+
"property": "amount",
|
|
149
|
+
"value": "={{ $value }}",
|
|
150
|
+
"propertyInDotNotation": false
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
"displayOptions": {
|
|
154
|
+
"show": {
|
|
155
|
+
"resource": [
|
|
156
|
+
"Gift Card"
|
|
157
|
+
],
|
|
158
|
+
"operation": [
|
|
159
|
+
"POST Sapi V 1 Giftcard Create Code"
|
|
160
|
+
]
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"displayName": "Recv Window",
|
|
166
|
+
"name": "recvWindow",
|
|
167
|
+
"description": "The value cannot be greater than 60000",
|
|
168
|
+
"default": 5000,
|
|
169
|
+
"type": "number",
|
|
170
|
+
"routing": {
|
|
171
|
+
"send": {
|
|
172
|
+
"type": "query",
|
|
173
|
+
"property": "recvWindow",
|
|
174
|
+
"value": "={{ $value }}",
|
|
175
|
+
"propertyInDotNotation": false
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
"displayOptions": {
|
|
179
|
+
"show": {
|
|
180
|
+
"resource": [
|
|
181
|
+
"Gift Card"
|
|
182
|
+
],
|
|
183
|
+
"operation": [
|
|
184
|
+
"POST Sapi V 1 Giftcard Create Code"
|
|
185
|
+
]
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"displayName": "Timestamp",
|
|
191
|
+
"name": "timestamp",
|
|
192
|
+
"required": true,
|
|
193
|
+
"description": "UTC timestamp in ms",
|
|
194
|
+
"default": 0,
|
|
195
|
+
"type": "number",
|
|
196
|
+
"routing": {
|
|
197
|
+
"send": {
|
|
198
|
+
"type": "query",
|
|
199
|
+
"property": "timestamp",
|
|
200
|
+
"value": "={{ $value }}",
|
|
201
|
+
"propertyInDotNotation": false
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
"displayOptions": {
|
|
205
|
+
"show": {
|
|
206
|
+
"resource": [
|
|
207
|
+
"Gift Card"
|
|
208
|
+
],
|
|
209
|
+
"operation": [
|
|
210
|
+
"POST Sapi V 1 Giftcard Create Code"
|
|
211
|
+
]
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"displayName": "Signature",
|
|
217
|
+
"name": "signature",
|
|
218
|
+
"required": true,
|
|
219
|
+
"description": "Signature",
|
|
220
|
+
"default": "",
|
|
221
|
+
"type": "string",
|
|
222
|
+
"routing": {
|
|
223
|
+
"send": {
|
|
224
|
+
"type": "query",
|
|
225
|
+
"property": "signature",
|
|
226
|
+
"value": "={{ $value }}",
|
|
227
|
+
"propertyInDotNotation": false
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
"displayOptions": {
|
|
231
|
+
"show": {
|
|
232
|
+
"resource": [
|
|
233
|
+
"Gift Card"
|
|
234
|
+
],
|
|
235
|
+
"operation": [
|
|
236
|
+
"POST Sapi V 1 Giftcard Create Code"
|
|
237
|
+
]
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"displayName": "POST /sapi/v1/giftcard/redeemCode",
|
|
243
|
+
"name": "operation",
|
|
244
|
+
"type": "notice",
|
|
245
|
+
"typeOptions": {
|
|
246
|
+
"theme": "info"
|
|
247
|
+
},
|
|
248
|
+
"default": "",
|
|
249
|
+
"displayOptions": {
|
|
250
|
+
"show": {
|
|
251
|
+
"resource": [
|
|
252
|
+
"Gift Card"
|
|
253
|
+
],
|
|
254
|
+
"operation": [
|
|
255
|
+
"POST Sapi V 1 Giftcard Redeem Code"
|
|
256
|
+
]
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"displayName": "Code",
|
|
262
|
+
"name": "code",
|
|
263
|
+
"required": true,
|
|
264
|
+
"description": "Binance Code",
|
|
265
|
+
"default": "",
|
|
266
|
+
"type": "string",
|
|
267
|
+
"routing": {
|
|
268
|
+
"send": {
|
|
269
|
+
"type": "query",
|
|
270
|
+
"property": "code",
|
|
271
|
+
"value": "={{ $value }}",
|
|
272
|
+
"propertyInDotNotation": false
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
"displayOptions": {
|
|
276
|
+
"show": {
|
|
277
|
+
"resource": [
|
|
278
|
+
"Gift Card"
|
|
279
|
+
],
|
|
280
|
+
"operation": [
|
|
281
|
+
"POST Sapi V 1 Giftcard Redeem Code"
|
|
282
|
+
]
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
"displayName": "External Uid",
|
|
288
|
+
"name": "externalUid",
|
|
289
|
+
"description": "Each external unique ID represents a unique user on the partner platform. The function helps you to identify the redemption behavior of different users, such as redemption frequency and amount. It also helps risk and limit control of a single account, such as daily limit on redemption volume, frequency, and incorrect number of entries. This will also prevent a single user account reach the partner's daily redemption limits. We strongly recommend you to use this feature and transfer us the User ID of your users if you have different users redeeming Binance codes on your platform. To protect user data privacy, you may choose to transfer the user id in any desired format (max. 400 characters).",
|
|
290
|
+
"default": "",
|
|
291
|
+
"type": "string",
|
|
292
|
+
"routing": {
|
|
293
|
+
"send": {
|
|
294
|
+
"type": "query",
|
|
295
|
+
"property": "externalUid",
|
|
296
|
+
"value": "={{ $value }}",
|
|
297
|
+
"propertyInDotNotation": false
|
|
298
|
+
}
|
|
299
|
+
},
|
|
300
|
+
"displayOptions": {
|
|
301
|
+
"show": {
|
|
302
|
+
"resource": [
|
|
303
|
+
"Gift Card"
|
|
304
|
+
],
|
|
305
|
+
"operation": [
|
|
306
|
+
"POST Sapi V 1 Giftcard Redeem Code"
|
|
307
|
+
]
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"displayName": "Recv Window",
|
|
313
|
+
"name": "recvWindow",
|
|
314
|
+
"description": "The value cannot be greater than 60000",
|
|
315
|
+
"default": 5000,
|
|
316
|
+
"type": "number",
|
|
317
|
+
"routing": {
|
|
318
|
+
"send": {
|
|
319
|
+
"type": "query",
|
|
320
|
+
"property": "recvWindow",
|
|
321
|
+
"value": "={{ $value }}",
|
|
322
|
+
"propertyInDotNotation": false
|
|
323
|
+
}
|
|
324
|
+
},
|
|
325
|
+
"displayOptions": {
|
|
326
|
+
"show": {
|
|
327
|
+
"resource": [
|
|
328
|
+
"Gift Card"
|
|
329
|
+
],
|
|
330
|
+
"operation": [
|
|
331
|
+
"POST Sapi V 1 Giftcard Redeem Code"
|
|
332
|
+
]
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
"displayName": "Timestamp",
|
|
338
|
+
"name": "timestamp",
|
|
339
|
+
"required": true,
|
|
340
|
+
"description": "UTC timestamp in ms",
|
|
341
|
+
"default": 0,
|
|
342
|
+
"type": "number",
|
|
343
|
+
"routing": {
|
|
344
|
+
"send": {
|
|
345
|
+
"type": "query",
|
|
346
|
+
"property": "timestamp",
|
|
347
|
+
"value": "={{ $value }}",
|
|
348
|
+
"propertyInDotNotation": false
|
|
349
|
+
}
|
|
350
|
+
},
|
|
351
|
+
"displayOptions": {
|
|
352
|
+
"show": {
|
|
353
|
+
"resource": [
|
|
354
|
+
"Gift Card"
|
|
355
|
+
],
|
|
356
|
+
"operation": [
|
|
357
|
+
"POST Sapi V 1 Giftcard Redeem Code"
|
|
358
|
+
]
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
"displayName": "Signature",
|
|
364
|
+
"name": "signature",
|
|
365
|
+
"required": true,
|
|
366
|
+
"description": "Signature",
|
|
367
|
+
"default": "",
|
|
368
|
+
"type": "string",
|
|
369
|
+
"routing": {
|
|
370
|
+
"send": {
|
|
371
|
+
"type": "query",
|
|
372
|
+
"property": "signature",
|
|
373
|
+
"value": "={{ $value }}",
|
|
374
|
+
"propertyInDotNotation": false
|
|
375
|
+
}
|
|
376
|
+
},
|
|
377
|
+
"displayOptions": {
|
|
378
|
+
"show": {
|
|
379
|
+
"resource": [
|
|
380
|
+
"Gift Card"
|
|
381
|
+
],
|
|
382
|
+
"operation": [
|
|
383
|
+
"POST Sapi V 1 Giftcard Redeem Code"
|
|
384
|
+
]
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
"displayName": "GET /sapi/v1/giftcard/verify",
|
|
390
|
+
"name": "operation",
|
|
391
|
+
"type": "notice",
|
|
392
|
+
"typeOptions": {
|
|
393
|
+
"theme": "info"
|
|
394
|
+
},
|
|
395
|
+
"default": "",
|
|
396
|
+
"displayOptions": {
|
|
397
|
+
"show": {
|
|
398
|
+
"resource": [
|
|
399
|
+
"Gift Card"
|
|
400
|
+
],
|
|
401
|
+
"operation": [
|
|
402
|
+
"GET Sapi V 1 Giftcard Verify"
|
|
403
|
+
]
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
"displayName": "Reference No",
|
|
409
|
+
"name": "referenceNo",
|
|
410
|
+
"required": true,
|
|
411
|
+
"description": "reference number",
|
|
412
|
+
"default": "",
|
|
413
|
+
"type": "string",
|
|
414
|
+
"routing": {
|
|
415
|
+
"send": {
|
|
416
|
+
"type": "query",
|
|
417
|
+
"property": "referenceNo",
|
|
418
|
+
"value": "={{ $value }}",
|
|
419
|
+
"propertyInDotNotation": false
|
|
420
|
+
}
|
|
421
|
+
},
|
|
422
|
+
"displayOptions": {
|
|
423
|
+
"show": {
|
|
424
|
+
"resource": [
|
|
425
|
+
"Gift Card"
|
|
426
|
+
],
|
|
427
|
+
"operation": [
|
|
428
|
+
"GET Sapi V 1 Giftcard Verify"
|
|
429
|
+
]
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
"displayName": "Recv Window",
|
|
435
|
+
"name": "recvWindow",
|
|
436
|
+
"description": "The value cannot be greater than 60000",
|
|
437
|
+
"default": 5000,
|
|
438
|
+
"type": "number",
|
|
439
|
+
"routing": {
|
|
440
|
+
"send": {
|
|
441
|
+
"type": "query",
|
|
442
|
+
"property": "recvWindow",
|
|
443
|
+
"value": "={{ $value }}",
|
|
444
|
+
"propertyInDotNotation": false
|
|
445
|
+
}
|
|
446
|
+
},
|
|
447
|
+
"displayOptions": {
|
|
448
|
+
"show": {
|
|
449
|
+
"resource": [
|
|
450
|
+
"Gift Card"
|
|
451
|
+
],
|
|
452
|
+
"operation": [
|
|
453
|
+
"GET Sapi V 1 Giftcard Verify"
|
|
454
|
+
]
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
},
|
|
458
|
+
{
|
|
459
|
+
"displayName": "Timestamp",
|
|
460
|
+
"name": "timestamp",
|
|
461
|
+
"required": true,
|
|
462
|
+
"description": "UTC timestamp in ms",
|
|
463
|
+
"default": 0,
|
|
464
|
+
"type": "number",
|
|
465
|
+
"routing": {
|
|
466
|
+
"send": {
|
|
467
|
+
"type": "query",
|
|
468
|
+
"property": "timestamp",
|
|
469
|
+
"value": "={{ $value }}",
|
|
470
|
+
"propertyInDotNotation": false
|
|
471
|
+
}
|
|
472
|
+
},
|
|
473
|
+
"displayOptions": {
|
|
474
|
+
"show": {
|
|
475
|
+
"resource": [
|
|
476
|
+
"Gift Card"
|
|
477
|
+
],
|
|
478
|
+
"operation": [
|
|
479
|
+
"GET Sapi V 1 Giftcard Verify"
|
|
480
|
+
]
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
},
|
|
484
|
+
{
|
|
485
|
+
"displayName": "Signature",
|
|
486
|
+
"name": "signature",
|
|
487
|
+
"required": true,
|
|
488
|
+
"description": "Signature",
|
|
489
|
+
"default": "",
|
|
490
|
+
"type": "string",
|
|
491
|
+
"routing": {
|
|
492
|
+
"send": {
|
|
493
|
+
"type": "query",
|
|
494
|
+
"property": "signature",
|
|
495
|
+
"value": "={{ $value }}",
|
|
496
|
+
"propertyInDotNotation": false
|
|
497
|
+
}
|
|
498
|
+
},
|
|
499
|
+
"displayOptions": {
|
|
500
|
+
"show": {
|
|
501
|
+
"resource": [
|
|
502
|
+
"Gift Card"
|
|
503
|
+
],
|
|
504
|
+
"operation": [
|
|
505
|
+
"GET Sapi V 1 Giftcard Verify"
|
|
506
|
+
]
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
},
|
|
510
|
+
{
|
|
511
|
+
"displayName": "GET /sapi/v1/giftcard/cryptography/rsa-public-key",
|
|
512
|
+
"name": "operation",
|
|
513
|
+
"type": "notice",
|
|
514
|
+
"typeOptions": {
|
|
515
|
+
"theme": "info"
|
|
516
|
+
},
|
|
517
|
+
"default": "",
|
|
518
|
+
"displayOptions": {
|
|
519
|
+
"show": {
|
|
520
|
+
"resource": [
|
|
521
|
+
"Gift Card"
|
|
522
|
+
],
|
|
523
|
+
"operation": [
|
|
524
|
+
"GET Sapi V 1 Giftcard Cryptography Rsa Public Key"
|
|
525
|
+
]
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
},
|
|
529
|
+
{
|
|
530
|
+
"displayName": "Recv Window",
|
|
531
|
+
"name": "recvWindow",
|
|
532
|
+
"description": "The value cannot be greater than 60000",
|
|
533
|
+
"default": 5000,
|
|
534
|
+
"type": "number",
|
|
535
|
+
"routing": {
|
|
536
|
+
"send": {
|
|
537
|
+
"type": "query",
|
|
538
|
+
"property": "recvWindow",
|
|
539
|
+
"value": "={{ $value }}",
|
|
540
|
+
"propertyInDotNotation": false
|
|
541
|
+
}
|
|
542
|
+
},
|
|
543
|
+
"displayOptions": {
|
|
544
|
+
"show": {
|
|
545
|
+
"resource": [
|
|
546
|
+
"Gift Card"
|
|
547
|
+
],
|
|
548
|
+
"operation": [
|
|
549
|
+
"GET Sapi V 1 Giftcard Cryptography Rsa Public Key"
|
|
550
|
+
]
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
},
|
|
554
|
+
{
|
|
555
|
+
"displayName": "Timestamp",
|
|
556
|
+
"name": "timestamp",
|
|
557
|
+
"required": true,
|
|
558
|
+
"description": "UTC timestamp in ms",
|
|
559
|
+
"default": 0,
|
|
560
|
+
"type": "number",
|
|
561
|
+
"routing": {
|
|
562
|
+
"send": {
|
|
563
|
+
"type": "query",
|
|
564
|
+
"property": "timestamp",
|
|
565
|
+
"value": "={{ $value }}",
|
|
566
|
+
"propertyInDotNotation": false
|
|
567
|
+
}
|
|
568
|
+
},
|
|
569
|
+
"displayOptions": {
|
|
570
|
+
"show": {
|
|
571
|
+
"resource": [
|
|
572
|
+
"Gift Card"
|
|
573
|
+
],
|
|
574
|
+
"operation": [
|
|
575
|
+
"GET Sapi V 1 Giftcard Cryptography Rsa Public Key"
|
|
576
|
+
]
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
},
|
|
580
|
+
{
|
|
581
|
+
"displayName": "Signature",
|
|
582
|
+
"name": "signature",
|
|
583
|
+
"required": true,
|
|
584
|
+
"description": "Signature",
|
|
585
|
+
"default": "",
|
|
586
|
+
"type": "string",
|
|
587
|
+
"routing": {
|
|
588
|
+
"send": {
|
|
589
|
+
"type": "query",
|
|
590
|
+
"property": "signature",
|
|
591
|
+
"value": "={{ $value }}",
|
|
592
|
+
"propertyInDotNotation": false
|
|
593
|
+
}
|
|
594
|
+
},
|
|
595
|
+
"displayOptions": {
|
|
596
|
+
"show": {
|
|
597
|
+
"resource": [
|
|
598
|
+
"Gift Card"
|
|
599
|
+
],
|
|
600
|
+
"operation": [
|
|
601
|
+
"GET Sapi V 1 Giftcard Cryptography Rsa Public Key"
|
|
602
|
+
]
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
},
|
|
606
|
+
{
|
|
607
|
+
"displayName": "POST /sapi/v1/giftcard/buyCode",
|
|
608
|
+
"name": "operation",
|
|
609
|
+
"type": "notice",
|
|
610
|
+
"typeOptions": {
|
|
611
|
+
"theme": "info"
|
|
612
|
+
},
|
|
613
|
+
"default": "",
|
|
614
|
+
"displayOptions": {
|
|
615
|
+
"show": {
|
|
616
|
+
"resource": [
|
|
617
|
+
"Gift Card"
|
|
618
|
+
],
|
|
619
|
+
"operation": [
|
|
620
|
+
"POST Sapi V 1 Giftcard Buy Code"
|
|
621
|
+
]
|
|
622
|
+
}
|
|
623
|
+
}
|
|
624
|
+
},
|
|
625
|
+
{
|
|
626
|
+
"displayName": "Base Token",
|
|
627
|
+
"name": "baseToken",
|
|
628
|
+
"required": true,
|
|
629
|
+
"description": "The token you want to pay, example BUSD",
|
|
630
|
+
"default": "",
|
|
631
|
+
"type": "string",
|
|
632
|
+
"routing": {
|
|
633
|
+
"send": {
|
|
634
|
+
"type": "query",
|
|
635
|
+
"property": "baseToken",
|
|
636
|
+
"value": "={{ $value }}",
|
|
637
|
+
"propertyInDotNotation": false
|
|
638
|
+
}
|
|
639
|
+
},
|
|
640
|
+
"displayOptions": {
|
|
641
|
+
"show": {
|
|
642
|
+
"resource": [
|
|
643
|
+
"Gift Card"
|
|
644
|
+
],
|
|
645
|
+
"operation": [
|
|
646
|
+
"POST Sapi V 1 Giftcard Buy Code"
|
|
647
|
+
]
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
},
|
|
651
|
+
{
|
|
652
|
+
"displayName": "Face Token",
|
|
653
|
+
"name": "faceToken",
|
|
654
|
+
"required": true,
|
|
655
|
+
"description": "The token you want to buy, example BNB. If faceToken = baseToken, it's the same as createCode endpoint.",
|
|
656
|
+
"default": "",
|
|
657
|
+
"type": "string",
|
|
658
|
+
"routing": {
|
|
659
|
+
"send": {
|
|
660
|
+
"type": "query",
|
|
661
|
+
"property": "faceToken",
|
|
662
|
+
"value": "={{ $value }}",
|
|
663
|
+
"propertyInDotNotation": false
|
|
664
|
+
}
|
|
665
|
+
},
|
|
666
|
+
"displayOptions": {
|
|
667
|
+
"show": {
|
|
668
|
+
"resource": [
|
|
669
|
+
"Gift Card"
|
|
670
|
+
],
|
|
671
|
+
"operation": [
|
|
672
|
+
"POST Sapi V 1 Giftcard Buy Code"
|
|
673
|
+
]
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
},
|
|
677
|
+
{
|
|
678
|
+
"displayName": "Base Token Amount",
|
|
679
|
+
"name": "baseTokenAmount",
|
|
680
|
+
"required": true,
|
|
681
|
+
"description": "The base token asset quantity, example 1.002",
|
|
682
|
+
"default": 0,
|
|
683
|
+
"type": "number",
|
|
684
|
+
"routing": {
|
|
685
|
+
"send": {
|
|
686
|
+
"type": "query",
|
|
687
|
+
"property": "baseTokenAmount",
|
|
688
|
+
"value": "={{ $value }}",
|
|
689
|
+
"propertyInDotNotation": false
|
|
690
|
+
}
|
|
691
|
+
},
|
|
692
|
+
"displayOptions": {
|
|
693
|
+
"show": {
|
|
694
|
+
"resource": [
|
|
695
|
+
"Gift Card"
|
|
696
|
+
],
|
|
697
|
+
"operation": [
|
|
698
|
+
"POST Sapi V 1 Giftcard Buy Code"
|
|
699
|
+
]
|
|
700
|
+
}
|
|
701
|
+
}
|
|
702
|
+
},
|
|
703
|
+
{
|
|
704
|
+
"displayName": "Recv Window",
|
|
705
|
+
"name": "recvWindow",
|
|
706
|
+
"description": "The value cannot be greater than 60000",
|
|
707
|
+
"default": 5000,
|
|
708
|
+
"type": "number",
|
|
709
|
+
"routing": {
|
|
710
|
+
"send": {
|
|
711
|
+
"type": "query",
|
|
712
|
+
"property": "recvWindow",
|
|
713
|
+
"value": "={{ $value }}",
|
|
714
|
+
"propertyInDotNotation": false
|
|
715
|
+
}
|
|
716
|
+
},
|
|
717
|
+
"displayOptions": {
|
|
718
|
+
"show": {
|
|
719
|
+
"resource": [
|
|
720
|
+
"Gift Card"
|
|
721
|
+
],
|
|
722
|
+
"operation": [
|
|
723
|
+
"POST Sapi V 1 Giftcard Buy Code"
|
|
724
|
+
]
|
|
725
|
+
}
|
|
726
|
+
}
|
|
727
|
+
},
|
|
728
|
+
{
|
|
729
|
+
"displayName": "Timestamp",
|
|
730
|
+
"name": "timestamp",
|
|
731
|
+
"required": true,
|
|
732
|
+
"description": "UTC timestamp in ms",
|
|
733
|
+
"default": 0,
|
|
734
|
+
"type": "number",
|
|
735
|
+
"routing": {
|
|
736
|
+
"send": {
|
|
737
|
+
"type": "query",
|
|
738
|
+
"property": "timestamp",
|
|
739
|
+
"value": "={{ $value }}",
|
|
740
|
+
"propertyInDotNotation": false
|
|
741
|
+
}
|
|
742
|
+
},
|
|
743
|
+
"displayOptions": {
|
|
744
|
+
"show": {
|
|
745
|
+
"resource": [
|
|
746
|
+
"Gift Card"
|
|
747
|
+
],
|
|
748
|
+
"operation": [
|
|
749
|
+
"POST Sapi V 1 Giftcard Buy Code"
|
|
750
|
+
]
|
|
751
|
+
}
|
|
752
|
+
}
|
|
753
|
+
},
|
|
754
|
+
{
|
|
755
|
+
"displayName": "Signature",
|
|
756
|
+
"name": "signature",
|
|
757
|
+
"required": true,
|
|
758
|
+
"description": "Signature",
|
|
759
|
+
"default": "",
|
|
760
|
+
"type": "string",
|
|
761
|
+
"routing": {
|
|
762
|
+
"send": {
|
|
763
|
+
"type": "query",
|
|
764
|
+
"property": "signature",
|
|
765
|
+
"value": "={{ $value }}",
|
|
766
|
+
"propertyInDotNotation": false
|
|
767
|
+
}
|
|
768
|
+
},
|
|
769
|
+
"displayOptions": {
|
|
770
|
+
"show": {
|
|
771
|
+
"resource": [
|
|
772
|
+
"Gift Card"
|
|
773
|
+
],
|
|
774
|
+
"operation": [
|
|
775
|
+
"POST Sapi V 1 Giftcard Buy Code"
|
|
776
|
+
]
|
|
777
|
+
}
|
|
778
|
+
}
|
|
779
|
+
},
|
|
780
|
+
{
|
|
781
|
+
"displayName": "GET /sapi/v1/giftcard/buyCode/token-limit",
|
|
782
|
+
"name": "operation",
|
|
783
|
+
"type": "notice",
|
|
784
|
+
"typeOptions": {
|
|
785
|
+
"theme": "info"
|
|
786
|
+
},
|
|
787
|
+
"default": "",
|
|
788
|
+
"displayOptions": {
|
|
789
|
+
"show": {
|
|
790
|
+
"resource": [
|
|
791
|
+
"Gift Card"
|
|
792
|
+
],
|
|
793
|
+
"operation": [
|
|
794
|
+
"GET Sapi V 1 Giftcard Buy Code Token Limit"
|
|
795
|
+
]
|
|
796
|
+
}
|
|
797
|
+
}
|
|
798
|
+
},
|
|
799
|
+
{
|
|
800
|
+
"displayName": "Base Token",
|
|
801
|
+
"name": "baseToken",
|
|
802
|
+
"required": true,
|
|
803
|
+
"description": "The token you want to pay, example BUSD",
|
|
804
|
+
"default": "",
|
|
805
|
+
"type": "string",
|
|
806
|
+
"routing": {
|
|
807
|
+
"send": {
|
|
808
|
+
"type": "query",
|
|
809
|
+
"property": "baseToken",
|
|
810
|
+
"value": "={{ $value }}",
|
|
811
|
+
"propertyInDotNotation": false
|
|
812
|
+
}
|
|
813
|
+
},
|
|
814
|
+
"displayOptions": {
|
|
815
|
+
"show": {
|
|
816
|
+
"resource": [
|
|
817
|
+
"Gift Card"
|
|
818
|
+
],
|
|
819
|
+
"operation": [
|
|
820
|
+
"GET Sapi V 1 Giftcard Buy Code Token Limit"
|
|
821
|
+
]
|
|
822
|
+
}
|
|
823
|
+
}
|
|
824
|
+
},
|
|
825
|
+
{
|
|
826
|
+
"displayName": "Recv Window",
|
|
827
|
+
"name": "recvWindow",
|
|
828
|
+
"description": "The value cannot be greater than 60000",
|
|
829
|
+
"default": 5000,
|
|
830
|
+
"type": "number",
|
|
831
|
+
"routing": {
|
|
832
|
+
"send": {
|
|
833
|
+
"type": "query",
|
|
834
|
+
"property": "recvWindow",
|
|
835
|
+
"value": "={{ $value }}",
|
|
836
|
+
"propertyInDotNotation": false
|
|
837
|
+
}
|
|
838
|
+
},
|
|
839
|
+
"displayOptions": {
|
|
840
|
+
"show": {
|
|
841
|
+
"resource": [
|
|
842
|
+
"Gift Card"
|
|
843
|
+
],
|
|
844
|
+
"operation": [
|
|
845
|
+
"GET Sapi V 1 Giftcard Buy Code Token Limit"
|
|
846
|
+
]
|
|
847
|
+
}
|
|
848
|
+
}
|
|
849
|
+
},
|
|
850
|
+
{
|
|
851
|
+
"displayName": "Timestamp",
|
|
852
|
+
"name": "timestamp",
|
|
853
|
+
"required": true,
|
|
854
|
+
"description": "UTC timestamp in ms",
|
|
855
|
+
"default": 0,
|
|
856
|
+
"type": "number",
|
|
857
|
+
"routing": {
|
|
858
|
+
"send": {
|
|
859
|
+
"type": "query",
|
|
860
|
+
"property": "timestamp",
|
|
861
|
+
"value": "={{ $value }}",
|
|
862
|
+
"propertyInDotNotation": false
|
|
863
|
+
}
|
|
864
|
+
},
|
|
865
|
+
"displayOptions": {
|
|
866
|
+
"show": {
|
|
867
|
+
"resource": [
|
|
868
|
+
"Gift Card"
|
|
869
|
+
],
|
|
870
|
+
"operation": [
|
|
871
|
+
"GET Sapi V 1 Giftcard Buy Code Token Limit"
|
|
872
|
+
]
|
|
873
|
+
}
|
|
874
|
+
}
|
|
875
|
+
},
|
|
876
|
+
{
|
|
877
|
+
"displayName": "Signature",
|
|
878
|
+
"name": "signature",
|
|
879
|
+
"required": true,
|
|
880
|
+
"description": "Signature",
|
|
881
|
+
"default": "",
|
|
882
|
+
"type": "string",
|
|
883
|
+
"routing": {
|
|
884
|
+
"send": {
|
|
885
|
+
"type": "query",
|
|
886
|
+
"property": "signature",
|
|
887
|
+
"value": "={{ $value }}",
|
|
888
|
+
"propertyInDotNotation": false
|
|
889
|
+
}
|
|
890
|
+
},
|
|
891
|
+
"displayOptions": {
|
|
892
|
+
"show": {
|
|
893
|
+
"resource": [
|
|
894
|
+
"Gift Card"
|
|
895
|
+
],
|
|
896
|
+
"operation": [
|
|
897
|
+
"GET Sapi V 1 Giftcard Buy Code Token Limit"
|
|
898
|
+
]
|
|
899
|
+
}
|
|
900
|
+
}
|
|
901
|
+
},
|
|
902
|
+
];
|
|
903
|
+
//# sourceMappingURL=index.js.map
|