Clone an RFQ
curl --request POST \
--url https://api.glassmarkets.io/v2/organizations/rfq/{rfq_id}/clone/ \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"asset": "<string>",
"organizations": [
"<string>"
]
}
'import requests
url = "https://api.glassmarkets.io/v2/organizations/rfq/{rfq_id}/clone/"
payload = {
"asset": "<string>",
"organizations": ["<string>"]
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({asset: '<string>', organizations: ['<string>']})
};
fetch('https://api.glassmarkets.io/v2/organizations/rfq/{rfq_id}/clone/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.glassmarkets.io/v2/organizations/rfq/{rfq_id}/clone/"
payload := strings.NewReader("{\n \"asset\": \"<string>\",\n \"organizations\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.glassmarkets.io/v2/organizations/rfq/{rfq_id}/clone/")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"asset\": \"<string>\",\n \"organizations\": [\n \"<string>\"\n ]\n}")
.asString();{
"id": 123,
"asset": "<string>",
"title": "<string>",
"subtitle": "<string>",
"status": "draft",
"due_date": "2023-12-25",
"template": "<unknown>",
"token": {
"symbol": "<string>",
"name": "<string>",
"tracked_asset": "<string>"
},
"target_exchanges": [
{
"id": "<string>",
"name": "<string>",
"tracked_exchange": "<string>",
"market_types": [
"spot"
]
}
],
"created_by": {
"id": 123,
"username": "<string>",
"email": "jsmith@example.com"
},
"draft_owner": {
"browser_id": "<string>",
"account": {
"id": 123,
"username": "<string>",
"email": "jsmith@example.com"
},
"associated_at": "2023-11-07T05:31:56Z"
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"proposals": [
{
"id": 123,
"organization": {
"slug": "<string>",
"name": "<string>"
},
"status": "pending",
"response_data": "<unknown>",
"document": "<unknown>",
"submitted_at": "2023-11-07T05:31:56Z",
"reviewed_at": "2023-11-07T05:31:56Z",
"version": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"permissions": {
"respond": true,
"review": true,
"create_targets": true,
"comment_audiences": [
"<string>"
]
},
"targets_created_at": "2023-11-07T05:31:56Z",
"depth_targets_created_at": "2023-11-07T05:31:56Z"
}
],
"permissions": {
"manage": true,
"publish": true
}
}
RFQ
Clone an RFQ
The owner copies an RFQ's requirements into a new draft titled "<title> (Copy)", and invites the market-maker organizations listed in `organizations` (slugs, admins only). Each one must be a market maker for the asset. `asset`, if sent, must be the original asset.
POST
/
v2
/
organizations
/
rfq
/
{rfq_id}
/
clone
/
Clone an RFQ
curl --request POST \
--url https://api.glassmarkets.io/v2/organizations/rfq/{rfq_id}/clone/ \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"asset": "<string>",
"organizations": [
"<string>"
]
}
'import requests
url = "https://api.glassmarkets.io/v2/organizations/rfq/{rfq_id}/clone/"
payload = {
"asset": "<string>",
"organizations": ["<string>"]
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({asset: '<string>', organizations: ['<string>']})
};
fetch('https://api.glassmarkets.io/v2/organizations/rfq/{rfq_id}/clone/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.glassmarkets.io/v2/organizations/rfq/{rfq_id}/clone/"
payload := strings.NewReader("{\n \"asset\": \"<string>\",\n \"organizations\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.glassmarkets.io/v2/organizations/rfq/{rfq_id}/clone/")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"asset\": \"<string>\",\n \"organizations\": [\n \"<string>\"\n ]\n}")
.asString();{
"id": 123,
"asset": "<string>",
"title": "<string>",
"subtitle": "<string>",
"status": "draft",
"due_date": "2023-12-25",
"template": "<unknown>",
"token": {
"symbol": "<string>",
"name": "<string>",
"tracked_asset": "<string>"
},
"target_exchanges": [
{
"id": "<string>",
"name": "<string>",
"tracked_exchange": "<string>",
"market_types": [
"spot"
]
}
],
"created_by": {
"id": 123,
"username": "<string>",
"email": "jsmith@example.com"
},
"draft_owner": {
"browser_id": "<string>",
"account": {
"id": 123,
"username": "<string>",
"email": "jsmith@example.com"
},
"associated_at": "2023-11-07T05:31:56Z"
},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"proposals": [
{
"id": 123,
"organization": {
"slug": "<string>",
"name": "<string>"
},
"status": "pending",
"response_data": "<unknown>",
"document": "<unknown>",
"submitted_at": "2023-11-07T05:31:56Z",
"reviewed_at": "2023-11-07T05:31:56Z",
"version": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"permissions": {
"respond": true,
"review": true,
"create_targets": true,
"comment_audiences": [
"<string>"
]
},
"targets_created_at": "2023-11-07T05:31:56Z",
"depth_targets_created_at": "2023-11-07T05:31:56Z"
}
],
"permissions": {
"manage": true,
"publish": true
}
}
Authorizations
Body
application/jsonapplication/x-www-form-urlencodedmultipart/form-data

