getcurrencyinfo

command module
v0.0.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 8, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

README

getcurrencyinfo

Get Currency Info from TCMB

Usage

❯ getcurrencyinfo --help
Get Currency Info From TCMB

Usage:
  getcurrencyinfo [flags]
  getcurrencyinfo [command]

Available Commands:
  chf         Get requested date and time Frank Price from TCMB
  completion  Generate the autocompletion script for the specified shell
  dolar       Get requested date and time Dolar Price from TCMB
  eur         Get requested date and time Euro Price from TCMB
  euro        Get requested date and time Euro Price from TCMB
  frank       Get requested date and time Frank Price from TCMB
  gbp         Get requested date and time Sterlin Price from TCMB
  gold        Get requested date and time Gold(995, 1000) Price from TCMB
  help        Help about any command
  sterlin     Get requested date and time Sterlin Price from TCMB
  usd         Get requested date and time value from TCMB
  version     Show getcurrencyinfo version information

Flags:
  -h, --help     help for getcurrencyinfo
  -t, --toggle   Help message for toggle

Use "getcurrencyinfo [command] --help" for more information about a command.

Examples

Get all currency prices from TCMB:

❯ getcurrencyinfo

TCMB Piyasalar Genel Müdürlüğü - Döviz Piyasaları Müdürlüğü
Kur Tarih: 05.08.2022
Kur Saat: 15:01

+------------+------------------+----------+
| DOVIZ KODU |  DOVIZ ACIKLAMA  |  TUTAR   |
+------------+------------------+----------+
| EUR        | Euro             | 18,3879₺ |
| USD        | Amerikan Doları  | 17,9727₺ |
| GBP        | İngiliz Sterlini | 21,8189₺ |
| CHF        | İsviçre Frangı   | 18,8117₺ |
| XAU        | Altın 995/1000   | 1032,44₺ |
| XAS        | Altın 1000/1000  | 1037,63₺ |
+------------+------------------+----------+

Get Dolar Price from TCMB:

❯ getcurrencyinfo dolar

TCMB Piyasalar Genel Müdürlüğü - Döviz Piyasaları Müdürlüğü
Kur Tarih: 05.08.2022
Kur Saat: 15:01

+------------+-----------------+----------+
| DOVIZ KODU | DOVIZ ACIKLAMA  |  TUTAR   |
+------------+-----------------+----------+
| USD        | Amerikan Doları | 17,9727₺ |
+------------+-----------------+----------+
❯ getcurrencyinfo usd

TCMB Piyasalar Genel Müdürlüğü - Döviz Piyasaları Müdürlüğü
Kur Tarih: 05.08.2022
Kur Saat: 15:01

+------------+-----------------+----------+
| DOVIZ KODU | DOVIZ ACIKLAMA  |  TUTAR   |
+------------+-----------------+----------+
| USD        | Amerikan Doları | 17,9727₺ |
+------------+-----------------+----------+

Get Euro Price from TCMB:

❯ getcurrencyinfo euro

TCMB Piyasalar Genel Müdürlüğü - Döviz Piyasaları Müdürlüğü
Kur Tarih: 05.08.2022
Kur Saat: 15:01

+------------+----------------+----------+
| DOVIZ KODU | DOVIZ ACIKLAMA |  TUTAR   |
+------------+----------------+----------+
| EUR        | Euro           | 18,3879₺ |
+------------+----------------+----------+
❯ getcurrencyinfo eur

TCMB Piyasalar Genel Müdürlüğü - Döviz Piyasaları Müdürlüğü
Kur Tarih: 05.08.2022
Kur Saat: 15:01

+------------+----------------+----------+
| DOVIZ KODU | DOVIZ ACIKLAMA |  TUTAR   |
+------------+----------------+----------+
| EUR        | Euro           | 18,3879₺ |
+------------+----------------+----------+

Get Frank Price from TCMB:

❯ getcurrencyinfo frank

TCMB Piyasalar Genel Müdürlüğü - Döviz Piyasaları Müdürlüğü
Kur Tarih: 05.08.2022
Kur Saat: 15:01

+------------+----------------+----------+
| DOVIZ KODU | DOVIZ ACIKLAMA |  TUTAR   |
+------------+----------------+----------+
| CHF        | İsviçre Frangı | 18,8117₺ |
+------------+----------------+----------+
❯ getcurrencyinfo chf

TCMB Piyasalar Genel Müdürlüğü - Döviz Piyasaları Müdürlüğü
Kur Tarih: 05.08.2022
Kur Saat: 15:01

+------------+----------------+----------+
| DOVIZ KODU | DOVIZ ACIKLAMA |  TUTAR   |
+------------+----------------+----------+
| CHF        | İsviçre Frangı | 18,8117₺ |
+------------+----------------+----------+

Get Sterlin Price from TCMB:

❯ getcurrencyinfo sterlin

TCMB Piyasalar Genel Müdürlüğü - Döviz Piyasaları Müdürlüğü
Kur Tarih: 05.08.2022
Kur Saat: 15:01

+------------+------------------+----------+
| DOVIZ KODU |  DOVIZ ACIKLAMA  |  TUTAR   |
+------------+------------------+----------+
| GBP        | İngiliz Sterlini | 21,8189₺ |
+------------+------------------+----------+
❯ getcurrencyinfo gbp

TCMB Piyasalar Genel Müdürlüğü - Döviz Piyasaları Müdürlüğü
Kur Tarih: 05.08.2022
Kur Saat: 15:01

+------------+------------------+----------+
| DOVIZ KODU |  DOVIZ ACIKLAMA  |  TUTAR   |
+------------+------------------+----------+
| GBP        | İngiliz Sterlini | 21,8189₺ |
+------------+------------------+----------+

Get Gold Price from TCMB:

❯ getcurrencyinfo gold

TCMB Piyasalar Genel Müdürlüğü - Döviz Piyasaları Müdürlüğü
Kur Tarih: 05.08.2022
Kur Saat: 15:01

+------------+-----------------+----------+
| DOVIZ KODU | DOVIZ ACIKLAMA  |  TUTAR   |
+------------+-----------------+----------+
| XAU        | Altın 995/1000  | 1032,44₺ |
| XAS        | Altın 1000/1000 | 1037,63₺ |
+------------+-----------------+----------+

Current Currency TCMB

TCMB currency and gold price list urls:

https://www.tcmb.gov.tr/reeskontkur/202206/01062022-1300.xml

https://www.tcmb.gov.tr/reeskontkur/202208/01082022-1300.xml

Create Table

Create bash table :

https://github.com/olekukonko/tablewriter

Documentation

Overview

Copyright © 2022 Murat Oğuz muratoguz@gmail.com

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Directories

Path Synopsis
general
cli
web
tcmb

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL