/synthetic/addInstrument
Add new Synthetic Instrument
POST /api/synthetic/addInstrument
{
"legs": [
{
"name": "BTC-USD"
},
{
"name": "USDT-USD"
}
]
}Parameter
Type
Description
legs.name
string
Name of Direct Instrument that forms Synthetic Instrument
{
"content": {
"id": 1,
"name": "BTC-USD:USDT-USD",
"legs": [
{
"name": "BTC-USD",
"inverted": false
},
{
"name": "USDT-USD",
"inverted": true
}
]
},
"error": 0
}Parameter
Type
Description
content.id
number
Id of a newly created Synthetic Instrument
content.name
string
Technical Name of a newly created Synthetic Instrument
content.legs.name
string
Name of Direct Instrument that forms Synthetic Instrument
content.legs.inverted
boolean
Flag that highlights if Direct Instrument is inverted within specified Synthetic Instrument. Defines how internal calculations related to Synthetic Instrument are made
Any unsuccessful response
Attribute
Type
Description
errorDescription
string array
List of strings describing observed errors
Last updated