coinmetro header update
diff --git a/ts/src/coinmetro.ts b/ts/src/coinmetro.ts
index dbd4f14b6630..ed83f4454329 100644
--- a/ts/src/coinmetro.ts
+++ b/ts/src/coinmetro.ts
@@ -1877,11 +1877,11 @@ export default class coinmetro extends Exchange {
         const endpoint = '/' + this.implodeParams (path, params);
         let url = this.urls['api'][api] + endpoint;
         const query = this.urlencode (request);
+        if (headers === undefined) {
+            headers = {};
+        }
+        headers['CCXT'] = 'true';
         if (api === 'private') {
-            if (headers === undefined) {
-                headers = {};
-            }
-            headers['CCXT'] = true;
             if ((this.uid === undefined) && (this.apiKey !== undefined)) {
                 this.uid = this.apiKey;
             }
