cURL
curl --request PUT \
--url https://testnet.edel-api.xyz/v2/not-implemented/set-leverageimport requests
url = "https://testnet.edel-api.xyz/v2/not-implemented/set-leverage"
response = requests.put(url)
print(response.text)const options = {method: 'PUT'};
fetch('https://testnet.edel-api.xyz/v2/not-implemented/set-leverage', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));use reqwest::blocking::Client;
fn main() -> Result<(), Box<dyn std::error::Error>> {
let response = Client::new()
.put("https://testnet.edel-api.xyz/v2/not-implemented/set-leverage")
.send()?;
println!("{} {}", response.status(), response.text()?);
Ok(())
}
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://testnet.edel-api.xyz/v2/not-implemented/set-leverage"
req, _ := http.NewRequest("PUT", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://testnet.edel-api.xyz/v2/not-implemented/set-leverage")
.asString();{
"name": "NotSupported",
"message": "<string>",
"code": "operation_not_available",
"retryable": false,
"timestamp": 1,
"datetime": "<string>",
"info": {
"version": "external-rest-error/v1",
"requestId": "<string>",
"code": "operation_not_available",
"safeMessage": "<string>",
"retryable": false,
"recoveryActions": [
"do_not_retry"
],
"occurredAtEpochMs": 1,
"featureFlag": "<string>",
"orderOutcome": "not_submitted",
"clientOrderIds": [
"<string>"
],
"reconciliation": "<string>",
"apiKeyRejection": "malformed",
"agentRefusal": "agents_not_admitted_in_environment",
"rejectionGuard": "custodial_signer_environment_not_service_held",
"withdrawalFailure": "spot_disabled",
"feeShareAcceptRefusal": "challenge_missing",
"dependency": "dfns",
"squidRouteRefusal": "route_not_found",
"positionSnapshotRefusal": "position_projection_behind_live",
"setupKeyRefusal": "setup_key_refused"
},
"method": "editOrder"
}Trading API v2
setLeverage (not implemented)
Not implemented. Leverage is a perpetual concept; spot has no leverage.
NOT IMPLEMENTED. Edel accepts leverage on an individual perpetual order and has no unified setLeverage setting. This stub executes no handler, database, engine, Canton, or provider logic.
Method and path: PUT /v2/not-implemented/set-leverage
Authentication: none.
Request schema: none.
Response schema: V2NotImplementedResponse.
Error envelope: V2NotImplementedResponse (contains ExternalRestError external-rest-error/v1 as info).
PUT
/
v2
/
not-implemented
/
set-leverage
cURL
curl --request PUT \
--url https://testnet.edel-api.xyz/v2/not-implemented/set-leverageimport requests
url = "https://testnet.edel-api.xyz/v2/not-implemented/set-leverage"
response = requests.put(url)
print(response.text)const options = {method: 'PUT'};
fetch('https://testnet.edel-api.xyz/v2/not-implemented/set-leverage', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));use reqwest::blocking::Client;
fn main() -> Result<(), Box<dyn std::error::Error>> {
let response = Client::new()
.put("https://testnet.edel-api.xyz/v2/not-implemented/set-leverage")
.send()?;
println!("{} {}", response.status(), response.text()?);
Ok(())
}
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://testnet.edel-api.xyz/v2/not-implemented/set-leverage"
req, _ := http.NewRequest("PUT", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://testnet.edel-api.xyz/v2/not-implemented/set-leverage")
.asString();{
"name": "NotSupported",
"message": "<string>",
"code": "operation_not_available",
"retryable": false,
"timestamp": 1,
"datetime": "<string>",
"info": {
"version": "external-rest-error/v1",
"requestId": "<string>",
"code": "operation_not_available",
"safeMessage": "<string>",
"retryable": false,
"recoveryActions": [
"do_not_retry"
],
"occurredAtEpochMs": 1,
"featureFlag": "<string>",
"orderOutcome": "not_submitted",
"clientOrderIds": [
"<string>"
],
"reconciliation": "<string>",
"apiKeyRejection": "malformed",
"agentRefusal": "agents_not_admitted_in_environment",
"rejectionGuard": "custodial_signer_environment_not_service_held",
"withdrawalFailure": "spot_disabled",
"feeShareAcceptRefusal": "challenge_missing",
"dependency": "dfns",
"squidRouteRefusal": "route_not_found",
"positionSnapshotRefusal": "position_projection_behind_live",
"setupKeyRefusal": "setup_key_refused"
},
"method": "editOrder"
}Response
501 - application/json
NOT IMPLEMENTED. This route always returns the closed not-implemented response.