cURL
curl --request PUT \
--url https://testnet.edel-api.xyz/v2/not-implemented/set-margin-modeimport requests
url = "https://testnet.edel-api.xyz/v2/not-implemented/set-margin-mode"
response = requests.put(url)
print(response.text)const options = {method: 'PUT'};
fetch('https://testnet.edel-api.xyz/v2/not-implemented/set-margin-mode', 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-margin-mode")
.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-margin-mode"
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-margin-mode")
.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
setMarginMode (not implemented)
Not implemented. Margin mode is a perpetual concept; spot has no margin.
NOT IMPLEMENTED. Edel publishes cross margin and has no unified setMarginMode setting. This stub executes no handler, database, engine, Canton, or provider logic.
Method and path: PUT /v2/not-implemented/set-margin-mode
Authentication: none.
Request schema: none.
Response schema: V2NotImplementedResponse.
Error envelope: V2NotImplementedResponse (contains ExternalRestError external-rest-error/v1 as info).
PUT
/
v2
/
not-implemented
/
set-margin-mode
cURL
curl --request PUT \
--url https://testnet.edel-api.xyz/v2/not-implemented/set-margin-modeimport requests
url = "https://testnet.edel-api.xyz/v2/not-implemented/set-margin-mode"
response = requests.put(url)
print(response.text)const options = {method: 'PUT'};
fetch('https://testnet.edel-api.xyz/v2/not-implemented/set-margin-mode', 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-margin-mode")
.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-margin-mode"
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-margin-mode")
.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.