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));{
"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.
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));{
"created_count": 123,
"target_ids": [
123
],
"errors": [
"<unknown>"
]
}Authorizations
Token-based authentication with required prefix "Token ". Example: "Token 9944b09199c62bcf9418ad846dd0e4bbdfc6ee4b"

