Create targets from a proposal
curl --request POST \
--url https://api.glassmarkets.io/v2/organizations/rfq/proposals/{proposal_id}/create-targets/ \
--header 'Authorization: <api-key>'import requests
url = "https://api.glassmarkets.io/v2/organizations/rfq/proposals/{proposal_id}/create-targets/"
headers = {"Authorization": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: '<api-key>'}};
fetch('https://api.glassmarkets.io/v2/organizations/rfq/proposals/{proposal_id}/create-targets/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.glassmarkets.io/v2/organizations/rfq/proposals/{proposal_id}/create-targets/"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "<api-key>")
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/proposals/{proposal_id}/create-targets/")
.header("Authorization", "<api-key>")
.asString();{
"created_count": 123,
"target_ids": [
123
],
"errors": [
"<unknown>"
]
}RFQ
Create targets from a proposal
The RFQ owner turns an accepted proposal into market-making targets for the market maker. Needs project-owner access to the asset. A repeated call creates nothing and returns the existing target_ids.
POST
/
v2
/
organizations
/
rfq
/
proposals
/
{proposal_id}
/
create-targets
/
Create targets from a proposal
curl --request POST \
--url https://api.glassmarkets.io/v2/organizations/rfq/proposals/{proposal_id}/create-targets/ \
--header 'Authorization: <api-key>'import requests
url = "https://api.glassmarkets.io/v2/organizations/rfq/proposals/{proposal_id}/create-targets/"
headers = {"Authorization": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: '<api-key>'}};
fetch('https://api.glassmarkets.io/v2/organizations/rfq/proposals/{proposal_id}/create-targets/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.glassmarkets.io/v2/organizations/rfq/proposals/{proposal_id}/create-targets/"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "<api-key>")
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/proposals/{proposal_id}/create-targets/")
.header("Authorization", "<api-key>")
.asString();{
"created_count": 123,
"target_ids": [
123
],
"errors": [
"<unknown>"
]
}
