Exchange API
Users have the freedom to tailor their trading environment by allowing or removing various exchanges and asset pairs thanks to this feature's availability. Additionally, API endpoints provide the capability to receive a list of exchanges that are accessible.
Users may finally request data regarding disabled exchanges and pairings, which ensures that they have a complete awareness of the trading ecosystem in which they operate.
The Exchange API component of the Orion protocol provides a collection of endpoints for processing and managing exchanges and asset pairs:
POST /api/v1/exchange/toggle/exchange
- This endpoint activates a deactivated exchange. The 'exchange' route argument specifies the exact exchange to be enabled. This feature allows users to reactivate exchanges as required.
DELETE /api/v1/exchange/toggle/exchange
- This endpoint disables an active exchange. The 'exchange' path parameter is used to define which exchange should be deactivated. This functionality allows users to pause exchanges as needed.
POST /api/v1/exchange/toggle/exchange/assetPair
- This endpoint activates a disabled asset pair on a given exchange. The 'exchange' and 'assetPair' path arguments provide the exchange and asset pair to be enabled, respectively.
DELETE /api/v1/exchange/toggle/exchange/assetPair
- This endpoint disables an active asset pair on a given exchange. The 'exchange' and 'assetPair' path arguments specify the exchange and asset pair to be deactivated, respectively.
GET /api/v1/exchange/list
- This endpoint returns a list of all accessible exchangers. Users may use this to compare the many trade exchanges accessible.
GET /api/v1/exchange/disabled
- This API returns a list of deactivated exchanges and asset pairs. This helps users to keep track of which exchanges and asset pairs are presently inactive.
The Exchange API area allows customers to adapt their trading environment to match their unique needs and preferences by allowing them to modify the availability of exchanges and asset pairs.
Last updated