https://github.com/dozyio/loopring-dex-go-client
https://github.com/dozyio/loopring-dex-go-client
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/dozyio/loopring-dex-go-client
- Owner: dozyio
- Created: 2022-07-23T17:29:54.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-07-23T17:45:45.000Z (about 3 years ago)
- Last Synced: 2025-04-12T17:55:59.568Z (6 months ago)
- Language: PHP
- Size: 550 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Loopring DEX-API-V3 Go Client
Uses openapi-generator-cli to generate a Go API client for Loopring
## Inital Setup & Regenerating Go Client
Clone https://github.com/Loopring/DEX-API-V3run `python3 xdoc.py refresh` to download latest swagger spec
Copy swagger spec to this repo's directory
run `cp ../DEX-API-V3/meta/swagger_en.json .`
run `builder.sh`
## Fixes from DEX-API-V3 swagger
* Replaces numbers "0L" with 0
* Replaces 0 status codes with 200
* Replaces "default": "None" with 0 (integer), "" (string), false (boolean)
* Appends V2, V3 and HebaoV3 to operationId to ensure they are unique## Todo
* A number of response models are broken
* getToken - should return array of tokens, not token
* Most Amm functions don't work at present
* Error codes