Session-only Settings
Create a TradingView setup
Create one restricted setup/credential for an exact link and instrument.
POST
https://api.liftx.io
/
integrations
/
bindings
Issue bindings after exact fresh approval
curl --request POST \
--url https://api.liftx.io/integrations/bindings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"operation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"request": {
"name": "<string>",
"kind": "tradingview",
"scopes": [],
"exchange_link_ids": [
4503599627370496
],
"instrument_ids": [
"<string>"
],
"expires_at": 123,
"max_quantity": "<string>",
"source_instance_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"allow_market_terminate": true,
"position_request": {
"action": 1,
"instrument_id": "<string>",
"quantity_asset": "<string>",
"exchange_link_id": 2,
"order_grid_enabled": true,
"sl_enabled": true,
"slx_enabled": true,
"tp_enabled": true,
"open_prices_atomic": [
"<string>"
],
"open_prices_scale": [
15
],
"open_quantities_atomic": [
"<string>"
],
"open_quantities_scale": [
15
],
"trading_currency": "<string>",
"open_slot_ids": [
"<string>"
],
"order_amendments": [
{
"slot_id": "<string>",
"order_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"price_atomic": "<string>",
"price_scale": 15,
"quantity_atomic": "<string>",
"quantity_scale": 15
}
],
"leverage": 16384,
"num_open_orders": 32767,
"sl_step_percent": 123,
"sl_price_rearrangement": true,
"slx_tp_trailing_enabled": true,
"slx_tp_breakeven": 123,
"slx_each_tp_trailing": true,
"slx_sl_trailing_breakeven_enabled": true,
"slx_sl_trailing_breakeven_indent_percent": 123,
"slx_sl_trigger_price_trailing_enabled": true,
"slx_sl_trigger_price_trailing_pl_percent_activation": 123,
"slx_sl_trigger_price_trailing_indent_percent": 123,
"slx_sl_trigger_price_trailing_step": 123,
"tp_price_rearrangement": true,
"tp_grid_enabled": true,
"num_tp_orders": 32767,
"tp_quantity_percents": [
1073741824
],
"tp_pnls": [
123
],
"tp_slot_ids": [
"<string>"
],
"tp_prices_atomic": [
"<string>"
],
"tp_prices_scale": [
15
],
"tp_quantities_atomic": [
"<string>"
],
"tp_quantities_scale": [
15
],
"sl_price_atomic": "<string>",
"sl_price_scale": 15,
"slx_activation_price_atomic": "<string>",
"slx_activation_price_scale": 15,
"slx_price_atomic": "<string>",
"slx_price_scale": 15
}
}
}
'import requests
url = "https://api.liftx.io/integrations/bindings"
payload = {
"operation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"request": {
"name": "<string>",
"kind": "tradingview",
"scopes": [],
"exchange_link_ids": [4503599627370496],
"instrument_ids": ["<string>"],
"expires_at": 123,
"max_quantity": "<string>",
"source_instance_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"allow_market_terminate": True,
"position_request": {
"action": 1,
"instrument_id": "<string>",
"quantity_asset": "<string>",
"exchange_link_id": 2,
"order_grid_enabled": True,
"sl_enabled": True,
"slx_enabled": True,
"tp_enabled": True,
"open_prices_atomic": ["<string>"],
"open_prices_scale": [15],
"open_quantities_atomic": ["<string>"],
"open_quantities_scale": [15],
"trading_currency": "<string>",
"open_slot_ids": ["<string>"],
"order_amendments": [
{
"slot_id": "<string>",
"order_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"price_atomic": "<string>",
"price_scale": 15,
"quantity_atomic": "<string>",
"quantity_scale": 15
}
],
"leverage": 16384,
"num_open_orders": 32767,
"sl_step_percent": 123,
"sl_price_rearrangement": True,
"slx_tp_trailing_enabled": True,
"slx_tp_breakeven": 123,
"slx_each_tp_trailing": True,
"slx_sl_trailing_breakeven_enabled": True,
"slx_sl_trailing_breakeven_indent_percent": 123,
"slx_sl_trigger_price_trailing_enabled": True,
"slx_sl_trigger_price_trailing_pl_percent_activation": 123,
"slx_sl_trigger_price_trailing_indent_percent": 123,
"slx_sl_trigger_price_trailing_step": 123,
"tp_price_rearrangement": True,
"tp_grid_enabled": True,
"num_tp_orders": 32767,
"tp_quantity_percents": [1073741824],
"tp_pnls": [123],
"tp_slot_ids": ["<string>"],
"tp_prices_atomic": ["<string>"],
"tp_prices_scale": [15],
"tp_quantities_atomic": ["<string>"],
"tp_quantities_scale": [15],
"sl_price_atomic": "<string>",
"sl_price_scale": 15,
"slx_activation_price_atomic": "<string>",
"slx_activation_price_scale": 15,
"slx_price_atomic": "<string>",
"slx_price_scale": 15
}
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
operation_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
request: {
name: '<string>',
kind: 'tradingview',
scopes: [],
exchange_link_ids: [4503599627370496],
instrument_ids: ['<string>'],
expires_at: 123,
max_quantity: '<string>',
source_instance_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
allow_market_terminate: true,
position_request: {
action: 1,
instrument_id: '<string>',
quantity_asset: '<string>',
exchange_link_id: 2,
order_grid_enabled: true,
sl_enabled: true,
slx_enabled: true,
tp_enabled: true,
open_prices_atomic: ['<string>'],
open_prices_scale: [15],
open_quantities_atomic: ['<string>'],
open_quantities_scale: [15],
trading_currency: '<string>',
open_slot_ids: ['<string>'],
order_amendments: [
{
slot_id: '<string>',
order_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
price_atomic: '<string>',
price_scale: 15,
quantity_atomic: '<string>',
quantity_scale: 15
}
],
leverage: 16384,
num_open_orders: 32767,
sl_step_percent: 123,
sl_price_rearrangement: true,
slx_tp_trailing_enabled: true,
slx_tp_breakeven: 123,
slx_each_tp_trailing: true,
slx_sl_trailing_breakeven_enabled: true,
slx_sl_trailing_breakeven_indent_percent: 123,
slx_sl_trigger_price_trailing_enabled: true,
slx_sl_trigger_price_trailing_pl_percent_activation: 123,
slx_sl_trigger_price_trailing_indent_percent: 123,
slx_sl_trigger_price_trailing_step: 123,
tp_price_rearrangement: true,
tp_grid_enabled: true,
num_tp_orders: 32767,
tp_quantity_percents: [1073741824],
tp_pnls: [123],
tp_slot_ids: ['<string>'],
tp_prices_atomic: ['<string>'],
tp_prices_scale: [15],
tp_quantities_atomic: ['<string>'],
tp_quantities_scale: [15],
sl_price_atomic: '<string>',
sl_price_scale: 15,
slx_activation_price_atomic: '<string>',
slx_activation_price_scale: 15,
slx_price_atomic: '<string>',
slx_price_scale: 15
}
}
})
};
fetch('https://api.liftx.io/integrations/bindings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"credential": {
"id": "77777777-7777-4777-8777-777777777777",
"integration_id": "88888888-8888-4888-8888-888888888888",
"name": "Demo signal",
"kind": "tradingview",
"prefix": "lx_tradingview_77777777",
"scopes": [
"positions:open",
"positions:terminate"
],
"exchange_link_ids": [
17
],
"instrument_ids": [
"COPY_EXACT_CATALOG_ID"
],
"created_at": 1893456000,
"expires_at": 1893542400,
"revoked_at": null
},
"binding": {
"integration_id": "88888888-8888-4888-8888-888888888888",
"mode": "guided",
"exchange_link_id": 17,
"instrument_id": "COPY_EXACT_CATALOG_ID",
"position_request": {
"action": 1,
"exchange_link_id": 17,
"instrument_id": "COPY_EXACT_CATALOG_ID",
"quantity_asset": "BTC",
"position_side": 1,
"open_order_type": 1,
"open_prices_atomic": [
"70000"
],
"open_prices_scale": [
0
],
"open_quantities_atomic": [
"1"
],
"open_quantities_scale": [
4
],
"order_grid_enabled": false,
"margin_mode": 1,
"leverage": 2,
"sl_enabled": true,
"sl_type": 1,
"sl_step_percent": 2000000,
"sl_price_atomic": "68600",
"sl_price_scale": 0,
"sl_price_rearrangement": true,
"sl_order_type": 2,
"slx_enabled": true,
"slx_tp_trailing_enabled": false,
"slx_each_tp_trailing": false,
"slx_sl_trigger_price_trailing_enabled": true,
"slx_sl_trigger_price_trailing_pl_percent_activation": 1000000,
"slx_sl_trigger_price_trailing_indent_percent": 500000,
"slx_sl_trigger_price_trailing_step": 250000,
"slx_sl_trailing_breakeven_enabled": false,
"tp_enabled": true,
"tp_price_rearrangement": true,
"tp_grid_enabled": false,
"tp_order_type": 1,
"tp_prices_atomic": [
"72100"
],
"tp_prices_scale": [
0
],
"tp_quantities_atomic": [
"0"
],
"tp_quantities_scale": [
0
],
"tp_quantity_percents": [
1000000
],
"tp_pnls": [
3000000
]
},
"max_quantity": "0.001",
"source_instance_id": "55555555-5555-4555-8555-555555555555",
"revision": 1,
"position_mode": "single",
"allow_market_terminate": false
},
"webhook_url": "https://hooks.liftx.io/v1/tradingview/events"
}{
"credential": {
"id": "77777777-7777-4777-8777-777777777777",
"integration_id": "88888888-8888-4888-8888-888888888888",
"name": "Demo signal",
"kind": "tradingview",
"prefix": "lx_tradingview_77777777",
"scopes": [
"positions:open",
"positions:terminate"
],
"exchange_link_ids": [
17
],
"instrument_ids": [
"COPY_EXACT_CATALOG_ID"
],
"created_at": 1893456000,
"expires_at": 1893542400,
"revoked_at": null
},
"binding": {
"integration_id": "88888888-8888-4888-8888-888888888888",
"mode": "guided",
"exchange_link_id": 17,
"instrument_id": "COPY_EXACT_CATALOG_ID",
"position_request": {
"action": 1,
"exchange_link_id": 17,
"instrument_id": "COPY_EXACT_CATALOG_ID",
"quantity_asset": "BTC",
"position_side": 1,
"open_order_type": 1,
"open_prices_atomic": [
"70000"
],
"open_prices_scale": [
0
],
"open_quantities_atomic": [
"1"
],
"open_quantities_scale": [
4
],
"order_grid_enabled": false,
"margin_mode": 1,
"leverage": 2,
"sl_enabled": true,
"sl_type": 1,
"sl_step_percent": 2000000,
"sl_price_atomic": "68600",
"sl_price_scale": 0,
"sl_price_rearrangement": true,
"sl_order_type": 2,
"slx_enabled": true,
"slx_tp_trailing_enabled": false,
"slx_each_tp_trailing": false,
"slx_sl_trigger_price_trailing_enabled": true,
"slx_sl_trigger_price_trailing_pl_percent_activation": 1000000,
"slx_sl_trigger_price_trailing_indent_percent": 500000,
"slx_sl_trigger_price_trailing_step": 250000,
"slx_sl_trailing_breakeven_enabled": false,
"tp_enabled": true,
"tp_price_rearrangement": true,
"tp_grid_enabled": false,
"tp_order_type": 1,
"tp_prices_atomic": [
"72100"
],
"tp_prices_scale": [
0
],
"tp_quantities_atomic": [
"0"
],
"tp_quantities_scale": [
0
],
"tp_quantity_percents": [
1000000
],
"tp_pnls": [
3000000
]
},
"max_quantity": "0.001",
"source_instance_id": "55555555-5555-4555-8555-555555555555",
"revision": 1,
"position_mode": "single",
"allow_market_terminate": false
},
"secret": "ONE_TIME_RESTRICTED_TRADINGVIEW_SECRET",
"webhook_url": "https://hooks.liftx.io/v1/tradingview/events"
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}Preview contract. Production availability remains subject to activation and release qualification. Examples are synthetic; the documentation cannot submit requests.
Authorization
Authenticated Settings session and exact binding approval.Behavior
Create one restricted setup/credential for an exact link and instrument. Explicit position_mode and allow_market_terminate are required. Guided mode saves a complete position_request; advanced signals carry their own request. New issuance returns the one-time secret, binding and webhook_url. This is a session-owned application contract, not an ordinary API-key endpoint. Use Settings → Integrations. The public API base URL does not grant session access.JSON body example
The following shows the request shape, not live credentials or executable market defaults. Replace timestamps only when creating a new reviewed intent; never mutate them on a command retry.{
"operation_id": "66666666-6666-4666-8666-666666666666",
"request": {
"name": "Demo signal",
"kind": "tradingview",
"scopes": [
"positions:open",
"positions:terminate"
],
"exchange_link_ids": [
17
],
"instrument_ids": [
"COPY_EXACT_CATALOG_ID"
],
"expires_at": 1893542400,
"mode": "guided",
"position_request": {
"action": 1,
"exchange_link_id": 17,
"instrument_id": "COPY_EXACT_CATALOG_ID",
"quantity_asset": "BTC",
"position_side": 1,
"open_order_type": 1,
"open_prices_atomic": [
"70000"
],
"open_prices_scale": [
0
],
"open_quantities_atomic": [
"1"
],
"open_quantities_scale": [
4
],
"order_grid_enabled": false,
"margin_mode": 1,
"leverage": 2,
"sl_enabled": true,
"sl_type": 1,
"sl_step_percent": 2000000,
"sl_price_atomic": "68600",
"sl_price_scale": 0,
"sl_price_rearrangement": true,
"sl_order_type": 2,
"slx_enabled": true,
"slx_tp_trailing_enabled": false,
"slx_each_tp_trailing": false,
"slx_sl_trigger_price_trailing_enabled": true,
"slx_sl_trigger_price_trailing_pl_percent_activation": 1000000,
"slx_sl_trigger_price_trailing_indent_percent": 500000,
"slx_sl_trigger_price_trailing_step": 250000,
"slx_sl_trailing_breakeven_enabled": false,
"tp_enabled": true,
"tp_price_rearrangement": true,
"tp_grid_enabled": false,
"tp_order_type": 1,
"tp_prices_atomic": [
"72100"
],
"tp_prices_scale": [
0
],
"tp_quantities_atomic": [
"0"
],
"tp_quantities_scale": [
0
],
"tp_quantity_percents": [
1000000
],
"tp_pnls": [
3000000
]
},
"max_quantity": "0.001",
"source_instance_id": "55555555-5555-4555-8555-555555555555",
"position_mode": "single",
"allow_market_terminate": false
}
}
Response and errors
The generated response schema below is the wire contract. Preserve fixed-point strings, nullable fields and endpoint-specific envelopes. Inspect HTTP status and Content-Type before decoding failures; reused trading routes may return JSON or plain text. Authentication, entitlement and exact link/instrument restrictions apply in addition to endpoint validation. See errors and recovery. Do not automatically repeat a mutation after transport ambiguity. Trading commands reuse the exact immutable identity; credential issuance and template writes require their documented metadata/read reconciliation. Read the related guide for lifecycle, units and recovery semantics.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Response
Committed duplicate; no secret recovery
⌘I
Issue bindings after exact fresh approval
curl --request POST \
--url https://api.liftx.io/integrations/bindings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"operation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"request": {
"name": "<string>",
"kind": "tradingview",
"scopes": [],
"exchange_link_ids": [
4503599627370496
],
"instrument_ids": [
"<string>"
],
"expires_at": 123,
"max_quantity": "<string>",
"source_instance_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"allow_market_terminate": true,
"position_request": {
"action": 1,
"instrument_id": "<string>",
"quantity_asset": "<string>",
"exchange_link_id": 2,
"order_grid_enabled": true,
"sl_enabled": true,
"slx_enabled": true,
"tp_enabled": true,
"open_prices_atomic": [
"<string>"
],
"open_prices_scale": [
15
],
"open_quantities_atomic": [
"<string>"
],
"open_quantities_scale": [
15
],
"trading_currency": "<string>",
"open_slot_ids": [
"<string>"
],
"order_amendments": [
{
"slot_id": "<string>",
"order_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"price_atomic": "<string>",
"price_scale": 15,
"quantity_atomic": "<string>",
"quantity_scale": 15
}
],
"leverage": 16384,
"num_open_orders": 32767,
"sl_step_percent": 123,
"sl_price_rearrangement": true,
"slx_tp_trailing_enabled": true,
"slx_tp_breakeven": 123,
"slx_each_tp_trailing": true,
"slx_sl_trailing_breakeven_enabled": true,
"slx_sl_trailing_breakeven_indent_percent": 123,
"slx_sl_trigger_price_trailing_enabled": true,
"slx_sl_trigger_price_trailing_pl_percent_activation": 123,
"slx_sl_trigger_price_trailing_indent_percent": 123,
"slx_sl_trigger_price_trailing_step": 123,
"tp_price_rearrangement": true,
"tp_grid_enabled": true,
"num_tp_orders": 32767,
"tp_quantity_percents": [
1073741824
],
"tp_pnls": [
123
],
"tp_slot_ids": [
"<string>"
],
"tp_prices_atomic": [
"<string>"
],
"tp_prices_scale": [
15
],
"tp_quantities_atomic": [
"<string>"
],
"tp_quantities_scale": [
15
],
"sl_price_atomic": "<string>",
"sl_price_scale": 15,
"slx_activation_price_atomic": "<string>",
"slx_activation_price_scale": 15,
"slx_price_atomic": "<string>",
"slx_price_scale": 15
}
}
}
'import requests
url = "https://api.liftx.io/integrations/bindings"
payload = {
"operation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"request": {
"name": "<string>",
"kind": "tradingview",
"scopes": [],
"exchange_link_ids": [4503599627370496],
"instrument_ids": ["<string>"],
"expires_at": 123,
"max_quantity": "<string>",
"source_instance_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"allow_market_terminate": True,
"position_request": {
"action": 1,
"instrument_id": "<string>",
"quantity_asset": "<string>",
"exchange_link_id": 2,
"order_grid_enabled": True,
"sl_enabled": True,
"slx_enabled": True,
"tp_enabled": True,
"open_prices_atomic": ["<string>"],
"open_prices_scale": [15],
"open_quantities_atomic": ["<string>"],
"open_quantities_scale": [15],
"trading_currency": "<string>",
"open_slot_ids": ["<string>"],
"order_amendments": [
{
"slot_id": "<string>",
"order_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"price_atomic": "<string>",
"price_scale": 15,
"quantity_atomic": "<string>",
"quantity_scale": 15
}
],
"leverage": 16384,
"num_open_orders": 32767,
"sl_step_percent": 123,
"sl_price_rearrangement": True,
"slx_tp_trailing_enabled": True,
"slx_tp_breakeven": 123,
"slx_each_tp_trailing": True,
"slx_sl_trailing_breakeven_enabled": True,
"slx_sl_trailing_breakeven_indent_percent": 123,
"slx_sl_trigger_price_trailing_enabled": True,
"slx_sl_trigger_price_trailing_pl_percent_activation": 123,
"slx_sl_trigger_price_trailing_indent_percent": 123,
"slx_sl_trigger_price_trailing_step": 123,
"tp_price_rearrangement": True,
"tp_grid_enabled": True,
"num_tp_orders": 32767,
"tp_quantity_percents": [1073741824],
"tp_pnls": [123],
"tp_slot_ids": ["<string>"],
"tp_prices_atomic": ["<string>"],
"tp_prices_scale": [15],
"tp_quantities_atomic": ["<string>"],
"tp_quantities_scale": [15],
"sl_price_atomic": "<string>",
"sl_price_scale": 15,
"slx_activation_price_atomic": "<string>",
"slx_activation_price_scale": 15,
"slx_price_atomic": "<string>",
"slx_price_scale": 15
}
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
operation_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
request: {
name: '<string>',
kind: 'tradingview',
scopes: [],
exchange_link_ids: [4503599627370496],
instrument_ids: ['<string>'],
expires_at: 123,
max_quantity: '<string>',
source_instance_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
allow_market_terminate: true,
position_request: {
action: 1,
instrument_id: '<string>',
quantity_asset: '<string>',
exchange_link_id: 2,
order_grid_enabled: true,
sl_enabled: true,
slx_enabled: true,
tp_enabled: true,
open_prices_atomic: ['<string>'],
open_prices_scale: [15],
open_quantities_atomic: ['<string>'],
open_quantities_scale: [15],
trading_currency: '<string>',
open_slot_ids: ['<string>'],
order_amendments: [
{
slot_id: '<string>',
order_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
price_atomic: '<string>',
price_scale: 15,
quantity_atomic: '<string>',
quantity_scale: 15
}
],
leverage: 16384,
num_open_orders: 32767,
sl_step_percent: 123,
sl_price_rearrangement: true,
slx_tp_trailing_enabled: true,
slx_tp_breakeven: 123,
slx_each_tp_trailing: true,
slx_sl_trailing_breakeven_enabled: true,
slx_sl_trailing_breakeven_indent_percent: 123,
slx_sl_trigger_price_trailing_enabled: true,
slx_sl_trigger_price_trailing_pl_percent_activation: 123,
slx_sl_trigger_price_trailing_indent_percent: 123,
slx_sl_trigger_price_trailing_step: 123,
tp_price_rearrangement: true,
tp_grid_enabled: true,
num_tp_orders: 32767,
tp_quantity_percents: [1073741824],
tp_pnls: [123],
tp_slot_ids: ['<string>'],
tp_prices_atomic: ['<string>'],
tp_prices_scale: [15],
tp_quantities_atomic: ['<string>'],
tp_quantities_scale: [15],
sl_price_atomic: '<string>',
sl_price_scale: 15,
slx_activation_price_atomic: '<string>',
slx_activation_price_scale: 15,
slx_price_atomic: '<string>',
slx_price_scale: 15
}
}
})
};
fetch('https://api.liftx.io/integrations/bindings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"credential": {
"id": "77777777-7777-4777-8777-777777777777",
"integration_id": "88888888-8888-4888-8888-888888888888",
"name": "Demo signal",
"kind": "tradingview",
"prefix": "lx_tradingview_77777777",
"scopes": [
"positions:open",
"positions:terminate"
],
"exchange_link_ids": [
17
],
"instrument_ids": [
"COPY_EXACT_CATALOG_ID"
],
"created_at": 1893456000,
"expires_at": 1893542400,
"revoked_at": null
},
"binding": {
"integration_id": "88888888-8888-4888-8888-888888888888",
"mode": "guided",
"exchange_link_id": 17,
"instrument_id": "COPY_EXACT_CATALOG_ID",
"position_request": {
"action": 1,
"exchange_link_id": 17,
"instrument_id": "COPY_EXACT_CATALOG_ID",
"quantity_asset": "BTC",
"position_side": 1,
"open_order_type": 1,
"open_prices_atomic": [
"70000"
],
"open_prices_scale": [
0
],
"open_quantities_atomic": [
"1"
],
"open_quantities_scale": [
4
],
"order_grid_enabled": false,
"margin_mode": 1,
"leverage": 2,
"sl_enabled": true,
"sl_type": 1,
"sl_step_percent": 2000000,
"sl_price_atomic": "68600",
"sl_price_scale": 0,
"sl_price_rearrangement": true,
"sl_order_type": 2,
"slx_enabled": true,
"slx_tp_trailing_enabled": false,
"slx_each_tp_trailing": false,
"slx_sl_trigger_price_trailing_enabled": true,
"slx_sl_trigger_price_trailing_pl_percent_activation": 1000000,
"slx_sl_trigger_price_trailing_indent_percent": 500000,
"slx_sl_trigger_price_trailing_step": 250000,
"slx_sl_trailing_breakeven_enabled": false,
"tp_enabled": true,
"tp_price_rearrangement": true,
"tp_grid_enabled": false,
"tp_order_type": 1,
"tp_prices_atomic": [
"72100"
],
"tp_prices_scale": [
0
],
"tp_quantities_atomic": [
"0"
],
"tp_quantities_scale": [
0
],
"tp_quantity_percents": [
1000000
],
"tp_pnls": [
3000000
]
},
"max_quantity": "0.001",
"source_instance_id": "55555555-5555-4555-8555-555555555555",
"revision": 1,
"position_mode": "single",
"allow_market_terminate": false
},
"webhook_url": "https://hooks.liftx.io/v1/tradingview/events"
}{
"credential": {
"id": "77777777-7777-4777-8777-777777777777",
"integration_id": "88888888-8888-4888-8888-888888888888",
"name": "Demo signal",
"kind": "tradingview",
"prefix": "lx_tradingview_77777777",
"scopes": [
"positions:open",
"positions:terminate"
],
"exchange_link_ids": [
17
],
"instrument_ids": [
"COPY_EXACT_CATALOG_ID"
],
"created_at": 1893456000,
"expires_at": 1893542400,
"revoked_at": null
},
"binding": {
"integration_id": "88888888-8888-4888-8888-888888888888",
"mode": "guided",
"exchange_link_id": 17,
"instrument_id": "COPY_EXACT_CATALOG_ID",
"position_request": {
"action": 1,
"exchange_link_id": 17,
"instrument_id": "COPY_EXACT_CATALOG_ID",
"quantity_asset": "BTC",
"position_side": 1,
"open_order_type": 1,
"open_prices_atomic": [
"70000"
],
"open_prices_scale": [
0
],
"open_quantities_atomic": [
"1"
],
"open_quantities_scale": [
4
],
"order_grid_enabled": false,
"margin_mode": 1,
"leverage": 2,
"sl_enabled": true,
"sl_type": 1,
"sl_step_percent": 2000000,
"sl_price_atomic": "68600",
"sl_price_scale": 0,
"sl_price_rearrangement": true,
"sl_order_type": 2,
"slx_enabled": true,
"slx_tp_trailing_enabled": false,
"slx_each_tp_trailing": false,
"slx_sl_trigger_price_trailing_enabled": true,
"slx_sl_trigger_price_trailing_pl_percent_activation": 1000000,
"slx_sl_trigger_price_trailing_indent_percent": 500000,
"slx_sl_trigger_price_trailing_step": 250000,
"slx_sl_trailing_breakeven_enabled": false,
"tp_enabled": true,
"tp_price_rearrangement": true,
"tp_grid_enabled": false,
"tp_order_type": 1,
"tp_prices_atomic": [
"72100"
],
"tp_prices_scale": [
0
],
"tp_quantities_atomic": [
"0"
],
"tp_quantities_scale": [
0
],
"tp_quantity_percents": [
1000000
],
"tp_pnls": [
3000000
]
},
"max_quantity": "0.001",
"source_instance_id": "55555555-5555-4555-8555-555555555555",
"revision": 1,
"position_mode": "single",
"allow_market_terminate": false
},
"secret": "ONE_TIME_RESTRICTED_TRADINGVIEW_SECRET",
"webhook_url": "https://hooks.liftx.io/v1/tradingview/events"
}{
"success": false,
"error": {
"code": "<string>",
"message": "<string>"
}
}