@upbit-official/upbit-sdk 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +390 -0
- package/api-promise.d.mts +2 -0
- package/api-promise.d.mts.map +1 -0
- package/api-promise.d.ts +2 -0
- package/api-promise.d.ts.map +1 -0
- package/api-promise.js +6 -0
- package/api-promise.js.map +1 -0
- package/api-promise.mjs +2 -0
- package/api-promise.mjs.map +1 -0
- package/client.d.mts +261 -0
- package/client.d.mts.map +1 -0
- package/client.d.ts +261 -0
- package/client.d.ts.map +1 -0
- package/client.js +557 -0
- package/client.js.map +1 -0
- package/client.mjs +553 -0
- package/client.mjs.map +1 -0
- package/core/EventEmitter.d.mts +56 -0
- package/core/EventEmitter.d.mts.map +1 -0
- package/core/EventEmitter.d.ts +56 -0
- package/core/EventEmitter.d.ts.map +1 -0
- package/core/EventEmitter.js +93 -0
- package/core/EventEmitter.js.map +1 -0
- package/core/EventEmitter.mjs +88 -0
- package/core/EventEmitter.mjs.map +1 -0
- package/core/api-promise.d.mts +46 -0
- package/core/api-promise.d.mts.map +1 -0
- package/core/api-promise.d.ts +46 -0
- package/core/api-promise.d.ts.map +1 -0
- package/core/api-promise.js +73 -0
- package/core/api-promise.js.map +1 -0
- package/core/api-promise.mjs +69 -0
- package/core/api-promise.mjs.map +1 -0
- package/core/error.d.mts +51 -0
- package/core/error.d.mts.map +1 -0
- package/core/error.d.ts +51 -0
- package/core/error.d.ts.map +1 -0
- package/core/error.js +150 -0
- package/core/error.js.map +1 -0
- package/core/error.mjs +133 -0
- package/core/error.mjs.map +1 -0
- package/core/pagination.d.mts +63 -0
- package/core/pagination.d.mts.map +1 -0
- package/core/pagination.d.ts +63 -0
- package/core/pagination.d.ts.map +1 -0
- package/core/pagination.js +125 -0
- package/core/pagination.js.map +1 -0
- package/core/pagination.mjs +118 -0
- package/core/pagination.mjs.map +1 -0
- package/core/resource.d.mts +6 -0
- package/core/resource.d.mts.map +1 -0
- package/core/resource.d.ts +6 -0
- package/core/resource.d.ts.map +1 -0
- package/core/resource.js +10 -0
- package/core/resource.js.map +1 -0
- package/core/resource.mjs +6 -0
- package/core/resource.mjs.map +1 -0
- package/core/uploads.d.mts +3 -0
- package/core/uploads.d.mts.map +1 -0
- package/core/uploads.d.ts +3 -0
- package/core/uploads.d.ts.map +1 -0
- package/core/uploads.js +6 -0
- package/core/uploads.js.map +1 -0
- package/core/uploads.mjs +2 -0
- package/core/uploads.mjs.map +1 -0
- package/error.d.mts +2 -0
- package/error.d.mts.map +1 -0
- package/error.d.ts +2 -0
- package/error.d.ts.map +1 -0
- package/error.js +6 -0
- package/error.js.map +1 -0
- package/error.mjs +2 -0
- package/error.mjs.map +1 -0
- package/index.d.mts +8 -0
- package/index.d.mts.map +1 -0
- package/index.d.ts +8 -0
- package/index.d.ts.map +1 -0
- package/index.js +36 -0
- package/index.js.map +1 -0
- package/index.mjs +8 -0
- package/index.mjs.map +1 -0
- package/internal/builtin-types.d.mts +73 -0
- package/internal/builtin-types.d.mts.map +1 -0
- package/internal/builtin-types.d.ts +73 -0
- package/internal/builtin-types.d.ts.map +1 -0
- package/internal/builtin-types.js +3 -0
- package/internal/builtin-types.js.map +1 -0
- package/internal/builtin-types.mjs +2 -0
- package/internal/builtin-types.mjs.map +1 -0
- package/internal/errors.d.mts +3 -0
- package/internal/errors.d.mts.map +1 -0
- package/internal/errors.d.ts +3 -0
- package/internal/errors.d.ts.map +1 -0
- package/internal/errors.js +40 -0
- package/internal/errors.js.map +1 -0
- package/internal/errors.mjs +35 -0
- package/internal/errors.mjs.map +1 -0
- package/internal/headers.d.mts +20 -0
- package/internal/headers.d.mts.map +1 -0
- package/internal/headers.d.ts +20 -0
- package/internal/headers.d.ts.map +1 -0
- package/internal/headers.js +78 -0
- package/internal/headers.js.map +1 -0
- package/internal/headers.mjs +73 -0
- package/internal/headers.mjs.map +1 -0
- package/internal/parse.d.mts +12 -0
- package/internal/parse.d.mts.map +1 -0
- package/internal/parse.d.ts +12 -0
- package/internal/parse.d.ts.map +1 -0
- package/internal/parse.js +40 -0
- package/internal/parse.js.map +1 -0
- package/internal/parse.mjs +37 -0
- package/internal/parse.mjs.map +1 -0
- package/internal/qs/formats.d.mts +7 -0
- package/internal/qs/formats.d.mts.map +1 -0
- package/internal/qs/formats.d.ts +7 -0
- package/internal/qs/formats.d.ts.map +1 -0
- package/internal/qs/formats.js +13 -0
- package/internal/qs/formats.js.map +1 -0
- package/internal/qs/formats.mjs +9 -0
- package/internal/qs/formats.mjs.map +1 -0
- package/internal/qs/index.d.mts +10 -0
- package/internal/qs/index.d.mts.map +1 -0
- package/internal/qs/index.d.ts +10 -0
- package/internal/qs/index.d.ts.map +1 -0
- package/internal/qs/index.js +14 -0
- package/internal/qs/index.js.map +1 -0
- package/internal/qs/index.mjs +10 -0
- package/internal/qs/index.mjs.map +1 -0
- package/internal/qs/stringify.d.mts +3 -0
- package/internal/qs/stringify.d.mts.map +1 -0
- package/internal/qs/stringify.d.ts +3 -0
- package/internal/qs/stringify.d.ts.map +1 -0
- package/internal/qs/stringify.js +277 -0
- package/internal/qs/stringify.js.map +1 -0
- package/internal/qs/stringify.mjs +274 -0
- package/internal/qs/stringify.mjs.map +1 -0
- package/internal/qs/types.d.mts +57 -0
- package/internal/qs/types.d.mts.map +1 -0
- package/internal/qs/types.d.ts +57 -0
- package/internal/qs/types.d.ts.map +1 -0
- package/internal/qs/types.js +3 -0
- package/internal/qs/types.js.map +1 -0
- package/internal/qs/types.mjs +2 -0
- package/internal/qs/types.mjs.map +1 -0
- package/internal/qs/utils.d.mts +15 -0
- package/internal/qs/utils.d.mts.map +1 -0
- package/internal/qs/utils.d.ts +15 -0
- package/internal/qs/utils.d.ts.map +1 -0
- package/internal/qs/utils.js +230 -0
- package/internal/qs/utils.js.map +1 -0
- package/internal/qs/utils.mjs +217 -0
- package/internal/qs/utils.mjs.map +1 -0
- package/internal/request-options.d.mts +78 -0
- package/internal/request-options.d.mts.map +1 -0
- package/internal/request-options.d.ts +78 -0
- package/internal/request-options.d.ts.map +1 -0
- package/internal/request-options.js +13 -0
- package/internal/request-options.js.map +1 -0
- package/internal/request-options.mjs +9 -0
- package/internal/request-options.mjs.map +1 -0
- package/internal/shim-types.d.mts +17 -0
- package/internal/shim-types.d.mts.map +1 -0
- package/internal/shim-types.d.ts +17 -0
- package/internal/shim-types.d.ts.map +1 -0
- package/internal/shim-types.js +9 -0
- package/internal/shim-types.js.map +1 -0
- package/internal/shim-types.mjs +8 -0
- package/internal/shim-types.mjs.map +1 -0
- package/internal/shims.d.mts +26 -0
- package/internal/shims.d.mts.map +1 -0
- package/internal/shims.d.ts +26 -0
- package/internal/shims.d.ts.map +1 -0
- package/internal/shims.js +97 -0
- package/internal/shims.js.map +1 -0
- package/internal/shims.mjs +90 -0
- package/internal/shims.mjs.map +1 -0
- package/internal/to-file.d.mts +45 -0
- package/internal/to-file.d.mts.map +1 -0
- package/internal/to-file.d.ts +45 -0
- package/internal/to-file.d.ts.map +1 -0
- package/internal/to-file.js +91 -0
- package/internal/to-file.js.map +1 -0
- package/internal/to-file.mjs +88 -0
- package/internal/to-file.mjs.map +1 -0
- package/internal/tslib.js +81 -0
- package/internal/tslib.mjs +17 -0
- package/internal/types.d.mts +69 -0
- package/internal/types.d.mts.map +1 -0
- package/internal/types.d.ts +69 -0
- package/internal/types.d.ts.map +1 -0
- package/internal/types.js +3 -0
- package/internal/types.js.map +1 -0
- package/internal/types.mjs +2 -0
- package/internal/types.mjs.map +1 -0
- package/internal/uploads.d.mts +42 -0
- package/internal/uploads.d.mts.map +1 -0
- package/internal/uploads.d.ts +42 -0
- package/internal/uploads.d.ts.map +1 -0
- package/internal/uploads.js +141 -0
- package/internal/uploads.js.map +1 -0
- package/internal/uploads.mjs +131 -0
- package/internal/uploads.mjs.map +1 -0
- package/internal/utils/base64.d.mts +3 -0
- package/internal/utils/base64.d.mts.map +1 -0
- package/internal/utils/base64.d.ts +3 -0
- package/internal/utils/base64.d.ts.map +1 -0
- package/internal/utils/base64.js +37 -0
- package/internal/utils/base64.js.map +1 -0
- package/internal/utils/base64.mjs +32 -0
- package/internal/utils/base64.mjs.map +1 -0
- package/internal/utils/bytes.d.mts +4 -0
- package/internal/utils/bytes.d.mts.map +1 -0
- package/internal/utils/bytes.d.ts +4 -0
- package/internal/utils/bytes.d.ts.map +1 -0
- package/internal/utils/bytes.js +31 -0
- package/internal/utils/bytes.js.map +1 -0
- package/internal/utils/bytes.mjs +26 -0
- package/internal/utils/bytes.mjs.map +1 -0
- package/internal/utils/env.d.mts +9 -0
- package/internal/utils/env.d.mts.map +1 -0
- package/internal/utils/env.d.ts +9 -0
- package/internal/utils/env.d.ts.map +1 -0
- package/internal/utils/env.js +21 -0
- package/internal/utils/env.js.map +1 -0
- package/internal/utils/env.mjs +17 -0
- package/internal/utils/env.mjs.map +1 -0
- package/internal/utils/log.d.mts +37 -0
- package/internal/utils/log.d.mts.map +1 -0
- package/internal/utils/log.d.ts +37 -0
- package/internal/utils/log.d.ts.map +1 -0
- package/internal/utils/log.js +84 -0
- package/internal/utils/log.js.map +1 -0
- package/internal/utils/log.mjs +78 -0
- package/internal/utils/log.mjs.map +1 -0
- package/internal/utils/path.d.mts +15 -0
- package/internal/utils/path.d.mts.map +1 -0
- package/internal/utils/path.d.ts +15 -0
- package/internal/utils/path.d.ts.map +1 -0
- package/internal/utils/path.js +79 -0
- package/internal/utils/path.js.map +1 -0
- package/internal/utils/path.mjs +74 -0
- package/internal/utils/path.mjs.map +1 -0
- package/internal/utils/query.d.mts +2 -0
- package/internal/utils/query.d.mts.map +1 -0
- package/internal/utils/query.d.ts +2 -0
- package/internal/utils/query.d.ts.map +1 -0
- package/internal/utils/query.js +9 -0
- package/internal/utils/query.js.map +1 -0
- package/internal/utils/query.mjs +5 -0
- package/internal/utils/query.mjs.map +1 -0
- package/internal/utils/sleep.d.mts +2 -0
- package/internal/utils/sleep.d.mts.map +1 -0
- package/internal/utils/sleep.d.ts +2 -0
- package/internal/utils/sleep.d.ts.map +1 -0
- package/internal/utils/sleep.js +6 -0
- package/internal/utils/sleep.js.map +1 -0
- package/internal/utils/sleep.mjs +2 -0
- package/internal/utils/sleep.mjs.map +1 -0
- package/internal/utils/uuid.d.mts +5 -0
- package/internal/utils/uuid.d.mts.map +1 -0
- package/internal/utils/uuid.d.ts +5 -0
- package/internal/utils/uuid.d.ts.map +1 -0
- package/internal/utils/uuid.js +21 -0
- package/internal/utils/uuid.js.map +1 -0
- package/internal/utils/uuid.mjs +17 -0
- package/internal/utils/uuid.mjs.map +1 -0
- package/internal/utils/values.d.mts +18 -0
- package/internal/utils/values.d.mts.map +1 -0
- package/internal/utils/values.d.ts +18 -0
- package/internal/utils/values.d.ts.map +1 -0
- package/internal/utils/values.js +111 -0
- package/internal/utils/values.js.map +1 -0
- package/internal/utils/values.mjs +93 -0
- package/internal/utils/values.mjs.map +1 -0
- package/internal/utils.d.mts +8 -0
- package/internal/utils.d.mts.map +1 -0
- package/internal/utils.d.ts +8 -0
- package/internal/utils.d.ts.map +1 -0
- package/internal/utils.js +11 -0
- package/internal/utils.js.map +1 -0
- package/internal/utils.mjs +8 -0
- package/internal/utils.mjs.map +1 -0
- package/internal/ws.d.mts +31 -0
- package/internal/ws.d.mts.map +1 -0
- package/internal/ws.d.ts +31 -0
- package/internal/ws.d.ts.map +1 -0
- package/internal/ws.js +39 -0
- package/internal/ws.js.map +1 -0
- package/internal/ws.mjs +36 -0
- package/internal/ws.mjs.map +1 -0
- package/lib/index.d.mts +5 -0
- package/lib/index.d.mts.map +1 -0
- package/lib/index.d.ts +5 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +11 -0
- package/lib/index.js.map +1 -0
- package/lib/index.mjs +4 -0
- package/lib/index.mjs.map +1 -0
- package/lib/jsonParseFloat.d.mts +16 -0
- package/lib/jsonParseFloat.d.mts.map +1 -0
- package/lib/jsonParseFloat.d.ts +16 -0
- package/lib/jsonParseFloat.d.ts.map +1 -0
- package/lib/jsonParseFloat.js +77 -0
- package/lib/jsonParseFloat.js.map +1 -0
- package/lib/jsonParseFloat.mjs +74 -0
- package/lib/jsonParseFloat.mjs.map +1 -0
- package/lib/jwtAuth.d.mts +7 -0
- package/lib/jwtAuth.d.mts.map +1 -0
- package/lib/jwtAuth.d.ts +7 -0
- package/lib/jwtAuth.d.ts.map +1 -0
- package/lib/jwtAuth.js +33 -0
- package/lib/jwtAuth.js.map +1 -0
- package/lib/jwtAuth.mjs +30 -0
- package/lib/jwtAuth.mjs.map +1 -0
- package/lib/ws.d.mts +95 -0
- package/lib/ws.d.mts.map +1 -0
- package/lib/ws.d.ts +95 -0
- package/lib/ws.d.ts.map +1 -0
- package/lib/ws.js +229 -0
- package/lib/ws.js.map +1 -0
- package/lib/ws.mjs +223 -0
- package/lib/ws.mjs.map +1 -0
- package/package.json +169 -0
- package/pagination.d.mts +2 -0
- package/pagination.d.mts.map +1 -0
- package/pagination.d.ts +2 -0
- package/pagination.d.ts.map +1 -0
- package/pagination.js +6 -0
- package/pagination.js.map +1 -0
- package/pagination.mjs +2 -0
- package/pagination.mjs.map +1 -0
- package/resource.d.mts +2 -0
- package/resource.d.mts.map +1 -0
- package/resource.d.ts +2 -0
- package/resource.d.ts.map +1 -0
- package/resource.js +6 -0
- package/resource.js.map +1 -0
- package/resource.mjs +2 -0
- package/resource.mjs.map +1 -0
- package/resources/accounts.d.mts +48 -0
- package/resources/accounts.d.mts.map +1 -0
- package/resources/accounts.d.ts +48 -0
- package/resources/accounts.d.ts.map +1 -0
- package/resources/accounts.js +19 -0
- package/resources/accounts.js.map +1 -0
- package/resources/accounts.mjs +15 -0
- package/resources/accounts.mjs.map +1 -0
- package/resources/api-keys.d.mts +33 -0
- package/resources/api-keys.d.mts.map +1 -0
- package/resources/api-keys.d.ts +33 -0
- package/resources/api-keys.d.ts.map +1 -0
- package/resources/api-keys.js +19 -0
- package/resources/api-keys.js.map +1 -0
- package/resources/api-keys.mjs +15 -0
- package/resources/api-keys.mjs.map +1 -0
- package/resources/candles.d.mts +310 -0
- package/resources/candles.d.mts.map +1 -0
- package/resources/candles.d.ts +310 -0
- package/resources/candles.d.ts.map +1 -0
- package/resources/candles.js +117 -0
- package/resources/candles.js.map +1 -0
- package/resources/candles.mjs +113 -0
- package/resources/candles.mjs.map +1 -0
- package/resources/deposits.d.mts +373 -0
- package/resources/deposits.d.mts.map +1 -0
- package/resources/deposits.d.ts +373 -0
- package/resources/deposits.d.ts.map +1 -0
- package/resources/deposits.js +139 -0
- package/resources/deposits.js.map +1 -0
- package/resources/deposits.mjs +135 -0
- package/resources/deposits.mjs.map +1 -0
- package/resources/index.d.mts +15 -0
- package/resources/index.d.mts.map +1 -0
- package/resources/index.d.ts +15 -0
- package/resources/index.d.ts.map +1 -0
- package/resources/index.js +32 -0
- package/resources/index.js.map +1 -0
- package/resources/index.mjs +15 -0
- package/resources/index.mjs.map +1 -0
- package/resources/orderbooks.d.mts +134 -0
- package/resources/orderbooks.d.mts.map +1 -0
- package/resources/orderbooks.d.ts +134 -0
- package/resources/orderbooks.d.ts.map +1 -0
- package/resources/orderbooks.js +31 -0
- package/resources/orderbooks.js.map +1 -0
- package/resources/orderbooks.mjs +27 -0
- package/resources/orderbooks.mjs.map +1 -0
- package/resources/orders.d.mts +886 -0
- package/resources/orders.d.mts.map +1 -0
- package/resources/orders.d.ts +886 -0
- package/resources/orders.d.ts.map +1 -0
- package/resources/orders.js +250 -0
- package/resources/orders.js.map +1 -0
- package/resources/orders.mjs +246 -0
- package/resources/orders.mjs.map +1 -0
- package/resources/tickers.d.mts +184 -0
- package/resources/tickers.d.mts.map +1 -0
- package/resources/tickers.d.ts +184 -0
- package/resources/tickers.d.ts.map +1 -0
- package/resources/tickers.js +30 -0
- package/resources/tickers.js.map +1 -0
- package/resources/tickers.mjs +26 -0
- package/resources/tickers.mjs.map +1 -0
- package/resources/trades.d.mts +107 -0
- package/resources/trades.d.mts.map +1 -0
- package/resources/trades.d.ts +107 -0
- package/resources/trades.d.ts.map +1 -0
- package/resources/trades.js +19 -0
- package/resources/trades.js.map +1 -0
- package/resources/trades.mjs +15 -0
- package/resources/trades.mjs.map +1 -0
- package/resources/trading-pairs.d.mts +96 -0
- package/resources/trading-pairs.d.mts.map +1 -0
- package/resources/trading-pairs.d.ts +96 -0
- package/resources/trading-pairs.d.ts.map +1 -0
- package/resources/trading-pairs.js +19 -0
- package/resources/trading-pairs.js.map +1 -0
- package/resources/trading-pairs.mjs +15 -0
- package/resources/trading-pairs.mjs.map +1 -0
- package/resources/travel-rule.d.mts +139 -0
- package/resources/travel-rule.d.mts.map +1 -0
- package/resources/travel-rule.d.ts +139 -0
- package/resources/travel-rule.d.ts.map +1 -0
- package/resources/travel-rule.js +68 -0
- package/resources/travel-rule.js.map +1 -0
- package/resources/travel-rule.mjs +64 -0
- package/resources/travel-rule.mjs.map +1 -0
- package/resources/wallet-status.d.mts +74 -0
- package/resources/wallet-status.d.mts.map +1 -0
- package/resources/wallet-status.d.ts +74 -0
- package/resources/wallet-status.d.ts.map +1 -0
- package/resources/wallet-status.js +19 -0
- package/resources/wallet-status.js.map +1 -0
- package/resources/wallet-status.mjs +15 -0
- package/resources/wallet-status.mjs.map +1 -0
- package/resources/withdraws.d.mts +599 -0
- package/resources/withdraws.d.mts.map +1 -0
- package/resources/withdraws.d.ts +599 -0
- package/resources/withdraws.d.ts.map +1 -0
- package/resources/withdraws.js +139 -0
- package/resources/withdraws.js.map +1 -0
- package/resources/withdraws.mjs +135 -0
- package/resources/withdraws.mjs.map +1 -0
- package/resources/ws-private/index.d.mts +3 -0
- package/resources/ws-private/index.d.mts.map +1 -0
- package/resources/ws-private/index.d.ts +3 -0
- package/resources/ws-private/index.d.ts.map +1 -0
- package/resources/ws-private/index.js +6 -0
- package/resources/ws-private/index.js.map +1 -0
- package/resources/ws-private/index.mjs +2 -0
- package/resources/ws-private/index.mjs.map +1 -0
- package/resources/ws-private/internal-base.d.mts +58 -0
- package/resources/ws-private/internal-base.d.mts.map +1 -0
- package/resources/ws-private/internal-base.d.ts +58 -0
- package/resources/ws-private/internal-base.d.ts.map +1 -0
- package/resources/ws-private/internal-base.js +51 -0
- package/resources/ws-private/internal-base.js.map +1 -0
- package/resources/ws-private/internal-base.mjs +45 -0
- package/resources/ws-private/internal-base.mjs.map +1 -0
- package/resources/ws-private/ws-private.d.mts +224 -0
- package/resources/ws-private/ws-private.d.mts.map +1 -0
- package/resources/ws-private/ws-private.d.ts +224 -0
- package/resources/ws-private/ws-private.d.ts.map +1 -0
- package/resources/ws-private/ws-private.js +8 -0
- package/resources/ws-private/ws-private.js.map +1 -0
- package/resources/ws-private/ws-private.mjs +4 -0
- package/resources/ws-private/ws-private.mjs.map +1 -0
- package/resources/ws-private/ws.d.mts +85 -0
- package/resources/ws-private/ws.d.mts.map +1 -0
- package/resources/ws-private/ws.d.ts +85 -0
- package/resources/ws-private/ws.d.ts.map +1 -0
- package/resources/ws-private/ws.js +433 -0
- package/resources/ws-private/ws.js.map +1 -0
- package/resources/ws-private/ws.mjs +428 -0
- package/resources/ws-private/ws.mjs.map +1 -0
- package/resources/ws-private.d.mts +2 -0
- package/resources/ws-private.d.mts.map +1 -0
- package/resources/ws-private.d.ts +2 -0
- package/resources/ws-private.d.ts.map +1 -0
- package/resources/ws-private.js +5 -0
- package/resources/ws-private.js.map +1 -0
- package/resources/ws-private.mjs +2 -0
- package/resources/ws-private.mjs.map +1 -0
- package/resources/ws-public/index.d.mts +3 -0
- package/resources/ws-public/index.d.mts.map +1 -0
- package/resources/ws-public/index.d.ts +3 -0
- package/resources/ws-public/index.d.ts.map +1 -0
- package/resources/ws-public/index.js +6 -0
- package/resources/ws-public/index.js.map +1 -0
- package/resources/ws-public/index.mjs +2 -0
- package/resources/ws-public/index.mjs.map +1 -0
- package/resources/ws-public/internal-base.d.mts +58 -0
- package/resources/ws-public/internal-base.d.mts.map +1 -0
- package/resources/ws-public/internal-base.d.ts +58 -0
- package/resources/ws-public/internal-base.d.ts.map +1 -0
- package/resources/ws-public/internal-base.js +51 -0
- package/resources/ws-public/internal-base.js.map +1 -0
- package/resources/ws-public/internal-base.mjs +45 -0
- package/resources/ws-public/internal-base.mjs.map +1 -0
- package/resources/ws-public/ws-public.d.mts +427 -0
- package/resources/ws-public/ws-public.d.mts.map +1 -0
- package/resources/ws-public/ws-public.d.ts +427 -0
- package/resources/ws-public/ws-public.d.ts.map +1 -0
- package/resources/ws-public/ws-public.js +8 -0
- package/resources/ws-public/ws-public.js.map +1 -0
- package/resources/ws-public/ws-public.mjs +4 -0
- package/resources/ws-public/ws-public.mjs.map +1 -0
- package/resources/ws-public/ws.d.mts +85 -0
- package/resources/ws-public/ws.d.mts.map +1 -0
- package/resources/ws-public/ws.d.ts +85 -0
- package/resources/ws-public/ws.d.ts.map +1 -0
- package/resources/ws-public/ws.js +428 -0
- package/resources/ws-public/ws.js.map +1 -0
- package/resources/ws-public/ws.mjs +423 -0
- package/resources/ws-public/ws.mjs.map +1 -0
- package/resources/ws-public.d.mts +2 -0
- package/resources/ws-public.d.mts.map +1 -0
- package/resources/ws-public.d.ts +2 -0
- package/resources/ws-public.d.ts.map +1 -0
- package/resources/ws-public.js +5 -0
- package/resources/ws-public.js.map +1 -0
- package/resources/ws-public.mjs +2 -0
- package/resources/ws-public.mjs.map +1 -0
- package/resources.d.mts +2 -0
- package/resources.d.mts.map +1 -0
- package/resources.d.ts +2 -0
- package/resources.d.ts.map +1 -0
- package/resources.js +5 -0
- package/resources.js.map +1 -0
- package/resources.mjs +2 -0
- package/resources.mjs.map +1 -0
- package/src/api-promise.ts +2 -0
- package/src/client.ts +1112 -0
- package/src/core/EventEmitter.ts +114 -0
- package/src/core/README.md +3 -0
- package/src/core/api-promise.ts +91 -0
- package/src/core/error.ts +182 -0
- package/src/core/pagination.ts +195 -0
- package/src/core/resource.ts +10 -0
- package/src/core/uploads.ts +2 -0
- package/src/error.ts +2 -0
- package/src/index.ts +24 -0
- package/src/internal/README.md +3 -0
- package/src/internal/builtin-types.ts +92 -0
- package/src/internal/errors.ts +32 -0
- package/src/internal/headers.ts +96 -0
- package/src/internal/parse.ts +56 -0
- package/src/internal/qs/LICENSE.md +13 -0
- package/src/internal/qs/README.md +3 -0
- package/src/internal/qs/formats.ts +10 -0
- package/src/internal/qs/index.ts +13 -0
- package/src/internal/qs/stringify.ts +385 -0
- package/src/internal/qs/types.ts +71 -0
- package/src/internal/qs/utils.ts +265 -0
- package/src/internal/request-options.ts +92 -0
- package/src/internal/shim-types.ts +25 -0
- package/src/internal/shims.ts +106 -0
- package/src/internal/to-file.ts +154 -0
- package/src/internal/types.ts +94 -0
- package/src/internal/uploads.ts +187 -0
- package/src/internal/utils/base64.ts +39 -0
- package/src/internal/utils/bytes.ts +32 -0
- package/src/internal/utils/env.ts +17 -0
- package/src/internal/utils/log.ts +125 -0
- package/src/internal/utils/path.ts +88 -0
- package/src/internal/utils/query.ts +6 -0
- package/src/internal/utils/sleep.ts +2 -0
- package/src/internal/utils/uuid.ts +19 -0
- package/src/internal/utils/values.ts +104 -0
- package/src/internal/utils.ts +8 -0
- package/src/internal/ws.ts +68 -0
- package/src/lib/index.ts +4 -0
- package/src/lib/jsonParseFloat.ts +73 -0
- package/src/lib/jwtAuth.ts +39 -0
- package/src/lib/ws.ts +282 -0
- package/src/pagination.ts +2 -0
- package/src/resource.ts +2 -0
- package/src/resources/accounts.ts +59 -0
- package/src/resources/api-keys.ts +40 -0
- package/src/resources/candles.ts +392 -0
- package/src/resources/deposits.ts +484 -0
- package/src/resources/index.ts +102 -0
- package/src/resources/orderbooks.ts +170 -0
- package/src/resources/orders.ts +1102 -0
- package/src/resources/tickers.ts +233 -0
- package/src/resources/trades.ts +127 -0
- package/src/resources/trading-pairs.ts +120 -0
- package/src/resources/travel-rule.ts +181 -0
- package/src/resources/wallet-status.ts +87 -0
- package/src/resources/withdraws.ts +734 -0
- package/src/resources/ws-private/index.ts +3 -0
- package/src/resources/ws-private/internal-base.ts +99 -0
- package/src/resources/ws-private/ws-private.ts +283 -0
- package/src/resources/ws-private/ws.ts +529 -0
- package/src/resources/ws-private.ts +2 -0
- package/src/resources/ws-public/index.ts +3 -0
- package/src/resources/ws-public/internal-base.ts +99 -0
- package/src/resources/ws-public/ws-public.ts +561 -0
- package/src/resources/ws-public/ws.ts +525 -0
- package/src/resources/ws-public.ts +2 -0
- package/src/resources.ts +1 -0
- package/src/tsconfig.json +11 -0
- package/src/uploads.ts +2 -0
- package/src/version.ts +1 -0
- package/uploads.d.mts +2 -0
- package/uploads.d.mts.map +1 -0
- package/uploads.d.ts +2 -0
- package/uploads.d.ts.map +1 -0
- package/uploads.js +6 -0
- package/uploads.js.map +1 -0
- package/uploads.mjs +2 -0
- package/uploads.mjs.map +1 -0
- package/version.d.mts +2 -0
- package/version.d.mts.map +1 -0
- package/version.d.ts +2 -0
- package/version.d.ts.map +1 -0
- package/version.js +5 -0
- package/version.js.map +1 -0
- package/version.mjs +2 -0
- package/version.mjs.map +1 -0
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
|
+
export declare class Tickers extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* List Tickers by Market
|
|
7
|
+
*
|
|
8
|
+
* GET /v1/ticker/all
|
|
9
|
+
*
|
|
10
|
+
* - docs(kr): https://docs.upbit.com/kr/reference/list-quote-tickers
|
|
11
|
+
* - docs(global): https://global-docs.upbit.com/reference/list-quote-tickers
|
|
12
|
+
*/
|
|
13
|
+
listByQuoteCurrencies(query: TickerListByQuoteCurrenciesParams, options?: RequestOptions): APIPromise<TickerListByQuoteCurrenciesResponse>;
|
|
14
|
+
/**
|
|
15
|
+
* List Tickers by Pairs
|
|
16
|
+
*
|
|
17
|
+
* GET /v1/ticker
|
|
18
|
+
*
|
|
19
|
+
* - docs(kr): https://docs.upbit.com/kr/reference/list-tickers
|
|
20
|
+
* - docs(global): https://global-docs.upbit.com/reference/list-tickers
|
|
21
|
+
*/
|
|
22
|
+
listByTradingPairs(query: TickerListByTradingPairsParams, options?: RequestOptions): APIPromise<TickerListByTradingPairsResponse>;
|
|
23
|
+
}
|
|
24
|
+
export interface Ticker {
|
|
25
|
+
/**
|
|
26
|
+
* Accumulated trade amount since UTC midnight.
|
|
27
|
+
*/
|
|
28
|
+
acc_trade_price: string;
|
|
29
|
+
/**
|
|
30
|
+
* Accumulated trade amount over the past 24 hours.
|
|
31
|
+
*/
|
|
32
|
+
acc_trade_price_24h: string;
|
|
33
|
+
/**
|
|
34
|
+
* Accumulated trade volume since UTC midnight.
|
|
35
|
+
*/
|
|
36
|
+
acc_trade_volume: string;
|
|
37
|
+
/**
|
|
38
|
+
* Accumulated trade volume over the past 24 hours.
|
|
39
|
+
*/
|
|
40
|
+
acc_trade_volume_24h: string;
|
|
41
|
+
/**
|
|
42
|
+
* Price change status.
|
|
43
|
+
*
|
|
44
|
+
* - `EVEN`: No change
|
|
45
|
+
* - `RISE`: Price rose
|
|
46
|
+
* - `FALL`: Price fell
|
|
47
|
+
*/
|
|
48
|
+
change: 'EVEN' | 'RISE' | 'FALL';
|
|
49
|
+
/**
|
|
50
|
+
* Absolute price change from previous day's closing price.
|
|
51
|
+
*
|
|
52
|
+
* Calculated as "trade_price" - "prev_closing_price".
|
|
53
|
+
*/
|
|
54
|
+
change_price: string;
|
|
55
|
+
/**
|
|
56
|
+
* Absolute price change rate from previous day's closing price.
|
|
57
|
+
*
|
|
58
|
+
* Calculated as ("trade_price" - "prev_closing_price") / "prev_closing_price".
|
|
59
|
+
*/
|
|
60
|
+
change_rate: string;
|
|
61
|
+
/**
|
|
62
|
+
* Highest trading price of the trading pair.
|
|
63
|
+
*/
|
|
64
|
+
high_price: string;
|
|
65
|
+
/**
|
|
66
|
+
* Date of 52-week highest price.
|
|
67
|
+
*
|
|
68
|
+
* [Format] yyyy-MM-dd
|
|
69
|
+
*/
|
|
70
|
+
highest_52_week_date: string;
|
|
71
|
+
/**
|
|
72
|
+
* 52-week highest price.
|
|
73
|
+
*/
|
|
74
|
+
highest_52_week_price: string;
|
|
75
|
+
/**
|
|
76
|
+
* Lowest trading price of the trading pair.
|
|
77
|
+
*/
|
|
78
|
+
low_price: string;
|
|
79
|
+
/**
|
|
80
|
+
* Date of 52-week lowest price.
|
|
81
|
+
*
|
|
82
|
+
* [Format] yyyy-MM-dd
|
|
83
|
+
*/
|
|
84
|
+
lowest_52_week_date: string;
|
|
85
|
+
/**
|
|
86
|
+
* 52-week lowest price.
|
|
87
|
+
*/
|
|
88
|
+
lowest_52_week_price: string;
|
|
89
|
+
/**
|
|
90
|
+
* Trading pair code.
|
|
91
|
+
*/
|
|
92
|
+
market: string;
|
|
93
|
+
/**
|
|
94
|
+
* Opening price of the trading pair.
|
|
95
|
+
*/
|
|
96
|
+
opening_price: string;
|
|
97
|
+
/**
|
|
98
|
+
* Previous day's closing price (UTC-based).
|
|
99
|
+
*/
|
|
100
|
+
prev_closing_price: string;
|
|
101
|
+
/**
|
|
102
|
+
* Signed price change from previous day's closing price. Calculated as
|
|
103
|
+
* "trade_price" - "prev_closing_price".
|
|
104
|
+
*
|
|
105
|
+
* - Positive(+): price rose
|
|
106
|
+
* - Negative(-): price fell
|
|
107
|
+
*/
|
|
108
|
+
signed_change_price: string;
|
|
109
|
+
/**
|
|
110
|
+
* Signed price change rate from previous day's closing price. Calculated as
|
|
111
|
+
* ("trade_price" - "prev_closing_price") / "prev_closing_price".
|
|
112
|
+
*
|
|
113
|
+
* - Positive(+): price rose
|
|
114
|
+
* - Negative(-): price fell
|
|
115
|
+
*
|
|
116
|
+
* [Example] 0.015 = 1.5% increase
|
|
117
|
+
*/
|
|
118
|
+
signed_change_rate: string;
|
|
119
|
+
/**
|
|
120
|
+
* Timestamp (ms) when the ticker information was recorded.
|
|
121
|
+
*/
|
|
122
|
+
timestamp: number;
|
|
123
|
+
/**
|
|
124
|
+
* Most recent trade date (UTC-based).
|
|
125
|
+
*
|
|
126
|
+
* [Format] yyyyMMdd
|
|
127
|
+
*/
|
|
128
|
+
trade_date: string;
|
|
129
|
+
/**
|
|
130
|
+
* Most recent trade date (KST-based). Supported in KOREA only.
|
|
131
|
+
*
|
|
132
|
+
* [Format] yyyyMMdd
|
|
133
|
+
*/
|
|
134
|
+
trade_date_kst: string;
|
|
135
|
+
/**
|
|
136
|
+
* Current (closing) price of the trading pair.
|
|
137
|
+
*/
|
|
138
|
+
trade_price: string;
|
|
139
|
+
/**
|
|
140
|
+
* Most recent trade time (UTC-based).
|
|
141
|
+
*
|
|
142
|
+
* [Format] HHmmss
|
|
143
|
+
*/
|
|
144
|
+
trade_time: string;
|
|
145
|
+
/**
|
|
146
|
+
* Most recent trade time (KST-based). Supported in KOREA only.
|
|
147
|
+
*
|
|
148
|
+
* [Format] HHmmss
|
|
149
|
+
*/
|
|
150
|
+
trade_time_kst: string;
|
|
151
|
+
/**
|
|
152
|
+
* Milliseconds timestamp when the trade was executed.
|
|
153
|
+
*/
|
|
154
|
+
trade_timestamp: number;
|
|
155
|
+
/**
|
|
156
|
+
* Most recent trade volume.
|
|
157
|
+
*/
|
|
158
|
+
trade_volume: string;
|
|
159
|
+
}
|
|
160
|
+
export type TickerListByQuoteCurrenciesResponse = Array<Ticker>;
|
|
161
|
+
export type TickerListByTradingPairsResponse = Array<Ticker>;
|
|
162
|
+
export interface TickerListByQuoteCurrenciesParams {
|
|
163
|
+
/**
|
|
164
|
+
* List of quote currencies to query. For multiple markets, use comma-separated
|
|
165
|
+
* format.
|
|
166
|
+
*
|
|
167
|
+
* [Example] SGD,BTC
|
|
168
|
+
*/
|
|
169
|
+
quote_currencies: string;
|
|
170
|
+
}
|
|
171
|
+
export interface TickerListByTradingPairsParams {
|
|
172
|
+
/**
|
|
173
|
+
* List of trading pairs to query.
|
|
174
|
+
*
|
|
175
|
+
* For multiple pairs, use comma-separated format.
|
|
176
|
+
*
|
|
177
|
+
* [Example] SGD-BTC,SGD-ETH
|
|
178
|
+
*/
|
|
179
|
+
markets: string;
|
|
180
|
+
}
|
|
181
|
+
export declare namespace Tickers {
|
|
182
|
+
export { type Ticker as Ticker, type TickerListByQuoteCurrenciesResponse as TickerListByQuoteCurrenciesResponse, type TickerListByTradingPairsResponse as TickerListByTradingPairsResponse, type TickerListByQuoteCurrenciesParams as TickerListByQuoteCurrenciesParams, type TickerListByTradingPairsParams as TickerListByTradingPairsParams, };
|
|
183
|
+
}
|
|
184
|
+
//# sourceMappingURL=tickers.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tickers.d.mts","sourceRoot":"","sources":["../src/resources/tickers.ts"],"names":[],"mappings":"OACO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;OAOG;IACH,qBAAqB,CACnB,KAAK,EAAE,iCAAiC,EACxC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mCAAmC,CAAC;IAIlD;;;;;;;OAOG;IACH,kBAAkB,CAChB,KAAK,EAAE,8BAA8B,EACrC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,gCAAgC,CAAC;CAGhD;AAED,MAAM,WAAW,MAAM;IACrB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,mBAAmB,EAAE,MAAM,CAAC;IAE5B;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,oBAAoB,EAAE,MAAM,CAAC;IAE7B;;;;;;OAMG;IACH,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IAEjC;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;OAIG;IACH,oBAAoB,EAAE,MAAM,CAAC;IAE7B;;OAEG;IACH,qBAAqB,EAAE,MAAM,CAAC;IAE9B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;;OAIG;IACH,mBAAmB,EAAE,MAAM,CAAC;IAE5B;;OAEG;IACH,oBAAoB,EAAE,MAAM,CAAC;IAE7B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAE3B;;;;;;OAMG;IACH,mBAAmB,EAAE,MAAM,CAAC;IAE5B;;;;;;;;OAQG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;OAIG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;OAIG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,MAAM,mCAAmC,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;AAEhE,MAAM,MAAM,gCAAgC,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;AAE7D,MAAM,WAAW,iCAAiC;IAChD;;;;;OAKG;IACH,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,8BAA8B;IAC7C;;;;;;OAMG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,MAAM,IAAI,MAAM,EACrB,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,8BAA8B,IAAI,8BAA8B,GACtE,CAAC;CACH"}
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
4
|
+
export declare class Tickers extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* List Tickers by Market
|
|
7
|
+
*
|
|
8
|
+
* GET /v1/ticker/all
|
|
9
|
+
*
|
|
10
|
+
* - docs(kr): https://docs.upbit.com/kr/reference/list-quote-tickers
|
|
11
|
+
* - docs(global): https://global-docs.upbit.com/reference/list-quote-tickers
|
|
12
|
+
*/
|
|
13
|
+
listByQuoteCurrencies(query: TickerListByQuoteCurrenciesParams, options?: RequestOptions): APIPromise<TickerListByQuoteCurrenciesResponse>;
|
|
14
|
+
/**
|
|
15
|
+
* List Tickers by Pairs
|
|
16
|
+
*
|
|
17
|
+
* GET /v1/ticker
|
|
18
|
+
*
|
|
19
|
+
* - docs(kr): https://docs.upbit.com/kr/reference/list-tickers
|
|
20
|
+
* - docs(global): https://global-docs.upbit.com/reference/list-tickers
|
|
21
|
+
*/
|
|
22
|
+
listByTradingPairs(query: TickerListByTradingPairsParams, options?: RequestOptions): APIPromise<TickerListByTradingPairsResponse>;
|
|
23
|
+
}
|
|
24
|
+
export interface Ticker {
|
|
25
|
+
/**
|
|
26
|
+
* Accumulated trade amount since UTC midnight.
|
|
27
|
+
*/
|
|
28
|
+
acc_trade_price: string;
|
|
29
|
+
/**
|
|
30
|
+
* Accumulated trade amount over the past 24 hours.
|
|
31
|
+
*/
|
|
32
|
+
acc_trade_price_24h: string;
|
|
33
|
+
/**
|
|
34
|
+
* Accumulated trade volume since UTC midnight.
|
|
35
|
+
*/
|
|
36
|
+
acc_trade_volume: string;
|
|
37
|
+
/**
|
|
38
|
+
* Accumulated trade volume over the past 24 hours.
|
|
39
|
+
*/
|
|
40
|
+
acc_trade_volume_24h: string;
|
|
41
|
+
/**
|
|
42
|
+
* Price change status.
|
|
43
|
+
*
|
|
44
|
+
* - `EVEN`: No change
|
|
45
|
+
* - `RISE`: Price rose
|
|
46
|
+
* - `FALL`: Price fell
|
|
47
|
+
*/
|
|
48
|
+
change: 'EVEN' | 'RISE' | 'FALL';
|
|
49
|
+
/**
|
|
50
|
+
* Absolute price change from previous day's closing price.
|
|
51
|
+
*
|
|
52
|
+
* Calculated as "trade_price" - "prev_closing_price".
|
|
53
|
+
*/
|
|
54
|
+
change_price: string;
|
|
55
|
+
/**
|
|
56
|
+
* Absolute price change rate from previous day's closing price.
|
|
57
|
+
*
|
|
58
|
+
* Calculated as ("trade_price" - "prev_closing_price") / "prev_closing_price".
|
|
59
|
+
*/
|
|
60
|
+
change_rate: string;
|
|
61
|
+
/**
|
|
62
|
+
* Highest trading price of the trading pair.
|
|
63
|
+
*/
|
|
64
|
+
high_price: string;
|
|
65
|
+
/**
|
|
66
|
+
* Date of 52-week highest price.
|
|
67
|
+
*
|
|
68
|
+
* [Format] yyyy-MM-dd
|
|
69
|
+
*/
|
|
70
|
+
highest_52_week_date: string;
|
|
71
|
+
/**
|
|
72
|
+
* 52-week highest price.
|
|
73
|
+
*/
|
|
74
|
+
highest_52_week_price: string;
|
|
75
|
+
/**
|
|
76
|
+
* Lowest trading price of the trading pair.
|
|
77
|
+
*/
|
|
78
|
+
low_price: string;
|
|
79
|
+
/**
|
|
80
|
+
* Date of 52-week lowest price.
|
|
81
|
+
*
|
|
82
|
+
* [Format] yyyy-MM-dd
|
|
83
|
+
*/
|
|
84
|
+
lowest_52_week_date: string;
|
|
85
|
+
/**
|
|
86
|
+
* 52-week lowest price.
|
|
87
|
+
*/
|
|
88
|
+
lowest_52_week_price: string;
|
|
89
|
+
/**
|
|
90
|
+
* Trading pair code.
|
|
91
|
+
*/
|
|
92
|
+
market: string;
|
|
93
|
+
/**
|
|
94
|
+
* Opening price of the trading pair.
|
|
95
|
+
*/
|
|
96
|
+
opening_price: string;
|
|
97
|
+
/**
|
|
98
|
+
* Previous day's closing price (UTC-based).
|
|
99
|
+
*/
|
|
100
|
+
prev_closing_price: string;
|
|
101
|
+
/**
|
|
102
|
+
* Signed price change from previous day's closing price. Calculated as
|
|
103
|
+
* "trade_price" - "prev_closing_price".
|
|
104
|
+
*
|
|
105
|
+
* - Positive(+): price rose
|
|
106
|
+
* - Negative(-): price fell
|
|
107
|
+
*/
|
|
108
|
+
signed_change_price: string;
|
|
109
|
+
/**
|
|
110
|
+
* Signed price change rate from previous day's closing price. Calculated as
|
|
111
|
+
* ("trade_price" - "prev_closing_price") / "prev_closing_price".
|
|
112
|
+
*
|
|
113
|
+
* - Positive(+): price rose
|
|
114
|
+
* - Negative(-): price fell
|
|
115
|
+
*
|
|
116
|
+
* [Example] 0.015 = 1.5% increase
|
|
117
|
+
*/
|
|
118
|
+
signed_change_rate: string;
|
|
119
|
+
/**
|
|
120
|
+
* Timestamp (ms) when the ticker information was recorded.
|
|
121
|
+
*/
|
|
122
|
+
timestamp: number;
|
|
123
|
+
/**
|
|
124
|
+
* Most recent trade date (UTC-based).
|
|
125
|
+
*
|
|
126
|
+
* [Format] yyyyMMdd
|
|
127
|
+
*/
|
|
128
|
+
trade_date: string;
|
|
129
|
+
/**
|
|
130
|
+
* Most recent trade date (KST-based). Supported in KOREA only.
|
|
131
|
+
*
|
|
132
|
+
* [Format] yyyyMMdd
|
|
133
|
+
*/
|
|
134
|
+
trade_date_kst: string;
|
|
135
|
+
/**
|
|
136
|
+
* Current (closing) price of the trading pair.
|
|
137
|
+
*/
|
|
138
|
+
trade_price: string;
|
|
139
|
+
/**
|
|
140
|
+
* Most recent trade time (UTC-based).
|
|
141
|
+
*
|
|
142
|
+
* [Format] HHmmss
|
|
143
|
+
*/
|
|
144
|
+
trade_time: string;
|
|
145
|
+
/**
|
|
146
|
+
* Most recent trade time (KST-based). Supported in KOREA only.
|
|
147
|
+
*
|
|
148
|
+
* [Format] HHmmss
|
|
149
|
+
*/
|
|
150
|
+
trade_time_kst: string;
|
|
151
|
+
/**
|
|
152
|
+
* Milliseconds timestamp when the trade was executed.
|
|
153
|
+
*/
|
|
154
|
+
trade_timestamp: number;
|
|
155
|
+
/**
|
|
156
|
+
* Most recent trade volume.
|
|
157
|
+
*/
|
|
158
|
+
trade_volume: string;
|
|
159
|
+
}
|
|
160
|
+
export type TickerListByQuoteCurrenciesResponse = Array<Ticker>;
|
|
161
|
+
export type TickerListByTradingPairsResponse = Array<Ticker>;
|
|
162
|
+
export interface TickerListByQuoteCurrenciesParams {
|
|
163
|
+
/**
|
|
164
|
+
* List of quote currencies to query. For multiple markets, use comma-separated
|
|
165
|
+
* format.
|
|
166
|
+
*
|
|
167
|
+
* [Example] SGD,BTC
|
|
168
|
+
*/
|
|
169
|
+
quote_currencies: string;
|
|
170
|
+
}
|
|
171
|
+
export interface TickerListByTradingPairsParams {
|
|
172
|
+
/**
|
|
173
|
+
* List of trading pairs to query.
|
|
174
|
+
*
|
|
175
|
+
* For multiple pairs, use comma-separated format.
|
|
176
|
+
*
|
|
177
|
+
* [Example] SGD-BTC,SGD-ETH
|
|
178
|
+
*/
|
|
179
|
+
markets: string;
|
|
180
|
+
}
|
|
181
|
+
export declare namespace Tickers {
|
|
182
|
+
export { type Ticker as Ticker, type TickerListByQuoteCurrenciesResponse as TickerListByQuoteCurrenciesResponse, type TickerListByTradingPairsResponse as TickerListByTradingPairsResponse, type TickerListByQuoteCurrenciesParams as TickerListByQuoteCurrenciesParams, type TickerListByTradingPairsParams as TickerListByTradingPairsParams, };
|
|
183
|
+
}
|
|
184
|
+
//# sourceMappingURL=tickers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tickers.d.ts","sourceRoot":"","sources":["../src/resources/tickers.ts"],"names":[],"mappings":"OACO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;OAOG;IACH,qBAAqB,CACnB,KAAK,EAAE,iCAAiC,EACxC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mCAAmC,CAAC;IAIlD;;;;;;;OAOG;IACH,kBAAkB,CAChB,KAAK,EAAE,8BAA8B,EACrC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,gCAAgC,CAAC;CAGhD;AAED,MAAM,WAAW,MAAM;IACrB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,mBAAmB,EAAE,MAAM,CAAC;IAE5B;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,oBAAoB,EAAE,MAAM,CAAC;IAE7B;;;;;;OAMG;IACH,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IAEjC;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;OAIG;IACH,oBAAoB,EAAE,MAAM,CAAC;IAE7B;;OAEG;IACH,qBAAqB,EAAE,MAAM,CAAC;IAE9B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;;OAIG;IACH,mBAAmB,EAAE,MAAM,CAAC;IAE5B;;OAEG;IACH,oBAAoB,EAAE,MAAM,CAAC;IAE7B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAE3B;;;;;;OAMG;IACH,mBAAmB,EAAE,MAAM,CAAC;IAE5B;;;;;;;;OAQG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;OAIG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;OAIG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,MAAM,mCAAmC,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;AAEhE,MAAM,MAAM,gCAAgC,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;AAE7D,MAAM,WAAW,iCAAiC;IAChD;;;;;OAKG;IACH,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,8BAA8B;IAC7C;;;;;;OAMG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,MAAM,IAAI,MAAM,EACrB,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,8BAA8B,IAAI,8BAA8B,GACtE,CAAC;CACH"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Tickers = void 0;
|
|
4
|
+
const resource_1 = require("../core/resource.js");
|
|
5
|
+
class Tickers extends resource_1.APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* List Tickers by Market
|
|
8
|
+
*
|
|
9
|
+
* GET /v1/ticker/all
|
|
10
|
+
*
|
|
11
|
+
* - docs(kr): https://docs.upbit.com/kr/reference/list-quote-tickers
|
|
12
|
+
* - docs(global): https://global-docs.upbit.com/reference/list-quote-tickers
|
|
13
|
+
*/
|
|
14
|
+
listByQuoteCurrencies(query, options) {
|
|
15
|
+
return this._client.get('/v1/ticker/all', { query, ...options, __security: {} });
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* List Tickers by Pairs
|
|
19
|
+
*
|
|
20
|
+
* GET /v1/ticker
|
|
21
|
+
*
|
|
22
|
+
* - docs(kr): https://docs.upbit.com/kr/reference/list-tickers
|
|
23
|
+
* - docs(global): https://global-docs.upbit.com/reference/list-tickers
|
|
24
|
+
*/
|
|
25
|
+
listByTradingPairs(query, options) {
|
|
26
|
+
return this._client.get('/v1/ticker', { query, ...options, __security: {} });
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
exports.Tickers = Tickers;
|
|
30
|
+
//# sourceMappingURL=tickers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tickers.js","sourceRoot":"","sources":["../src/resources/tickers.ts"],"names":[],"mappings":";;;AACA,kDAA+C;AAI/C,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;;;;;OAOG;IACH,qBAAqB,CACnB,KAAwC,EACxC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,CAAC;IACnF,CAAC;IAED;;;;;;;OAOG;IACH,kBAAkB,CAChB,KAAqC,EACrC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,CAAC;IAC/E,CAAC;CACF;AA9BD,0BA8BC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
export class Tickers extends APIResource {
|
|
3
|
+
/**
|
|
4
|
+
* List Tickers by Market
|
|
5
|
+
*
|
|
6
|
+
* GET /v1/ticker/all
|
|
7
|
+
*
|
|
8
|
+
* - docs(kr): https://docs.upbit.com/kr/reference/list-quote-tickers
|
|
9
|
+
* - docs(global): https://global-docs.upbit.com/reference/list-quote-tickers
|
|
10
|
+
*/
|
|
11
|
+
listByQuoteCurrencies(query, options) {
|
|
12
|
+
return this._client.get('/v1/ticker/all', { query, ...options, __security: {} });
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* List Tickers by Pairs
|
|
16
|
+
*
|
|
17
|
+
* GET /v1/ticker
|
|
18
|
+
*
|
|
19
|
+
* - docs(kr): https://docs.upbit.com/kr/reference/list-tickers
|
|
20
|
+
* - docs(global): https://global-docs.upbit.com/reference/list-tickers
|
|
21
|
+
*/
|
|
22
|
+
listByTradingPairs(query, options) {
|
|
23
|
+
return this._client.get('/v1/ticker', { query, ...options, __security: {} });
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=tickers.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tickers.mjs","sourceRoot":"","sources":["../src/resources/tickers.ts"],"names":[],"mappings":"OACO,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;;;;;OAOG;IACH,qBAAqB,CACnB,KAAwC,EACxC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,CAAC;IACnF,CAAC;IAED;;;;;;;OAOG;IACH,kBAAkB,CAChB,KAAqC,EACrC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC,CAAC;IAC/E,CAAC;CACF"}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
|
+
export declare class Trades extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Recent Trades History
|
|
7
|
+
*
|
|
8
|
+
* GET /v1/trades/ticks
|
|
9
|
+
*
|
|
10
|
+
* - docs(kr): https://docs.upbit.com/kr/reference/recent-trades-history
|
|
11
|
+
* - docs(global): https://global-docs.upbit.com/reference/recent-trades-history
|
|
12
|
+
*/
|
|
13
|
+
list(query: TradeListParams, options?: RequestOptions): APIPromise<TradeListResponse>;
|
|
14
|
+
}
|
|
15
|
+
export type TradeListResponse = Array<TradeListResponse.TradeListResponseItem>;
|
|
16
|
+
export declare namespace TradeListResponse {
|
|
17
|
+
interface TradeListResponseItem {
|
|
18
|
+
/**
|
|
19
|
+
* Trade direction — ASK (sell) or BID (buy).
|
|
20
|
+
*/
|
|
21
|
+
ask_bid: 'ASK' | 'BID';
|
|
22
|
+
/**
|
|
23
|
+
* Price change from previous day's closing price. Calculated as "trade_price" -
|
|
24
|
+
* "prev_closing_price".
|
|
25
|
+
*
|
|
26
|
+
* - Positive(+): current price rose from previous closing
|
|
27
|
+
* - Negative(-): current price fell from previous closing
|
|
28
|
+
* - 0: no change from previous closing
|
|
29
|
+
*/
|
|
30
|
+
change_price: string;
|
|
31
|
+
/**
|
|
32
|
+
* Trading pair code.
|
|
33
|
+
*/
|
|
34
|
+
market: string;
|
|
35
|
+
/**
|
|
36
|
+
* Previous day's closing price (UTC-based).
|
|
37
|
+
*/
|
|
38
|
+
prev_closing_price: string;
|
|
39
|
+
/**
|
|
40
|
+
* Unique identifier for the trade.
|
|
41
|
+
*
|
|
42
|
+
* This field does not guarantee the sequence of trades.
|
|
43
|
+
*/
|
|
44
|
+
sequential_id: number;
|
|
45
|
+
/**
|
|
46
|
+
* Milliseconds timestamp when the trade was executed.
|
|
47
|
+
*/
|
|
48
|
+
timestamp: number;
|
|
49
|
+
/**
|
|
50
|
+
* Trade date (UTC-based).
|
|
51
|
+
*
|
|
52
|
+
* [Format] yyyy-MM-dd
|
|
53
|
+
*/
|
|
54
|
+
trade_date_utc: string;
|
|
55
|
+
/**
|
|
56
|
+
* Most recent trade price.
|
|
57
|
+
*/
|
|
58
|
+
trade_price: string;
|
|
59
|
+
/**
|
|
60
|
+
* Trade time (UTC-based).
|
|
61
|
+
*
|
|
62
|
+
* [Format] HH:mm:ss
|
|
63
|
+
*/
|
|
64
|
+
trade_time_utc: string;
|
|
65
|
+
/**
|
|
66
|
+
* Most recent trade volume.
|
|
67
|
+
*/
|
|
68
|
+
trade_volume: string;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
export interface TradeListParams {
|
|
72
|
+
/**
|
|
73
|
+
* Trading pair code to query.
|
|
74
|
+
*/
|
|
75
|
+
market: string;
|
|
76
|
+
/**
|
|
77
|
+
* Number of trade records to retrieve.
|
|
78
|
+
*
|
|
79
|
+
* Up to 500 supported. Default: 1.
|
|
80
|
+
*/
|
|
81
|
+
count?: number;
|
|
82
|
+
/**
|
|
83
|
+
* Cursor for pagination. Enter the "sequential_id" from the response to retrieve
|
|
84
|
+
* the previous "count" trade records prior to that trade.
|
|
85
|
+
*/
|
|
86
|
+
cursor?: string;
|
|
87
|
+
/**
|
|
88
|
+
* Day offset between the query date and the request date. Must specify the target
|
|
89
|
+
* date; up to 7 days of history is supported (UTC-based).
|
|
90
|
+
*
|
|
91
|
+
* Integer between 1 and 7. If omitted, returns trades for the current date. If 7,
|
|
92
|
+
* returns trades from 7 days ago in reverse chronological order.
|
|
93
|
+
*/
|
|
94
|
+
days_ago?: number;
|
|
95
|
+
/**
|
|
96
|
+
* End time within the query date range (UTC). Optional parameter to retrieve
|
|
97
|
+
* trades within a specific time of the query date.
|
|
98
|
+
*
|
|
99
|
+
* Accepts HHmmss or HH:mm:ss format. Trade list is returned in reverse
|
|
100
|
+
* chronological order from the specified time.
|
|
101
|
+
*/
|
|
102
|
+
to?: string;
|
|
103
|
+
}
|
|
104
|
+
export declare namespace Trades {
|
|
105
|
+
export { type TradeListResponse as TradeListResponse, type TradeListParams as TradeListParams };
|
|
106
|
+
}
|
|
107
|
+
//# sourceMappingURL=trades.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trades.d.mts","sourceRoot":"","sources":["../src/resources/trades.ts"],"names":[],"mappings":"OACO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;OAOG;IACH,IAAI,CAAC,KAAK,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,iBAAiB,CAAC;CAGtF;AAED,MAAM,MAAM,iBAAiB,GAAG,KAAK,CAAC,iBAAiB,CAAC,qBAAqB,CAAC,CAAC;AAE/E,yBAAiB,iBAAiB,CAAC;IACjC,UAAiB,qBAAqB;QACpC;;WAEG;QACH,OAAO,EAAE,KAAK,GAAG,KAAK,CAAC;QAEvB;;;;;;;WAOG;QACH,YAAY,EAAE,MAAM,CAAC;QAErB;;WAEG;QACH,MAAM,EAAE,MAAM,CAAC;QAEf;;WAEG;QACH,kBAAkB,EAAE,MAAM,CAAC;QAE3B;;;;WAIG;QACH,aAAa,EAAE,MAAM,CAAC;QAEtB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;;;WAIG;QACH,cAAc,EAAE,MAAM,CAAC;QAEvB;;WAEG;QACH,WAAW,EAAE,MAAM,CAAC;QAEpB;;;;WAIG;QACH,cAAc,EAAE,MAAM,CAAC;QAEvB;;WAEG;QACH,YAAY,EAAE,MAAM,CAAC;KACtB;CACF;AAED,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;;;OAMG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,KAAK,eAAe,IAAI,eAAe,EAAE,CAAC;CACjG"}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
4
|
+
export declare class Trades extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Recent Trades History
|
|
7
|
+
*
|
|
8
|
+
* GET /v1/trades/ticks
|
|
9
|
+
*
|
|
10
|
+
* - docs(kr): https://docs.upbit.com/kr/reference/recent-trades-history
|
|
11
|
+
* - docs(global): https://global-docs.upbit.com/reference/recent-trades-history
|
|
12
|
+
*/
|
|
13
|
+
list(query: TradeListParams, options?: RequestOptions): APIPromise<TradeListResponse>;
|
|
14
|
+
}
|
|
15
|
+
export type TradeListResponse = Array<TradeListResponse.TradeListResponseItem>;
|
|
16
|
+
export declare namespace TradeListResponse {
|
|
17
|
+
interface TradeListResponseItem {
|
|
18
|
+
/**
|
|
19
|
+
* Trade direction — ASK (sell) or BID (buy).
|
|
20
|
+
*/
|
|
21
|
+
ask_bid: 'ASK' | 'BID';
|
|
22
|
+
/**
|
|
23
|
+
* Price change from previous day's closing price. Calculated as "trade_price" -
|
|
24
|
+
* "prev_closing_price".
|
|
25
|
+
*
|
|
26
|
+
* - Positive(+): current price rose from previous closing
|
|
27
|
+
* - Negative(-): current price fell from previous closing
|
|
28
|
+
* - 0: no change from previous closing
|
|
29
|
+
*/
|
|
30
|
+
change_price: string;
|
|
31
|
+
/**
|
|
32
|
+
* Trading pair code.
|
|
33
|
+
*/
|
|
34
|
+
market: string;
|
|
35
|
+
/**
|
|
36
|
+
* Previous day's closing price (UTC-based).
|
|
37
|
+
*/
|
|
38
|
+
prev_closing_price: string;
|
|
39
|
+
/**
|
|
40
|
+
* Unique identifier for the trade.
|
|
41
|
+
*
|
|
42
|
+
* This field does not guarantee the sequence of trades.
|
|
43
|
+
*/
|
|
44
|
+
sequential_id: number;
|
|
45
|
+
/**
|
|
46
|
+
* Milliseconds timestamp when the trade was executed.
|
|
47
|
+
*/
|
|
48
|
+
timestamp: number;
|
|
49
|
+
/**
|
|
50
|
+
* Trade date (UTC-based).
|
|
51
|
+
*
|
|
52
|
+
* [Format] yyyy-MM-dd
|
|
53
|
+
*/
|
|
54
|
+
trade_date_utc: string;
|
|
55
|
+
/**
|
|
56
|
+
* Most recent trade price.
|
|
57
|
+
*/
|
|
58
|
+
trade_price: string;
|
|
59
|
+
/**
|
|
60
|
+
* Trade time (UTC-based).
|
|
61
|
+
*
|
|
62
|
+
* [Format] HH:mm:ss
|
|
63
|
+
*/
|
|
64
|
+
trade_time_utc: string;
|
|
65
|
+
/**
|
|
66
|
+
* Most recent trade volume.
|
|
67
|
+
*/
|
|
68
|
+
trade_volume: string;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
export interface TradeListParams {
|
|
72
|
+
/**
|
|
73
|
+
* Trading pair code to query.
|
|
74
|
+
*/
|
|
75
|
+
market: string;
|
|
76
|
+
/**
|
|
77
|
+
* Number of trade records to retrieve.
|
|
78
|
+
*
|
|
79
|
+
* Up to 500 supported. Default: 1.
|
|
80
|
+
*/
|
|
81
|
+
count?: number;
|
|
82
|
+
/**
|
|
83
|
+
* Cursor for pagination. Enter the "sequential_id" from the response to retrieve
|
|
84
|
+
* the previous "count" trade records prior to that trade.
|
|
85
|
+
*/
|
|
86
|
+
cursor?: string;
|
|
87
|
+
/**
|
|
88
|
+
* Day offset between the query date and the request date. Must specify the target
|
|
89
|
+
* date; up to 7 days of history is supported (UTC-based).
|
|
90
|
+
*
|
|
91
|
+
* Integer between 1 and 7. If omitted, returns trades for the current date. If 7,
|
|
92
|
+
* returns trades from 7 days ago in reverse chronological order.
|
|
93
|
+
*/
|
|
94
|
+
days_ago?: number;
|
|
95
|
+
/**
|
|
96
|
+
* End time within the query date range (UTC). Optional parameter to retrieve
|
|
97
|
+
* trades within a specific time of the query date.
|
|
98
|
+
*
|
|
99
|
+
* Accepts HHmmss or HH:mm:ss format. Trade list is returned in reverse
|
|
100
|
+
* chronological order from the specified time.
|
|
101
|
+
*/
|
|
102
|
+
to?: string;
|
|
103
|
+
}
|
|
104
|
+
export declare namespace Trades {
|
|
105
|
+
export { type TradeListResponse as TradeListResponse, type TradeListParams as TradeListParams };
|
|
106
|
+
}
|
|
107
|
+
//# sourceMappingURL=trades.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trades.d.ts","sourceRoot":"","sources":["../src/resources/trades.ts"],"names":[],"mappings":"OACO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;OAOG;IACH,IAAI,CAAC,KAAK,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,iBAAiB,CAAC;CAGtF;AAED,MAAM,MAAM,iBAAiB,GAAG,KAAK,CAAC,iBAAiB,CAAC,qBAAqB,CAAC,CAAC;AAE/E,yBAAiB,iBAAiB,CAAC;IACjC,UAAiB,qBAAqB;QACpC;;WAEG;QACH,OAAO,EAAE,KAAK,GAAG,KAAK,CAAC;QAEvB;;;;;;;WAOG;QACH,YAAY,EAAE,MAAM,CAAC;QAErB;;WAEG;QACH,MAAM,EAAE,MAAM,CAAC;QAEf;;WAEG;QACH,kBAAkB,EAAE,MAAM,CAAC;QAE3B;;;;WAIG;QACH,aAAa,EAAE,MAAM,CAAC;QAEtB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;;;WAIG;QACH,cAAc,EAAE,MAAM,CAAC;QAEvB;;WAEG;QACH,WAAW,EAAE,MAAM,CAAC;QAEpB;;;;WAIG;QACH,cAAc,EAAE,MAAM,CAAC;QAEvB;;WAEG;QACH,YAAY,EAAE,MAAM,CAAC;KACtB;CACF;AAED,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;;;OAMG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,KAAK,eAAe,IAAI,eAAe,EAAE,CAAC;CACjG"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Trades = void 0;
|
|
4
|
+
const resource_1 = require("../core/resource.js");
|
|
5
|
+
class Trades extends resource_1.APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Recent Trades History
|
|
8
|
+
*
|
|
9
|
+
* GET /v1/trades/ticks
|
|
10
|
+
*
|
|
11
|
+
* - docs(kr): https://docs.upbit.com/kr/reference/recent-trades-history
|
|
12
|
+
* - docs(global): https://global-docs.upbit.com/reference/recent-trades-history
|
|
13
|
+
*/
|
|
14
|
+
list(query, options) {
|
|
15
|
+
return this._client.get('/v1/trades/ticks', { query, ...options, __security: {} });
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.Trades = Trades;
|
|
19
|
+
//# sourceMappingURL=trades.js.map
|