Client SDKs
Python
We currently support a Python SDK for working with our API. You’ll find Python SDK
snippets on all endpoint pages, if you want to go deeper into the code then check out these files.
To still the SDK, run the following command in your terminal:
Be sure you are using the latest release. You can find all release versions here - there may be code added to the repo that has not been put into a release yet.
You will commonly work with the QueryBase
class which can be created like this:
The query object is defined as QueryBase
and all properties can be found in this file.
Other classes such as execution results can be found here, detailing operations like ResultsResponse.get_rows()
for getting the data out of a GET request.
If you are trying to load data into a Pandas DataFrame, you can use the following function from the sdk.
Typescript
We have a community client from the Cow Protocol team that can be found here.
To install, run this command
Currently this client only supports the execution based endpoints, and not Query Endpoints or uploads. Here is an example query:
Was this page helpful?