projects
/
pear
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0acc365
)
nasdaq support
author
Alan
<alan@roojs.com>
Thu, 4 Jan 2024 09:04:22 +0000
(17:04 +0800)
committer
Alan
<alan@roojs.com>
Thu, 4 Jan 2024 09:04:22 +0000
(17:04 +0800)
Finance/ISIN.php
patch
|
blob
|
history
diff --git
a/Finance/ISIN.php
b/Finance/ISIN.php
index
9f520a4
..
7ae0066
100644
(file)
--- a/
Finance/ISIN.php
+++ b/
Finance/ISIN.php
@@
-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