File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff 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 ( {
You can’t perform that action at this time.
0 commit comments