{"id":15740314,"url":"https://github.com/michaeltintiuc/bnm-go","last_synced_at":"2025-10-29T06:08:56.419Z","repository":{"id":57613882,"uuid":"122135801","full_name":"michaeltintiuc/bnm-go","owner":"michaeltintiuc","description":"a CLI tool for fetching official currency rates from the National Bank of Moldova","archived":false,"fork":false,"pushed_at":"2019-07-19T23:17:10.000Z","size":80,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-06T09:22:23.352Z","etag":null,"topics":["bank","bnm","conversion","convert","currency","currency-rates","go","golang","moldova","parser","rates","xml"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/michaeltintiuc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-19T23:52:08.000Z","updated_at":"2023-03-05T02:38:31.000Z","dependencies_parsed_at":"2022-09-10T23:30:51.193Z","dependency_job_id":null,"html_url":"https://github.com/michaeltintiuc/bnm-go","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaeltintiuc%2Fbnm-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaeltintiuc%2Fbnm-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaeltintiuc%2Fbnm-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaeltintiuc%2Fbnm-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michaeltintiuc","download_url":"https://codeload.github.com/michaeltintiuc/bnm-go/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246418702,"owners_count":20773935,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bank","bnm","conversion","convert","currency","currency-rates","go","golang","moldova","parser","rates","xml"],"created_at":"2024-10-04T02:20:45.176Z","updated_at":"2025-10-29T06:08:51.373Z","avatar_url":"https://github.com/michaeltintiuc.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bnm-go\n[![Build Status](https://travis-ci.org/michaeltintiuc/bnm-go.svg?branch=master)](https://travis-ci.org/michaeltintiuc/bnm-go)\n[![Go Report Card](https://goreportcard.com/badge/github.com/michaeltintiuc/bnm-go)](https://goreportcard.com/report/github.com/michaeltintiuc/bnm-go)\n[![codecov](https://codecov.io/gh/michaeltintiuc/bnm-go/branch/master/graph/badge.svg)](https://codecov.io/gh/michaeltintiuc/bnm-go)\n\n\na CLI tool for fetching official currency rates from the [National Bank of Moldova](https://bnm.md/)\n\n## Installation\n\n`go get github.com/michaeltintiuc/bnm-go`\n\n![bnm-go preview](/preview.gif?raw=true \"bnm-go preview\")\n\n## Usage\n\n`bnm-go -h`\n\n```\n  -buy float\n    \tCalculate amount of MDL for each -c (currencies) bought\n  -c value\n    \tComma separated list of currencies to display (default [USD])\n  -d string\n    \tDate format: {dd.mm.yyy} or {yesterday|yday|yd|yda} (default \"24.02.2018\")\n  -f\tSkip reading cache and fetch fresh data\n  -h\tPrint usage\n  -l string\n    \tLanguage: {en|md|ro|ru} (default \"en\")\n  -sell float\n    \tCalculate amount of MDL for each -c (currencies) sold\n  -v\tDisplay verbose output\n  -x\tCross reference rates to the day before -d\n```\n\nProduce verbose output\n\n`bnm-go -v`\n\nFetch fresh data, skipping any cached files\n\n`bnm-go -f`\n\nFetch rates and set output language to Russian (ru)\n\n`bnm-go -l=ru`\n\nFetch USD and EUR rates for _today_\n\n`bnm-go -c=usd,eur`\n\nAlternate way of setting currencies\n\n`bnm-go -c=eur -c=cad -c=nzd`\n\nFetch USD and EUR rates for yesterday\n\n`bnm-go -c=usd,eur -d=yd`\n\nFetch USD and EUR rates for January 31st 20018\n\n`bnm-go -c=usd,eur -d=31.01.2018`\n\nFetch USD and EUR rates and compare with values from yesterday or day prior to `-d`. The output will be display red, green and blue colors for drop, rise and unchanged respectively\n\n`bnm-go -c=usd,eur -x`\n\nCalculate amount of MDL received for selling 100 USD and EUR\n\n`bnm-go -c=usd,eur --sell=100`\n\nCalculate amount of USD and EUR received for 100 MDL\n\n`bnm-go -c=usd,eur --buy=100`\n\n\n## TODO:\n- [X] Caching\n- [X] Argument parsing (date, currency)\n- [X] Currency conversion\n- [X] Cross reference rates from prior date for drop/rise (red/green) display\n- [X] Tests\n- [ ] Docs\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaeltintiuc%2Fbnm-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichaeltintiuc%2Fbnm-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaeltintiuc%2Fbnm-go/lists"}