Skip to content

modularize clients #1

@augustin-v

Description

@augustin-v

Implement a client for each interaction requiring a different endpoint interaction. There are multiple endpoints(e.g: https://gamma-api.polymarket.com/ , https://data-api.polymarket.com, clob etc...) to interact with Polymarket's different APIs.

Right now we have one ClobClient struct that calls all of them, it would be nicer to have one struct for each interaction and a "general" client struct. Consider adding an api/ folder with gamma.rs, data.rs, clob.rs etc...

(and test it)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions