Skip to content

Commit 80cab2b

Browse files
added 'paptrading' header to support demo_environment custom field
1 parent 59b21cc commit 80cab2b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

components/bitget/bitget.app.mjs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,8 +365,9 @@ export default {
365365
secret_key: secretKey,
366366
api_key: apiKey,
367367
secret_passphrase: secretPassphrase,
368+
demo_environment: demoEnvironment
368369
} = this.$auth;
369-
370+
370371
const timestamp = Date.now();
371372

372373
const message = this.preHash({
@@ -376,14 +377,16 @@ export default {
376377
console.log("message!!!", message);
377378

378379
const signature = this.sign(message, secretKey);
380+
const paptrading = demoEnvironment ? "1" : "0";
379381

380382
return {
381383
"ACCESS-KEY": apiKey,
382384
"ACCESS-PASSPHRASE": secretPassphrase,
383385
"ACCESS-TIMESTAMP": timestamp,
384386
"ACCESS-SIGN": signature,
387+
paptrading,
385388
"locale": "en-US",
386-
"Content-Type": "application/json",
389+
"Content-Type": "application/json",
387390
};
388391
},
389392
makeRequest({

0 commit comments

Comments
 (0)