{"openapi":"3.0.3","info":{"title":"Exchange Rates (Tanzania)","version":"1.0.0","description":"Bank of Tanzania daily reference exchange rates. TZS per 1 unit of foreign currency. Independent mirror of bot.go.tz, not affiliated with BOT."},"servers":[{"url":"https://www.driftmark.co.tz/exchange-rates"}],"paths":{"/api/latest.json":{"get":{"operationId":"getLatestRates","summary":"Today's BOT rates for all currencies","responses":{"200":{"description":"Latest rates","content":{"application/json":{"schema":{"type":"object","properties":{"date":{"type":"string","format":"date"},"previous_date":{"type":"string","format":"date"},"base":{"type":"string","example":"TZS"},"rates":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","example":"USD"},"name":{"type":"string"},"buying":{"type":"number","nullable":true},"selling":{"type":"number","nullable":true},"mean":{"type":"number"},"change":{"type":"number","nullable":true,"description":"Mean change vs previous BOT date, TZS"}}}}}}}}}}}},"/api/currency/{code}.json":{"get":{"operationId":"getCurrencyHistory","summary":"Full daily history of one currency","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","enum":["AED","ATS","AUD","BIF","BWP","CAD","CHF","CNY","CUC","DKK","DZD","EUR","GBP","GOLD","HKD","IDR","INR","IQD","IRR","JPY","KES","KRW","KWD","MWK","MYR","MZM","NAD","NGN","NLG","NOK","NZD","PKR","QAR","RWF","SAR","SDR","SEK","SGD","TRY","UGX","USD","ZAR","ZMW","ZWD"]}}],"responses":{"200":{"description":"rates: array of [date, buying, selling, mean]"}}}},"/api/history/{year}.json":{"get":{"operationId":"getYearRates","summary":"Every BOT date in one year, all currencies","parameters":[{"name":"year","in":"path","required":true,"schema":{"type":"integer","minimum":1999}}],"responses":{"200":{"description":"rates: {date: {code: [buying, selling, mean]}}"}}}},"/api/currencies.json":{"get":{"operationId":"listCurrencies","summary":"Currency codes, names and date coverage","responses":{"200":{"description":"Currency list"}}}}}}