https://github.com/netinternet/gotcmb
Exchange Rates Central Bank of Turkey
https://github.com/netinternet/gotcmb
Last synced: 5 months ago
JSON representation
Exchange Rates Central Bank of Turkey
- Host: GitHub
- URL: https://github.com/netinternet/gotcmb
- Owner: netinternet
- License: mit
- Created: 2017-11-09T19:11:05.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-03-31T14:31:42.000Z (about 5 years ago)
- Last Synced: 2024-06-20T09:37:00.148Z (almost 2 years ago)
- Language: Go
- Size: 10.7 KB
- Stars: 18
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gotcmb
Exchange Rates Central Bank of Turkey
## Usage
```
go get -u github.com/netinternet/gotcmb
```
## Example
```go
package main
import (
"fmt"
"gotcmb"
)
func main() {
usd, err := gotcmb.Kur("USD")
if err != nil {
fmt.Println("Error: Could not get TCMB data")
return
}
fmt.Printf("1 Dollar %v Turkey Lira\n", usd)
euro, _ := gotcmb.Kur("EUR")
fmt.Printf("1 Euro %v Turkey Lira\n", euro)
}
```
## Currency Code List
| Currency Code | Description |
| --- | --- |
| USD | 1 Dollar to Turkish Lira |
| EUR | 1 Euro to Turkish Lira |
| GBP | 1 Pound to Turkish Lira |
| AUD | 1 Australia Dollar to Turkish Lira |
| DKK | 1 Denmark Krone to Turkish Lira |
| CHF | 1 Switzerland Franc to Turkish Lira |
| SEK | 1 Sweden Krona to Turkish Lira |
| CAD | 1 Canada Dollar to Turkish Lira |
| KWD | 1 Kuwait Dinar to Turkish Lira |
| NOK | 1 Norway Krone to Turkish Lira |
| SAR | 1 Saudi Arabia Riyal to Turkish Lira |
| JPY | 1 Japanese Yen to Turkish Lira |
| BGN | 1 Bulgaria Lev to Turkish Lira |
| RON | 1 Romania Leu to Turkish Lira |
| RUB | 1 Russia Ruble to Turkish Lira |
| IRR | 1 Iran Rial to Turkish Lira |
| CNY | 1 China Yuan Renminbi to Turkish Lira |
| PKR | 1 Pakistan Rupee to Turkish Lira |