Publish quote lines
curl --request POST \
--url https://api.lamarge.trade/v1/quote-lines \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"preparation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"signatures": [
{
"draft_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"signature": "<string>"
}
]
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
preparation_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
signatures: [{draft_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a', signature: '<string>'}]
})
};
fetch('https://api.lamarge.trade/v1/quote-lines', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lamarge.trade/v1/quote-lines"
payload = {
"preparation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"signatures": [
{
"draft_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"signature": "<string>"
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"quote_identity_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"revision": "<string>",
"lines": [
{
"venue": "<string>",
"buy": "<string>",
"sell": "<string>",
"stock": "<string>",
"min_fill": "<string>"
}
]
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true,
"reason": "<string>",
"venue": "<string>",
"step": "permit"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true,
"reason": "<string>",
"venue": "<string>",
"step": "permit"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true,
"reason": "<string>",
"venue": "<string>",
"step": "permit"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true,
"reason": "<string>",
"venue": "<string>",
"step": "permit"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true,
"reason": "<string>",
"venue": "<string>",
"step": "permit"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true,
"reason": "<string>",
"venue": "<string>",
"step": "permit"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true,
"reason": "<string>",
"venue": "<string>",
"step": "permit"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true,
"reason": "<string>",
"venue": "<string>",
"step": "permit"
}
}Quote control
Publish quote lines
Accepts every draft and cancellation of a preparation and replaces the identity’s lines, in one transaction, or none (quotes). STATE_CONFLICT when the lines’ revision moved since the preparation or a draft was accepted with another signature; STALE_QUOTE once the preparation is five minutes old, or unless each draft’s pool is live, its lease current, before valid_until, at the current generation and cancel_epoch; STALE_SEQUENCE unless each draft’s sequence exceeds every published one. A cancellation is an unguarded DELETE /v1/orders/{id}/quotes; retries never restore a cancelled set. Publishing an accepted preparation again returns the lines. Credential scope: quote, and cancel when it cancels.
POST
/
v1
/
quote-lines
Publish quote lines
curl --request POST \
--url https://api.lamarge.trade/v1/quote-lines \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"preparation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"signatures": [
{
"draft_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"signature": "<string>"
}
]
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
preparation_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
signatures: [{draft_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a', signature: '<string>'}]
})
};
fetch('https://api.lamarge.trade/v1/quote-lines', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.lamarge.trade/v1/quote-lines"
payload = {
"preparation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"signatures": [
{
"draft_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"signature": "<string>"
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"quote_identity_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"revision": "<string>",
"lines": [
{
"venue": "<string>",
"buy": "<string>",
"sell": "<string>",
"stock": "<string>",
"min_fill": "<string>"
}
]
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true,
"reason": "<string>",
"venue": "<string>",
"step": "permit"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true,
"reason": "<string>",
"venue": "<string>",
"step": "permit"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true,
"reason": "<string>",
"venue": "<string>",
"step": "permit"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true,
"reason": "<string>",
"venue": "<string>",
"step": "permit"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true,
"reason": "<string>",
"venue": "<string>",
"step": "permit"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true,
"reason": "<string>",
"venue": "<string>",
"step": "permit"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true,
"reason": "<string>",
"venue": "<string>",
"step": "permit"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"retryable": true,
"reason": "<string>",
"venue": "<string>",
"step": "permit"
}
}Authorizations
sessionmakerCredential
Body
application/json