Skip to content

A go package for fetching currency rates using XE service

Notifications You must be signed in to change notification settings

A9u/con-currency

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

con-currency

con-currency fetches currency data and save it to database.


Please ensure that you create a 'config.json' file to run the project in its root location.

Config file example →

{

"api_config": {

    "xe_url": "https://xecdapi.xe.com/v1/convert_from.json/",
    
    "xe_account_id": "xe_account_id",
    
    "xe_account_key": "xe_account_key"
    
},

"db_config": {

    "host": "host",
    
    "port": "port",
    
    "user": "user",    
    
    "password":"password", 
    
    "dbname":"dbname", 
    
    "sslmode":"disable"
}, 

"currency_list":[ "USD" ] 

}

Run using command: go run main.go

Benchmark:

took 2 seconds for 162 currencies.

About

A go package for fetching currency rates using XE service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages