Upscale
Menu
On this page

Obtener el coeficiente de scalping para el ticker

Probar ↓
GET/positions/{accountId}/{asset}/scalping-coefficient
Obtener el coeficiente de scalping para el tickerTrading

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.
  • recentVolume.long y recentVolume.short contienen el volumen acumulado después de la última apertura o aumento ejecutado en cada dirección, en USD fp9 en bruto. Excluye la orden que se está ingresando actualmente y se suma a su tamaño al calcular el impacto de precio dinámico.
  • Cada dirección tiene su propio updatedAt y activeUntil: el volumen decae linealmente a cero durante 60 segundos, independientemente de la ventana de scalping.
  • Una dirección es nula cuando su volumen se ha recuperado por completo o no tiene una instantánea de impacto de precio dinámico.
URL base https://api.upscale.trade

Autorización

bearerhttp · bearerobligatorio

Clave de API personal, con el prefijo usk_.

Parámetros

Ruta
accountIdstring · uuidobligatorio

Identificador de la cuenta del trader. Debe pertenecer al solicitante.

Ejemplo: 00000000-0000-4000-8000-000000000000
assetstringobligatorio

Ticker del activo base del mercado, tal como lo devuelve GET /v2/markets.

Ejemplo: BTC

Ejemplos

curl --request GET 'https://api.upscale.trade/positions/{accountId}/{asset}/scalping-coefficient' \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer YOUR_API_KEY'

Respuestas

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.

defaultRespuestaapplication/json
activeSincestring · date-timeopcional

Start of the running scalping window — the last increase on this market. Absent when no increase happened inside the window.

Ejemplo: 2026-05-01T12:30:00.000Z
activeUntilstring · date-timeopcional

End of the running scalping window. Absent together with activeSince.

Ejemplo: 2026-05-01T12:30:00.000Z
amountstring · fp9obligatorio

Spread multiplier charged while the window is running, fp9 raw (2000000000 = 2x).

pattern
^(?:-?[1-9][0-9]*|0)$
Ejemplo: 1000000000
amountRegularstring · fp9obligatorio

Spread multiplier charged outside the window, fp9 raw (1000000000 = 1x).

pattern
^(?:-?[1-9][0-9]*|0)$
Ejemplo: 1000000000
recentVolumeobjectobligatorio

Accumulated executed volume counted in the next open or increase, per direction, with its own recovery window; 60 seconds by default.

Objeto · 2 campos
longobject · nullableobligatorio

Recent long volume. Null when no volume remains in this direction.

Objeto · 3 campos
volumestring · fp9obligatorio

Volume right after the latest execution, USD fp9 raw. It decays linearly from updatedAt to zero at activeUntil.

pattern
^(?:-?[1-9][0-9]*|0)$
Ejemplo: 1000000000
updatedAtstring · date-timeobligatorio

Latest execution of an open or increase in this direction.

Ejemplo: 2026-05-01T12:30:00.000Z
activeUntilstring · date-timeobligatorio

Moment the volume decays to zero according to the trading recovery window; 60 seconds by default.

Ejemplo: 2026-05-01T12:30:00.000Z
Ver ejemplo
{
  "volume": "1000000000",
  "updatedAt": "2026-05-01T12:30:00.000Z",
  "activeUntil": "2026-05-01T12:30:00.000Z"
}
shortobject · nullableobligatorio

Recent short volume. Null when no volume remains in this direction.

Objeto · 3 campos
volumestring · fp9obligatorio

Volume right after the latest execution, USD fp9 raw. It decays linearly from updatedAt to zero at activeUntil.

pattern
^(?:-?[1-9][0-9]*|0)$
Ejemplo: 1000000000
updatedAtstring · date-timeobligatorio

Latest execution of an open or increase in this direction.

Ejemplo: 2026-05-01T12:30:00.000Z
activeUntilstring · date-timeobligatorio

Moment the volume decays to zero according to the trading recovery window; 60 seconds by default.

Ejemplo: 2026-05-01T12:30:00.000Z
Ver ejemplo
{
  "volume": "1000000000",
  "updatedAt": "2026-05-01T12:30:00.000Z",
  "activeUntil": "2026-05-01T12:30:00.000Z"
}
Ver ejemplo
{
  "long": {
    "volume": "1000000000",
    "updatedAt": "2026-05-01T12:30:00.000Z",
    "activeUntil": "2026-05-01T12:30:00.000Z"
  },
  "short": {
    "volume": "1000000000",
    "updatedAt": "2026-05-01T12:30:00.000Z",
    "activeUntil": "2026-05-01T12:30:00.000Z"
  }
}