Hatchfi API Providers
Hatchfi's Provider endpoints can be queried to receive metadata about each integration.
All Providers
To query all of our providers, we have the /providers
endpoint that returns our current providers list, their access requirements, and additional metadata for each one.
curl --request GET \
--url https://api.hatchfi.co/v1/providers
const axios = require("axios").default;
const options = {method: 'GET', url: 'https://api.hatchfi.co/v1/providers'};
axios.request(options).then(function (response) {
console.log(response.data);
}).catch(function (error) {
console.error(error);
});
import http.client
conn = http.client.HTTPSConnection("api.hatchfi.co")
payload = ""
conn.request("GET", "/v1/providers", payload)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import axios from "axios";
const options = {method: 'GET', url: 'https://api.hatchfi.co/v1/providers'};
axios.request(options).then(function (response) {
console.log(response.data);
}).catch(function (error) {
console.error(error);
});
const providers = await hatchfi.providers.getAll();
Here is a snippet of what the return value looks like:
[
{
scopes: [],
currencies: [],
inputs: ["address"],
notes: null,
resourceType: "provider",
name: "solana",
displayName: "Solana",
logo: "https://hatchfi.co/providers/solana.png",
authType: "address",
},
{
scopes: [],
currencies: [],
inputs: ["api_key", "secret_key"],
notes: "Please enter your API and Secret Key.",
resourceType: "provider",
name: "gemini",
displayName: "Gemini",
logo: "https://hatchfi.co/providers/gemini.png",
authType: "token",
},
...
]
Specific Provider
Our single provider endpoint allows you to easily query our API to view a single provider's information. You can pass the provider name into the method to get data specific to that provider.
This endpoint returns the specified provider that you've requested:
curl --request GET \
--url https://api.hatchfi.co/v1/providers/:providerId
const axios = require("axios").default;
const options = {method: 'GET', url: `https://api.hatchfi.co/v1/providers/${<PROVIDER_NAME>}`};
axios.request(options).then(function (response) {
console.log(response.data);
}).catch(function (error) {
console.error(error);
});
import http.client
conn = http.client.HTTPSConnection("api.hatchfi.co")
payload = ""
conn.request("GET", "/v1/providers/:providerId", payload)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
import axios from "axios";
const options = {method: 'GET', url: 'https://api.hatchfi.co/v1/providers/:providerId'};
axios.request(options).then(function (response) {
console.log(response.data);
}).catch(function (error) {
console.error(error);
});
Here is a snippet of what the return value looks like:
{
scopes: [],
currencies: [],
inputs: ["api_key", "secret_key"],
notes: "Please enter your API and Secret Key.",
resourceType: "provider",
name: "gemini",
displayName: "Gemini",
logo: "https://hatchfi.co/providers/gemini.png",
authType: "token",
}
ℹ️ Please note that you must pass in the name value and not displayName. Otherwise, you'll get a 404 response.
Request or Become a Provider
Not seeing a provider you or your users need? Do you want to become a Hatchfi Provider?
Please fill out the Hatchfi Provider Request form. Alternatively, you can use our roadmap to request Providers and other feature requests.
Updated 5 months ago