Invite a market maker
curl --request POST \
--url https://api.glassmarkets.io/v2/organizations/rfq/{rfq_id}/proposals/ \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"organization": "<string>"
}
'import requests
url = "https://api.glassmarkets.io/v2/organizations/rfq/{rfq_id}/proposals/"
payload = { "organization": "<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({organization: '<string>'})
};
fetch('https://api.glassmarkets.io/v2/organizations/rfq/{rfq_id}/proposals/', 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}/proposals/"
payload := strings.NewReader("{\n \"organization\": \"<string>\"\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}/proposals/")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"organization\": \"<string>\"\n}")
.asString();{
"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"
}RFQ
Invite a market maker
A GlassMarkets admin invites a market-maker organization of the asset (by slug) and gets its new, empty proposal. The RFQ must be draft or active. Inviting the same organization again returns its existing proposal with 200.
POST
/
v2
/
organizations
/
rfq
/
{rfq_id}
/
proposals
/
Invite a market maker
curl --request POST \
--url https://api.glassmarkets.io/v2/organizations/rfq/{rfq_id}/proposals/ \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"organization": "<string>"
}
'import requests
url = "https://api.glassmarkets.io/v2/organizations/rfq/{rfq_id}/proposals/"
payload = { "organization": "<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({organization: '<string>'})
};
fetch('https://api.glassmarkets.io/v2/organizations/rfq/{rfq_id}/proposals/', 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}/proposals/"
payload := strings.NewReader("{\n \"organization\": \"<string>\"\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}/proposals/")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"organization\": \"<string>\"\n}")
.asString();{
"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"
}Authorizations
Body
application/jsonapplication/x-www-form-urlencodedmultipart/form-data
Response
The organization was already invited.

