Browse Source

feat: exchange_rate

kotoyuuko 1 week ago
parent
commit
1d208c6747
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/index.ts

+ 1 - 0
src/index.ts

@@ -84,6 +84,7 @@ app.get(
 
       return c.json({
         rates: ratesMap,
+        exchange_rate: ratesMap[to] / ratesMap[from],
         amount: amount,
         target: amount * ratesMap[to] / ratesMap[from]
       }, 200, {