want to use hypen – in symbol
-
First off, excellent plugin.. thank you very much for sharing..
The alphavantage api allows for the symbol EUR-USD for the forex pair Euror/Dollar and BTC-USD for bitcoin/dollar.
Your plugin removes the – when entered as symbol=”BTC-USD”. I did modify that line: 1112 in stock-quote.php
public function sanitize_symbols( $symbols ) {
$symbols = preg_replace( ‘/[^0-9A-Z\=\.\,\-\:\^]+/’, ”, strtoupper( $symbols ) );To allow the hyphen and all works great. Request is that you add that into the plugin.
Second request is that symbol needs to be uppercase so it would be great if you force that in the shortcode and on the other side, your parameter values to your attributes need to be lowercase, again it would make the plugin easier if that was forced.
With the change I was able to make the following page: https://mrtopstep.com/top-10-traded-cryptocurrencies
Thank you for your work sir.
- The topic ‘want to use hypen – in symbol’ is closed to new replies.