{"format":"opendoc-document","version":1,"url":"https://docs.upscale.trade/es/developers/operations/getscalpingcoefficient","title":"Obtener el coeficiente de scalping para el ticker","description":"GET /positions/{accountId}/{asset}/scalping-coefficient: Si la cuenta está actualmente dentro de la ventana de scalping en este mercado — el período posterior a un aumento…","kind":"api-operation","locale":"es","inLanguage":"es","translation":{"sourceLanguage":"en","targetLanguage":"es","status":"complete","translatedUnits":18,"totalUnits":18},"lastModified":"2026-09-28T20:05:09.350Z","revision":"3c2fd254d25c5fe88817d5c939afd24407f25862bdfb7b9dc8ab5105728c7abe","section":{"title":"Developers","url":"https://docs.upscale.trade/es/developers"},"representations":{"html":"https://docs.upscale.trade/es/developers/operations/getscalpingcoefficient","markdown":"https://docs.upscale.trade/es/developers/operations/getscalpingcoefficient.md","json":"https://docs.upscale.trade/es/developers/operations/getscalpingcoefficient.json"},"translations":{"en":"https://docs.upscale.trade/developers/operations/getscalpingcoefficient","ru":"https://docs.upscale.trade/ru/developers/operations/getscalpingcoefficient","es":"https://docs.upscale.trade/es/developers/operations/getscalpingcoefficient"},"operation":{"id":"getScalpingCoefficient","method":"GET","path":"/positions/{accountId}/{asset}/scalping-coefficient","summary":"Obtener el coeficiente de scalping para el ticker","description":"Si la cuenta está actualmente dentro de la ventana de scalping en este mercado — el período posterior a un aumento durante el cual el mercado cobra el spread dinámico elevado.\n\n- `amount` es el multiplicador aplicado dentro de la ventana y `amountRegular` el aplicado fuera de ella, ambos fp9.\n- `activeSince` y `activeUntil` se devuelven solo mientras la ventana está activa; sin un aumento reciente, están ausentes y se aplica el multiplicador regular.","tags":["Trading"],"tagLabels":{"Accounts":"Cuentas","Config":"Configuración","Trading":"Trading"},"deprecated":false,"parameters":[{"name":"accountId","location":"path","schema":{"type":"string · uuid","types":["string"],"nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"uuid"},"properties":[],"variants":[]},"type":"string · uuid","required":true,"description":"Identificador de la cuenta del trader. Debe pertenecer al solicitante.","example":"00000000-0000-4000-8000-000000000000"},{"name":"asset","location":"path","schema":{"type":"string","types":["string"],"example":"BTC","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[],"variants":[]},"type":"string","required":true,"description":"Ticker del activo base del mercado, tal como lo devuelve `GET /v2/markets`.","example":"BTC"}],"bodies":[],"responses":[{"status":"401","description":"No autorizado","properties":[],"headers":[]},{"status":"403","description":"La cuenta pertenece a otro usuario (`account_access_denied`), o la solicitud se autentica con una clave de API mientras `api_trading` está deshabilitado en la cuenta (`api_trading_not_enabled`).","properties":[],"headers":[]},{"status":"404","description":"No hay ninguna cuenta con este identificador, o no hay ningún mercado para este ticker.","properties":[],"headers":[]},{"status":"429","description":"Se superó el límite de velocidad de la clave de API (`api_key_rate_limit_exceeded`). `Retry-After` indica cuándo volver; el cuerpo incluye el bucket (`read` / `write`), la ventana que se activó, su límite y `retryAt`.","properties":[],"headers":[]},{"status":"default","description":"Respuesta","mediaType":"application/json","properties":[{"name":"activeSince","type":"string · date-time","required":false,"description":"Start of the running scalping window — the last increase on this market. Absent when no increase happened inside the window.","example":"2026-05-01T12:30:00.000Z","schema":{"type":"string · date-time","types":["string"],"description":"Start of the running scalping window — the last increase on this market. Absent when no increase happened inside the window.","example":"2026-05-01T12:30:00.000Z","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"date-time"},"properties":[],"variants":[]}},{"name":"activeUntil","type":"string · date-time","required":false,"description":"End of the running scalping window. Absent together with `activeSince`.","example":"2026-05-01T12:30:00.000Z","schema":{"type":"string · date-time","types":["string"],"description":"End of the running scalping window. Absent together with `activeSince`.","example":"2026-05-01T12:30:00.000Z","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"date-time"},"properties":[],"variants":[]}},{"name":"amount","type":"string · int32","required":true,"description":"Spread multiplier charged while the window is running, fp9 raw (`2000000000` = 2x).","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Spread multiplier charged while the window is running, fp9 raw (`2000000000` = 2x).","example":"1000000000","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"amountRegular","type":"string · int32","required":true,"description":"Spread multiplier charged outside the window, fp9 raw (`1000000000` = 1x).","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Spread multiplier charged outside the window, fp9 raw (`1000000000` = 1x).","example":"1000000000","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}}],"schema":{"type":"object","types":["object"],"reference":"#/components/schemas/ScalpingCoefficientResponse","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{},"properties":[{"name":"activeSince","type":"string · date-time","required":false,"description":"Inicio de la ventana de scalping activa — el último aumento en este mercado. Ausente cuando no ocurrió ningún aumento dentro de la ventana.","example":"2026-05-01T12:30:00.000Z","schema":{"type":"string · date-time","types":["string"],"description":"Inicio de la ventana de scalping activa — el último aumento en este mercado. Ausente cuando no ocurrió ningún aumento dentro de la ventana.","example":"2026-05-01T12:30:00.000Z","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"date-time"},"properties":[],"variants":[]}},{"name":"activeUntil","type":"string · date-time","required":false,"description":"Fin de la ventana de scalping activa. Ausente junto con `activeSince`.","example":"2026-05-01T12:30:00.000Z","schema":{"type":"string · date-time","types":["string"],"description":"Fin de la ventana de scalping activa. Ausente junto con `activeSince`.","example":"2026-05-01T12:30:00.000Z","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"date-time"},"properties":[],"variants":[]}},{"name":"amount","type":"string · int32","required":true,"description":"Multiplicador de spread aplicado mientras la ventana está en ejecución, fp9 sin procesar (`2000000000` = 2x).","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Multiplicador de spread aplicado mientras la ventana está en ejecución, fp9 sin procesar (`2000000000` = 2x).","example":"1000000000","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}},{"name":"amountRegular","type":"string · int32","required":true,"description":"Multiplicador de spread aplicado fuera de la ventana, fp9 sin procesar (`1000000000` = 1x).","example":"1000000000","schema":{"type":"string · int32","types":["string"],"description":"Multiplicador de spread aplicado fuera de la ventana, fp9 sin procesar (`1000000000` = 1x).","example":"1000000000","nullable":false,"readOnly":false,"writeOnly":false,"constraints":{"format":"int32","pattern":"^(?:-?[1-9][0-9]*|0)$"},"properties":[],"variants":[]}}],"variants":[]},"example":"{\n  \"activeSince\": \"2026-05-01T12:30:00.000Z\",\n  \"activeUntil\": \"2026-05-01T12:30:00.000Z\",\n  \"amount\": \"1000000000\",\n  \"amountRegular\": \"1000000000\"\n}","headers":[]}],"security":[{"name":"bearer","type":"http · bearer","description":"Clave de API personal, con el prefijo `usk_`.","required":true,"scopes":[]}],"codeSamples":[{"label":"cURL","language":"bash","source":"curl --request GET 'https://api.upscale.trade/positions/{accountId}/{asset}/scalping-coefficient' \\\n  --header 'Accept: application/json' \\\n  --header 'Authorization: Bearer YOUR_API_KEY'"},{"label":"JavaScript","language":"javascript","source":"const response = await fetch(\"https://api.upscale.trade/positions/{accountId}/{asset}/scalping-coefficient\", {\n  method: \"GET\",\n  headers: {\n    \"Accept\": \"application/json\",\n    \"Authorization\": \"Bearer YOUR_API_KEY\"\n  },\n});\nconsole.log(response.status, await response.text());"},{"label":"Python","language":"python","source":"import requests\n\nresponse = requests.request(\n    \"GET\",\n    \"https://api.upscale.trade/positions/{accountId}/{asset}/scalping-coefficient\",\n    headers={\"Accept\":\"application/json\",\"Authorization\":\"Bearer YOUR_API_KEY\"},\n    timeout=30,\n)\nprint(response.status_code, response.text)"}]},"breadcrumbs":[{"title":"Qué es el prop trading","url":"https://docs.upscale.trade/es"},{"title":"Developers","url":"https://docs.upscale.trade/es/developers"},{"title":"Obtener el coeficiente de scalping para el ticker","url":"https://docs.upscale.trade/es/developers/operations/getscalpingcoefficient"}],"headings":[{"depth":2,"id":"authorization","title":"Autorización"},{"depth":2,"id":"parameters","title":"Parámetros"},{"depth":2,"id":"examples","title":"Ejemplos"},{"depth":2,"id":"responses","title":"Respuestas"}],"markdown":"# Obtener el coeficiente de scalping para el ticker\n\n`GET /positions/{accountId}/{asset}/scalping-coefficient`\n\nSi la cuenta está actualmente dentro de la ventana de scalping en este mercado — el período posterior a un aumento durante el cual el mercado cobra el spread dinámico elevado.\n\n- `amount` es el multiplicador aplicado dentro de la ventana y `amountRegular` el aplicado fuera de ella, ambos fp9.\n- `activeSince` y `activeUntil` se devuelven solo mientras la ventana está activa; sin un aumento reciente, están ausentes y se aplica el multiplicador regular.\n\n<a id=\"authorization\"></a>\n\n## Autorización\n\nbearer: http · bearer (obligatorio). Clave de API personal, con el prefijo `usk_`.\n\n<a id=\"parameters\"></a>\n\n## Parámetros\n\n- path: accountId (string · uuid; obligatorio). Identificador de la cuenta del trader. Debe pertenecer al solicitante.\n\nTipo: string · uuid\n\nformat: uuid\n\n- path: asset (string; obligatorio). Ticker del activo base del mercado, tal como lo devuelve `GET /v2/markets`.\n\nTipo: string\n\nEjemplo: \"BTC\"\n\n<a id=\"example-curl\"></a>\n\n## Ejemplo · cURL\n\n```bash\ncurl --request GET 'https://api.upscale.trade/positions/{accountId}/{asset}/scalping-coefficient' \\\n  --header 'Accept: application/json' \\\n  --header 'Authorization: Bearer YOUR_API_KEY'\n```\n\n<a id=\"example-javascript\"></a>\n\n## Ejemplo · JavaScript\n\n```javascript\nconst response = await fetch(\"https://api.upscale.trade/positions/{accountId}/{asset}/scalping-coefficient\", {\n  method: \"GET\",\n  headers: {\n    \"Accept\": \"application/json\",\n    \"Authorization\": \"Bearer YOUR_API_KEY\"\n  },\n});\nconsole.log(response.status, await response.text());\n```\n\n<a id=\"example-python\"></a>\n\n## Ejemplo · Python\n\n```python\nimport requests\n\nresponse = requests.request(\n    \"GET\",\n    \"https://api.upscale.trade/positions/{accountId}/{asset}/scalping-coefficient\",\n    headers={\"Accept\":\"application/json\",\"Authorization\":\"Bearer YOUR_API_KEY\"},\n    timeout=30,\n)\nprint(response.status_code, response.text)\n```\n\n<a id=\"response-401\"></a>\n\n## Respuesta 401\n\n**401**  — No autorizado\n\n<a id=\"response-403\"></a>\n\n## Respuesta 403\n\n**403**  — La cuenta pertenece a otro usuario (`account_access_denied`), o la solicitud se autentica con una clave de API mientras `api_trading` está deshabilitado en la cuenta (`api_trading_not_enabled`).\n\n<a id=\"response-404\"></a>\n\n## Respuesta 404\n\n**404**  — No hay ninguna cuenta con este identificador, o no hay ningún mercado para este ticker.\n\n<a id=\"response-429\"></a>\n\n## Respuesta 429\n\n**429**  — Se superó el límite de velocidad de la clave de API (`api_key_rate_limit_exceeded`). `Retry-After` indica cuándo volver; el cuerpo incluye el bucket (`read` / `write`), la ventana que se activó, su límite y `retryAt`.\n\n<a id=\"response-default-scalpingcoefficientresponse\"></a>\n\n## Respuesta default · ScalpingCoefficientResponse\n\n**default** application/json — Respuesta\n\nEsquema: ScalpingCoefficientResponse\n\nTipo: object\n\nCampos obligatorios: amount, amountRegular\n\nTipos de campos obligatorios: amount (string · int32; obligatorio), amountRegular (string · int32; obligatorio)\n\n- activeSince (string · date-time; opcional)\n\nactiveSince ejemplo: 2026-05-01T12:30:00.000Z\n\nactiveSince.Tipo: string · date-time\n\nactiveSince.Inicio de la ventana de scalping activa — el último aumento en este mercado. Ausente cuando no ocurrió ningún aumento dentro de la ventana.\n\nactiveSince.format: date-time\n\n- activeUntil (string · date-time; opcional)\n\nactiveUntil ejemplo: 2026-05-01T12:30:00.000Z\n\nactiveUntil.Tipo: string · date-time\n\nactiveUntil.Fin de la ventana de scalping activa. Ausente junto con `activeSince`.\n\nactiveUntil.format: date-time\n\n- amount (string · int32; obligatorio)\n\namount ejemplo: 1000000000\n\namount.Tipo: string · int32\n\namount.Multiplicador de spread aplicado mientras la ventana está en ejecución, fp9 sin procesar (`2000000000` = 2x).\n\namount.format: int32\n\namount.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- amountRegular (string · int32; obligatorio)\n\namountRegular ejemplo: 1000000000\n\namountRegular.Tipo: string · int32\n\namountRegular.Multiplicador de spread aplicado fuera de la ventana, fp9 sin procesar (`1000000000` = 1x).\n\namountRegular.format: int32\n\namountRegular.pattern: ^(?:-?[1-9][0-9]*|0)$\n\nEjemplo\n\n\n\n```json\n{\n  \"activeSince\": \"2026-05-01T12:30:00.000Z\",\n  \"activeUntil\": \"2026-05-01T12:30:00.000Z\",\n  \"amount\": \"1000000000\",\n  \"amountRegular\": \"1000000000\"\n}\n```","text":"Obtener el coeficiente de scalping para el ticker Si la cuenta está actualmente dentro de la ventana de scalping en este mercado — el período posterior a un aumento durante el cual el mercado cobra el spread dinámico elevado. - `amount` es el multiplicador aplicado dentro de la ventana y `amountRegular` el aplicado fuera de ella, ambos fp9. - `activeSince` y `activeUntil` se devuelven solo mientras la ventana está activa; sin un aumento reciente, están ausentes y se aplica el multiplicador regular. GET /positions/{accountId}/{asset}/scalping-coefficient Trading accountId Identificador de la cuenta del trader. Debe pertenecer al solicitante. string · uuid asset Ticker del activo base del mercado, tal como lo devuelve `GET /v2/markets`. string 401 No autorizado 403 La cuenta pertenece a otro usuario (`account_access_denied`), o la solicitud se autentica con una clave de API mientras `api_trading` está deshabilitado en la cuenta (`api_trading_not_enabled`). 404 No hay ninguna cuenta con este identificador, o no hay ningún mercado para este ticker. 429 Se superó el límite de velocidad de la clave de API (`api_key_rate_limit_exceeded`). `Retry-After` indica cuándo volver; el cuerpo incluye el bucket (`read` / `write`), la ventana que se activó, su límite y `retryAt`. default Respuesta activeSince Start of the running scalping window — the last increase on this market. Absent when no increase happened inside the window. string · date-time activeUntil End of the running scalping window. Absent together with `activeSince`. string · date-time amount Spread multiplier charged while the window is running, fp9 raw (`2000000000` = 2x). string · int32 amountRegular Spread multiplier charged outside the window, fp9 raw (`1000000000` = 1x). string · int32","api":{"title":"API pública de Upscale","version":"d796ac9","documentation":"https://docs.upscale.trade/es/developers","playgroundServer":"https://api.upscale.trade"}}