Giter VIP home page Giter VIP logo

currencyexchange.ahk-for-ahkv2's Introduction

CurrencyExchange.ahk-for-ahkv2

Currency Exchange API This repository contains a script written in AutoHotkey (AHK) that utilizes the Currency Exchange API to retrieve exchange rates between different currencies. The script is designed to work with the API provided by https://api.exchangerate.host/.

Prerequisites To use this script, ensure that you have the following:

AutoHotkey installed on your system Required AHK libraries: getExchange.ahk, _jxon.ahk, and WinHttpRequest.ahk Usage Include the necessary AHK libraries at the beginning of your script:

#Include getExchange.ahk
#Include _jxon.ahk
#Include WinHttpRequest.ahk

Create an instance of the Exchange class:

Ex := Exchange()

Get the exchange rate between two currencies:

exchangeRate := Ex.getEx("USD", "EUR")

Display all available country codes:

MsgBox(Ex.getCountryCodes())

Retrieve exchange rates for all countries using a specific currency as the reference:

US := Ex.getAllbyRef("USD")
MsgBox(US.string) ; Displays every country and their exchange rate
MsgBox(US.list["RUB"]) ; Retrieve the exchange rate for a specific country
Class Methods
Exchange.getEx(@currencyA, @currencyB): Retrieves the exchange rate between two currencies and returns it as 1/rate of exchange.

Exchange.getCountryCodes(): Retrieves all available country codes and their corresponding long names. Returns a string containing the country codes and descriptions.

Exchange.getAllbyRef(@cur): Retrieves exchange rates for all countries using the specified currency as the reference. Returns a map with country codes as keys and exchange rates as values.

Note Make sure to replace the @currencyA and @currencyB placeholders in the Exchange.getEx() method with the desired currency codes.

For more information about the Currency Exchange API, refer to the official documentation at https://api.exchangerate.host/.

currencyexchange.ahk-for-ahkv2's People

Contributors

samfisherirl avatar

Stargazers

Peter Abbasi avatar

Watchers

 avatar

Forkers

pa-0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.