Ruby-Forex-quotes는 실시간 외환 인용문을 가져 오는 루비 라이브러리입니다.
gem 'forex_quotes', github: 'testdouble/ruby-forex-quotes', branch: 'main'
client = ForexDataClient . new ( 'YOUR_API_KEY' )
client . get_rate ( from : 'USD' , to : 'JPY' )
# { :JPY => 1049.31 }
client . convert ( from : 'USD' , to : 'JPY' , amount : 100 )
# { :JPY => 14900.45 }
이 라이브러리는 MIT 라이센스에 따라 보증없이 제공됩니다.