{"openapi":"3.1.0","info":{"title":"Apizie","version":"2.0.0","description":"One API key, one envelope, many public data sources."},"servers":[{"url":"https://zieapi.vercel.app"}],"security":[{"ApiKeyAuth":[]}],"paths":{"/v1/finance:sonar-trading/get-convert":{"get":{"operationId":"finance_sonar_trading_get_convert","summary":"Convert a currency amount to multiple other currencies","description":"GET /convert","tags":["finance"],"parameters":[{"name":"from","in":"query","required":true,"description":"Currency you want to convert. For example, EUR","schema":{"type":"string","description":"Currency you want to convert. For example, EUR"}},{"name":"to","in":"query","required":true,"description":"Comma separated list of currencies codes. For example, USD","schema":{"type":"string","description":"Comma separated list of currencies codes. For example, USD"}},{"name":"amount","in":"query","required":false,"description":"This parameter can be used to specify the amount you want to convert. If an amount is not specified then 1 is assumed.","schema":{"type":"string","description":"This parameter can be used to specify the amount you want to convert. If an amount is not specified then 1 is assumed."}},{"name":"decimal_places","in":"query","required":false,"description":"This parameter can be used to specify the number of decimal places included in the output. If an amount is not specified then 12 is assumed.","schema":{"type":"string","description":"This parameter can be used to specify the number of decimal places included in the output. If an amount is not specified then 12 is assumed."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"live"}},"/v1/finance:sonar-trading/get-country-currencies":{"get":{"operationId":"finance_sonar_trading_get_country_currencies","summary":"Return a list of all currencies of countries, available via service","description":"GET /country/currencies","tags":["finance"],"parameters":[{"name":"language","in":"query","required":false,"description":"Parameter used to specify the language in which you would like the currency names to be provided. If not specified, EN is used. Now…","schema":{"type":"string","description":"Parameter used to specify the language in which you would like the currency names to be provided. If not specified, EN is used. Now…"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"live"}},"/v1/finance:sonar-trading/get-digital-currencies":{"get":{"operationId":"finance_sonar_trading_get_digital_currencies","summary":"Return a list of all digital currencies, available via service","description":"GET /digital/currencies","tags":["finance"],"parameters":[{"name":"language","in":"query","required":false,"description":"Parameter used to specify the language in which you would like the currency names to be provided. If not specified, EN is used. Now…","schema":{"type":"string","description":"Parameter used to specify the language in which you would like the currency names to be provided. If not specified, EN is used. Now…"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"live"}},"/v1/finance:sonar-trading/get-history":{"get":{"operationId":"finance_sonar_trading_get_history","summary":"Return a historic rate for a currencies","description":"GET /history","tags":["finance"],"parameters":[{"name":"from","in":"query","required":true,"description":"Currency you want to convert. For example, EUR","schema":{"type":"string","description":"Currency you want to convert. For example, EUR"}},{"name":"to","in":"query","required":true,"description":"Comma separated list of currencies codes. For example, USD","schema":{"type":"string","description":"Comma separated list of currencies codes. For example, USD"}},{"name":"date","in":"query","required":true,"description":"UTC date should be in the form of YYYY-MM-DD, for example, 2018-06-20. Data available from 2018-06-19 only.","schema":{"type":"string","description":"UTC date should be in the form of YYYY-MM-DD, for example, 2018-06-20. Data available from 2018-06-19 only."}},{"name":"amount","in":"query","required":false,"description":"This parameter can be used to specify the amount you want to convert. If an amount is not specified then 1 is assumed.","schema":{"type":"string","description":"This parameter can be used to specify the amount you want to convert. If an amount is not specified then 1 is assumed."}},{"name":"decimal_places","in":"query","required":false,"description":"This parameter can be used to specify the number of decimal places included in the output. If an amount is not specified then 4 is assumed.","schema":{"type":"string","description":"This parameter can be used to specify the number of decimal places included in the output. If an amount is not specified then 4 is assumed."}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":60,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"live"}}},"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key"}},"schemas":{"RunEnvelope":{"type":"object","required":["project","data","timestamp"],"properties":{"project":{"type":"string","example":"dev-tools:hash"},"data":{},"timestamp":{"type":"string","format":"date-time"}}},"ErrorEnvelope":{"type":"object","properties":{"content":{},"message":{"type":"string"},"errors":{"type":"array","items":{}},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"responses":{"Error":{"description":"Invalid key, plan gate, rate limit or upstream failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}}