nasdaq support
authorAlan <alan@roojs.com>
Thu, 4 Jan 2024 09:04:22 +0000 (17:04 +0800)
committerAlan <alan@roojs.com>
Thu, 4 Jan 2024 09:04:22 +0000 (17:04 +0800)
Finance/ISIN.php

index 9f520a4..7ae0066 100644 (file)
@@ -11,10 +11,15 @@ class Finance_ISIN
         if(count($ar) != 2) {
             // get isin by exchange
             // support NYSE
-            if(in_array($exchange, array('NYSE'))) {
-                return $this->getExchangeISIN($stockcode, $exchange);
+            switch($exchange) {
+                case 'NYSE':
+                case 'NASDAQ':
+                    return $this->getExchangeISIN($stockcode, $exchange);
+                default:
+                    return false;
+                
             }
-            return false;
+            
         }
 
         // get isin by location