{"format":"opendoc-document","version":1,"url":"https://docs.upscale.trade/developers/operations/getscalpingcoefficient","title":"Get scalping coefficient for ticker","description":"GET /positions/{accountId}/{asset}/scalping-coefficient: Whether the account is currently inside the scalping window on this market — the period after an increase during which…","kind":"api-operation","locale":"en","inLanguage":"en","lastModified":"2026-09-28T19:22:49.100Z","revision":"25c86f549328fcff320805d5945f4c9804e3927950d831e601d6e3b18c170f66","section":{"title":"Developers","url":"https://docs.upscale.trade/developers"},"representations":{"html":"https://docs.upscale.trade/developers/operations/getscalpingcoefficient","markdown":"https://docs.upscale.trade/developers/operations/getscalpingcoefficient.md","json":"https://docs.upscale.trade/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":"Get scalping coefficient for ticker","description":"Whether the account is currently inside the scalping window on this market — the period after an increase during which the market charges the\nelevated dynamic spread.\n\n- `amount` is the multiplier applied inside the window and `amountRegular` the one applied outside it, both fp9.\n- `activeSince` and `activeUntil` are returned only while the window is running; without a recent increase they are absent and the regular\n  multiplier applies.","tags":["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":"Trader account identifier. Must belong to the caller.","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":"Base asset ticker of the market, as returned by `GET /v2/markets`.","example":"BTC"}],"bodies":[],"responses":[{"status":"401","description":"Unauthorized","properties":[],"headers":[]},{"status":"403","description":"The account belongs to another user (`account_access_denied`), or the request is authenticated with an API key while `api_trading` is disabled on the account (`api_trading_not_enabled`).","properties":[],"headers":[]},{"status":"404","description":"No account with this identifier, or no market for this ticker.","properties":[],"headers":[]},{"status":"429","description":"Rate limit of the API key exceeded (`api_key_rate_limit_exceeded`). `Retry-After` says when to come back; the body carries the bucket (`read` / `write`), the window that tripped, its limit and `retryAt`.","properties":[],"headers":[]},{"status":"default","description":"Response","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":"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":[]}}],"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":"Personal API key, prefixed with `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":"What is Prop Trading","url":"https://docs.upscale.trade"},{"title":"Developers","url":"https://docs.upscale.trade/developers"},{"title":"Get scalping coefficient for ticker","url":"https://docs.upscale.trade/developers/operations/getscalpingcoefficient"}],"headings":[{"depth":2,"id":"authorization","title":"Authorization"},{"depth":2,"id":"parameters","title":"Parameters"},{"depth":2,"id":"examples","title":"Examples"},{"depth":2,"id":"responses","title":"Responses"}],"markdown":"# Get scalping coefficient for ticker\n\n`GET /positions/{accountId}/{asset}/scalping-coefficient`\n\nWhether the account is currently inside the scalping window on this market — the period after an increase during which the market charges the\nelevated dynamic spread.\n\n- `amount` is the multiplier applied inside the window and `amountRegular` the one applied outside it, both fp9.\n- `activeSince` and `activeUntil` are returned only while the window is running; without a recent increase they are absent and the regular\n  multiplier applies.\n\n## Authorization\n\nbearer: http · bearer (required). Personal API key, prefixed with `usk_`.\n\n## Parameters\n\n- path: accountId (string · uuid; required). Trader account identifier. Must belong to the caller.\n\nType: string · uuid\n\nformat: uuid\n\n- path: asset (string; required). Base asset ticker of the market, as returned by `GET /v2/markets`.\n\nType: string\n\nExample: \"BTC\"\n\n## Example · 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## Example · 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## Example · 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## Response 401\n\n**401**  — Unauthorized\n\n## Response 403\n\n**403**  — The account belongs to another user (`account_access_denied`), or the request is authenticated with an API key while `api_trading` is disabled on the account (`api_trading_not_enabled`).\n\n## Response 404\n\n**404**  — No account with this identifier, or no market for this ticker.\n\n## Response 429\n\n**429**  — Rate limit of the API key exceeded (`api_key_rate_limit_exceeded`). `Retry-After` says when to come back; the body carries the bucket (`read` / `write`), the window that tripped, its limit and `retryAt`.\n\n## Response default · ScalpingCoefficientResponse\n\n**default** application/json — Response\n\nSchema: ScalpingCoefficientResponse\n\nType: object\n\nRequired fields: amount, amountRegular\n\nRequired field types: amount (string · int32; required), amountRegular (string · int32; required)\n\n- activeSince (string · date-time; optional)\n\nactiveSince example: 2026-05-01T12:30:00.000Z\n\nactiveSince.Type: string · date-time\n\nactiveSince.Start of the running scalping window — the last increase on this market. Absent when no increase happened inside the window.\n\nactiveSince.format: date-time\n\n- activeUntil (string · date-time; optional)\n\nactiveUntil example: 2026-05-01T12:30:00.000Z\n\nactiveUntil.Type: string · date-time\n\nactiveUntil.End of the running scalping window. Absent together with `activeSince`.\n\nactiveUntil.format: date-time\n\n- amount (string · int32; required)\n\namount example: 1000000000\n\namount.Type: string · int32\n\namount.Spread multiplier charged while the window is running, fp9 raw (`2000000000` = 2x).\n\namount.format: int32\n\namount.pattern: ^(?:-?[1-9][0-9]*|0)$\n\n- amountRegular (string · int32; required)\n\namountRegular example: 1000000000\n\namountRegular.Type: string · int32\n\namountRegular.Spread multiplier charged outside the window, fp9 raw (`1000000000` = 1x).\n\namountRegular.format: int32\n\namountRegular.pattern: ^(?:-?[1-9][0-9]*|0)$\n\nExample\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":"Get scalping coefficient for ticker Whether the account is currently inside the scalping window on this market — the period after an increase during which the market charges the elevated dynamic spread. - `amount` is the multiplier applied inside the window and `amountRegular` the one applied outside it, both fp9. - `activeSince` and `activeUntil` are returned only while the window is running; without a recent increase they are absent and the regular multiplier applies. GET /positions/{accountId}/{asset}/scalping-coefficient Trading accountId Trader account identifier. Must belong to the caller. string · uuid asset Base asset ticker of the market, as returned by `GET /v2/markets`. string 401 Unauthorized 403 The account belongs to another user (`account_access_denied`), or the request is authenticated with an API key while `api_trading` is disabled on the account (`api_trading_not_enabled`). 404 No account with this identifier, or no market for this ticker. 429 Rate limit of the API key exceeded (`api_key_rate_limit_exceeded`). `Retry-After` says when to come back; the body carries the bucket (`read` / `write`), the window that tripped, its limit and `retryAt`. default Response 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":"Upscale Public API","version":"d796ac9","documentation":"https://docs.upscale.trade/developers","playgroundServer":"https://api.upscale.trade"}}