@polyester/sdk 0.35.0-devnet-20261111025029 → 0.35.0-devnet-20261111140253
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/CHANGELOG.md +43 -1
- package/dist/catalogs/index.d.ts +2 -2
- package/dist/catalogs/snapshot-validation.js +7 -3
- package/dist/catalogs/snapshot-validation.js.map +1 -1
- package/dist/gen/ai/v1/assistant_pb.d.ts +4164 -0
- package/dist/gen/ai/v1/assistant_pb.d.ts.map +1 -0
- package/dist/gen/ai/v1/assistant_pb.js +1174 -0
- package/dist/gen/ai/v1/assistant_pb.js.map +1 -0
- package/dist/gen/alerts/v1/price_alerts_pb.d.ts +776 -0
- package/dist/gen/alerts/v1/price_alerts_pb.d.ts.map +1 -0
- package/dist/gen/alerts/v1/price_alerts_pb.js +378 -0
- package/dist/gen/alerts/v1/price_alerts_pb.js.map +1 -0
- package/dist/gen/auth/v1/address_book_pb.d.ts +6 -0
- package/dist/gen/auth/v1/address_book_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/address_book_pb.js +6 -0
- package/dist/gen/auth/v1/address_book_pb.js.map +1 -1
- package/dist/gen/auth/v1/api_keys_pb.d.ts +247 -3
- package/dist/gen/auth/v1/api_keys_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/api_keys_pb.js +81 -2
- package/dist/gen/auth/v1/api_keys_pb.js.map +1 -1
- package/dist/gen/auth/v1/auth_pb.d.ts +55 -6
- package/dist/gen/auth/v1/auth_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/auth_pb.js +55 -6
- package/dist/gen/auth/v1/auth_pb.js.map +1 -1
- package/dist/gen/auth/v1/policies_pb.d.ts +186 -14
- package/dist/gen/auth/v1/policies_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/policies_pb.js +163 -6
- package/dist/gen/auth/v1/policies_pb.js.map +1 -1
- package/dist/gen/auth/v1/profile_pb.d.ts +4 -2
- package/dist/gen/auth/v1/profile_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/profile_pb.js.map +1 -1
- package/dist/gen/auth/v1/resolve_pb.d.ts +1 -0
- package/dist/gen/auth/v1/resolve_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/resolve_pb.js.map +1 -1
- package/dist/gen/auth/v1/social_verification_pb.d.ts +170 -11
- package/dist/gen/auth/v1/social_verification_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/social_verification_pb.js +41 -3
- package/dist/gen/auth/v1/social_verification_pb.js.map +1 -1
- package/dist/gen/auth/v1/subaccounts_pb.d.ts +25 -9
- package/dist/gen/auth/v1/subaccounts_pb.d.ts.map +1 -1
- package/dist/gen/auth/v1/subaccounts_pb.js.map +1 -1
- package/dist/gen/chain/deposit/v1/deposit_pb.d.ts +4 -2
- package/dist/gen/chain/deposit/v1/deposit_pb.d.ts.map +1 -1
- package/dist/gen/chain/deposit/v1/deposit_pb.js.map +1 -1
- package/dist/gen/chain/guard/v1/guard_signer_pb.d.ts +5 -0
- package/dist/gen/chain/guard/v1/guard_signer_pb.d.ts.map +1 -1
- package/dist/gen/chain/guard/v1/guard_signer_pb.js.map +1 -1
- package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.d.ts +10 -0
- package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.d.ts.map +1 -1
- package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.js +1 -1
- package/dist/gen/chain/lifecycle/v1/lifecycle_read_pb.js.map +1 -1
- package/dist/gen/chain/lifecycle/v1/types_pb.d.ts +32 -4
- package/dist/gen/chain/lifecycle/v1/types_pb.d.ts.map +1 -1
- package/dist/gen/chain/lifecycle/v1/types_pb.js +32 -4
- package/dist/gen/chain/lifecycle/v1/types_pb.js.map +1 -1
- package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.d.ts +391 -42
- package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.d.ts.map +1 -1
- package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.js +103 -17
- package/dist/gen/chain/withdraw/v1/auto_withdraw_pb.js.map +1 -1
- package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts +172 -4
- package/dist/gen/chain/withdraw/v1/withdraw_pb.d.ts.map +1 -1
- package/dist/gen/chain/withdraw/v1/withdraw_pb.js +63 -2
- package/dist/gen/chain/withdraw/v1/withdraw_pb.js.map +1 -1
- package/dist/gen/chain/zipper/v1/zipper_pb.d.ts +57 -3
- package/dist/gen/chain/zipper/v1/zipper_pb.d.ts.map +1 -1
- package/dist/gen/chain/zipper/v1/zipper_pb.js +41 -3
- package/dist/gen/chain/zipper/v1/zipper_pb.js.map +1 -1
- package/dist/gen/checkpoints/v1/checkpoints_pb.d.ts +2 -1
- package/dist/gen/checkpoints/v1/checkpoints_pb.d.ts.map +1 -1
- package/dist/gen/checkpoints/v1/checkpoints_pb.js.map +1 -1
- package/dist/gen/claims/v1/claims_pb.d.ts +20 -3
- package/dist/gen/claims/v1/claims_pb.d.ts.map +1 -1
- package/dist/gen/claims/v1/claims_pb.js +12 -3
- package/dist/gen/claims/v1/claims_pb.js.map +1 -1
- package/dist/gen/index.d.ts +9 -5
- package/dist/gen/index.js +5 -1
- package/dist/gen/ledger/v1/catalog_pb.d.ts +52 -1
- package/dist/gen/ledger/v1/catalog_pb.d.ts.map +1 -1
- package/dist/gen/ledger/v1/catalog_pb.js +52 -1
- package/dist/gen/ledger/v1/catalog_pb.js.map +1 -1
- package/dist/gen/marketdata/v1/heatmap_pb.d.ts +6 -0
- package/dist/gen/marketdata/v1/heatmap_pb.d.ts.map +1 -1
- package/dist/gen/marketdata/v1/heatmap_pb.js.map +1 -1
- package/dist/gen/marketdata/v1/marketdata_pb.d.ts +8 -0
- package/dist/gen/marketdata/v1/marketdata_pb.d.ts.map +1 -1
- package/dist/gen/marketdata/v1/marketdata_pb.js +1 -1
- package/dist/gen/marketdata/v1/marketdata_pb.js.map +1 -1
- package/dist/gen/orders/v1/orders_pb.d.ts +29 -8
- package/dist/gen/orders/v1/orders_pb.d.ts.map +1 -1
- package/dist/gen/orders/v1/orders_pb.js +18 -5
- package/dist/gen/orders/v1/orders_pb.js.map +1 -1
- package/dist/gen/polyester/ratelimit/v1/types_pb.d.ts +20 -1
- package/dist/gen/polyester/ratelimit/v1/types_pb.d.ts.map +1 -1
- package/dist/gen/polyester/ratelimit/v1/types_pb.js +20 -1
- package/dist/gen/polyester/ratelimit/v1/types_pb.js.map +1 -1
- package/dist/gen/rewards/v1/rewards_pb.d.ts +74 -3
- package/dist/gen/rewards/v1/rewards_pb.d.ts.map +1 -1
- package/dist/gen/rewards/v1/rewards_pb.js +16 -4
- package/dist/gen/rewards/v1/rewards_pb.js.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.d.ts +1268 -67
- package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.d.ts.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.js +306 -5
- package/dist/gen/swap/quickswap/v1/quickswap_broker_pb.js.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts +298 -54
- package/dist/gen/swap/quickswap/v1/quickswap_pb.d.ts.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_pb.js +183 -37
- package/dist/gen/swap/quickswap/v1/quickswap_pb.js.map +1 -1
- package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.d.ts +933 -0
- package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.d.ts.map +1 -0
- package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.js +292 -0
- package/dist/gen/swap/quickswap/v1/quickswap_referral_pb.js.map +1 -0
- package/dist/gen/system/v1/system_pb.d.ts +77 -0
- package/dist/gen/system/v1/system_pb.d.ts.map +1 -0
- package/dist/gen/system/v1/system_pb.js +34 -0
- package/dist/gen/system/v1/system_pb.js.map +1 -0
- package/dist/gen/tradews/v1/trade_ws_pb.d.ts +2 -2
- package/dist/gen/tradews/v1/trade_ws_pb.js.map +1 -1
- package/dist/gen/transfer/v1/internal_transfer_pb.d.ts +101 -2
- package/dist/gen/transfer/v1/internal_transfer_pb.d.ts.map +1 -1
- package/dist/gen/transfer/v1/internal_transfer_pb.js +14 -2
- package/dist/gen/transfer/v1/internal_transfer_pb.js.map +1 -1
- package/dist/gen/vip/v1/vip_pb.d.ts +1 -0
- package/dist/gen/vip/v1/vip_pb.d.ts.map +1 -1
- package/dist/gen/vip/v1/vip_pb.js.map +1 -1
- package/dist/index.d.ts +9 -9
- package/dist/index.js +2 -2
- package/dist/services/address-book/address-book.schemas.d.ts +2 -2
- package/dist/services/api-keys/api-keys.codecs.js +10 -1
- package/dist/services/api-keys/api-keys.codecs.js.map +1 -1
- package/dist/services/api-keys/api-keys.schemas.d.ts +4 -0
- package/dist/services/api-keys/api-keys.schemas.d.ts.map +1 -1
- package/dist/services/api-keys/api-keys.schemas.js +3 -1
- package/dist/services/api-keys/api-keys.schemas.js.map +1 -1
- package/dist/services/auto-withdraw/auto-withdraw.codecs.d.ts +9 -2
- package/dist/services/auto-withdraw/auto-withdraw.codecs.d.ts.map +1 -1
- package/dist/services/auto-withdraw/auto-withdraw.codecs.js +9 -1
- package/dist/services/auto-withdraw/auto-withdraw.codecs.js.map +1 -1
- package/dist/services/auto-withdraw/auto-withdraw.d.ts +15 -4
- package/dist/services/auto-withdraw/auto-withdraw.d.ts.map +1 -1
- package/dist/services/auto-withdraw/auto-withdraw.js +24 -8
- package/dist/services/auto-withdraw/auto-withdraw.js.map +1 -1
- package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts +375 -7
- package/dist/services/auto-withdraw/auto-withdraw.schemas.d.ts.map +1 -1
- package/dist/services/auto-withdraw/auto-withdraw.schemas.js +66 -11
- package/dist/services/auto-withdraw/auto-withdraw.schemas.js.map +1 -1
- package/dist/services/auto-withdraw/auto-withdraw.types.d.ts +3 -3
- package/dist/services/changelog/changelog.schemas.d.ts +17 -17
- package/dist/services/checkpoints/checkpoints.schemas.d.ts +2 -2
- package/dist/services/claims/claims.d.ts +5 -2
- package/dist/services/claims/claims.d.ts.map +1 -1
- package/dist/services/claims/claims.js +5 -2
- package/dist/services/claims/claims.js.map +1 -1
- package/dist/services/heatmap/heatmap.schemas.d.ts +4 -4
- package/dist/services/internal-transfers/internal-transfers.d.ts +13 -4
- package/dist/services/internal-transfers/internal-transfers.d.ts.map +1 -1
- package/dist/services/internal-transfers/internal-transfers.js +17 -3
- package/dist/services/internal-transfers/internal-transfers.js.map +1 -1
- package/dist/services/internal-transfers/internal-transfers.schemas.d.ts +59 -4
- package/dist/services/internal-transfers/internal-transfers.schemas.d.ts.map +1 -1
- package/dist/services/internal-transfers/internal-transfers.schemas.js +32 -2
- package/dist/services/internal-transfers/internal-transfers.schemas.js.map +1 -1
- package/dist/services/internal-transfers/internal-transfers.types.d.ts +2 -2
- package/dist/services/lifecycle/lifecycle.codecs.d.ts +2 -2
- package/dist/services/lifecycle/lifecycle.codecs.d.ts.map +1 -1
- package/dist/services/lifecycle/lifecycle.codecs.js +3 -1
- package/dist/services/lifecycle/lifecycle.codecs.js.map +1 -1
- package/dist/services/lifecycle/lifecycle.schemas.d.ts +114 -90
- package/dist/services/lifecycle/lifecycle.schemas.d.ts.map +1 -1
- package/dist/services/lifecycle/lifecycle.schemas.js +7 -1
- package/dist/services/lifecycle/lifecycle.schemas.js.map +1 -1
- package/dist/services/market-data/market-data.schemas.js +7 -2
- package/dist/services/market-data/market-data.schemas.js.map +1 -1
- package/dist/services/orderbook/orderbook.schemas.d.ts +1 -1
- package/dist/services/orders/order-errors.schemas.d.ts +2 -2
- package/dist/services/orders/orders-batch.schemas.d.ts +54 -54
- package/dist/services/orders/orders-input.schemas.d.ts +7 -7
- package/dist/services/orders/orders-output.schemas.d.ts +19 -19
- package/dist/services/orders/orders.d.ts +2 -0
- package/dist/services/orders/orders.d.ts.map +1 -1
- package/dist/services/orders/orders.js +2 -0
- package/dist/services/orders/orders.js.map +1 -1
- package/dist/services/policies/api-key-policies/api-key-policies.schemas.d.ts +15 -15
- package/dist/services/policies/api-key-policies/api-key-policies.schemas.js +1 -1
- package/dist/services/policies/shared.codecs.js +85 -3
- package/dist/services/policies/shared.codecs.js.map +1 -1
- package/dist/services/policies/shared.d.ts +1 -1
- package/dist/services/policies/shared.d.ts.map +1 -1
- package/dist/services/policies/shared.js +5 -14
- package/dist/services/policies/shared.js.map +1 -1
- package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.d.ts +3 -3
- package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.js +3 -3
- package/dist/services/policies/subaccount-policies/subaccount-policies.schemas.js.map +1 -1
- package/dist/services/rewards/rewards.d.ts +13 -3
- package/dist/services/rewards/rewards.d.ts.map +1 -1
- package/dist/services/rewards/rewards.js +17 -3
- package/dist/services/rewards/rewards.js.map +1 -1
- package/dist/services/rewards/rewards.schemas.d.ts +101 -4
- package/dist/services/rewards/rewards.schemas.d.ts.map +1 -1
- package/dist/services/rewards/rewards.schemas.js +12 -2
- package/dist/services/rewards/rewards.schemas.js.map +1 -1
- package/dist/services/rewards/rewards.types.d.ts +2 -2
- package/dist/services/social-verification/social-verification.codecs.js +13 -5
- package/dist/services/social-verification/social-verification.codecs.js.map +1 -1
- package/dist/services/social-verification/social-verification.d.ts +18 -3
- package/dist/services/social-verification/social-verification.d.ts.map +1 -1
- package/dist/services/social-verification/social-verification.js +26 -3
- package/dist/services/social-verification/social-verification.js.map +1 -1
- package/dist/services/social-verification/social-verification.schemas.d.ts +33 -7
- package/dist/services/social-verification/social-verification.schemas.d.ts.map +1 -1
- package/dist/services/social-verification/social-verification.schemas.js +35 -10
- package/dist/services/social-verification/social-verification.schemas.js.map +1 -1
- package/dist/services/social-verification/social-verification.types.d.ts +2 -2
- package/dist/services/subaccounts/subaccounts.schemas.d.ts +17 -17
- package/dist/services/trades/trades.schemas.d.ts +2 -2
- package/dist/services/trading-withdraws/trading-withdraws.d.ts +7 -1
- package/dist/services/trading-withdraws/trading-withdraws.d.ts.map +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.js +11 -1
- package/dist/services/trading-withdraws/trading-withdraws.js.map +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.schemas.d.ts +42 -1
- package/dist/services/trading-withdraws/trading-withdraws.schemas.d.ts.map +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.schemas.js +19 -3
- package/dist/services/trading-withdraws/trading-withdraws.schemas.js.map +1 -1
- package/dist/services/trading-withdraws/trading-withdraws.types.d.ts +2 -2
- package/dist/services/transfers/transfers.schemas.d.ts +4 -4
- package/dist/services/triggers/trigger-input.schemas.d.ts +2 -2
- package/dist/services/triggers/triggers-output.schemas.d.ts +30 -30
- package/dist/services/zipper/zipper.schemas.d.ts +2 -2
- package/dist/services/zipper/zipper.schemas.d.ts.map +1 -1
- package/dist/services/zipper/zipper.schemas.js +13 -2
- package/dist/services/zipper/zipper.schemas.js.map +1 -1
- package/dist/services/zipper/zipper.types.d.ts +2 -2
- package/dist/shared/catalog-config.d.ts +18 -1
- package/dist/shared/catalog-config.d.ts.map +1 -1
- package/dist/shared/catalog-config.js +7 -1
- package/dist/shared/catalog-config.js.map +1 -1
- package/dist/shared/connect-error-mapping.d.ts.map +1 -1
- package/dist/shared/connect-error-mapping.js +5 -1
- package/dist/shared/connect-error-mapping.js.map +1 -1
- package/dist/shared/error-detail.d.ts +8 -0
- package/dist/shared/error-detail.d.ts.map +1 -1
- package/dist/shared/error-detail.js.map +1 -1
- package/dist/shared/error-details/claims.js +7 -2
- package/dist/shared/error-details/claims.js.map +1 -1
- package/dist/shared/error-details/withdraw.js +11 -2
- package/dist/shared/error-details/withdraw.js.map +1 -1
- package/dist/shared/errors.d.ts +20 -3
- package/dist/shared/errors.d.ts.map +1 -1
- package/dist/shared/errors.js +17 -1
- package/dist/shared/errors.js.map +1 -1
- package/dist/shared/ledger-codes.d.ts +7 -1
- package/dist/shared/ledger-codes.d.ts.map +1 -1
- package/dist/shared/ledger-codes.js +27 -3
- package/dist/shared/ledger-codes.js.map +1 -1
- package/dist/shared/rate-limit.schemas.d.ts +2 -2
- package/dist/shared/rate-limit.schemas.d.ts.map +1 -1
- package/dist/shared/rate-limit.schemas.js +4 -1
- package/dist/shared/rate-limit.schemas.js.map +1 -1
- package/dist/shared/transports.d.ts +2 -1
- package/dist/shared/transports.d.ts.map +1 -1
- package/dist/shared/transports.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,776 @@
|
|
|
1
|
+
import { Message } from "@bufbuild/protobuf";
|
|
2
|
+
import { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
3
|
+
import { FieldMask, Timestamp } from "@bufbuild/protobuf/wkt";
|
|
4
|
+
declare namespace price_alerts_pb_d_exports {
|
|
5
|
+
export { AlertChannel, AlertChannelSchema, AlertDirection, AlertDirectionSchema, AlertPriceSource, AlertPriceSourceSchema, AlertStatus, AlertStatusSchema, AlertUpdate, AlertUpdateSchema, CancelAlertRequest, CancelAlertRequestSchema, CancelAlertResponse, CancelAlertResponseSchema, CreateAlertRequest, CreateAlertRequestSchema, CreateAlertResponse, CreateAlertResponseSchema, ErrorCode, ErrorCodeSchema, ErrorDetail, ErrorDetailSchema, ListAlertsRequest, ListAlertsRequestSchema, ListAlertsResponse, ListAlertsResponseSchema, PriceAlert, PriceAlertSchema, PriceAlertService, UpdateAlertRequest, UpdateAlertRequestSchema, UpdateAlertResponse, UpdateAlertResponseSchema, UpdateOutcome, UpdateOutcomeSchema, file_alerts_v1_price_alerts };
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Describes the file alerts/v1/price_alerts.proto.
|
|
9
|
+
*/
|
|
10
|
+
declare const file_alerts_v1_price_alerts: GenFile;
|
|
11
|
+
/**
|
|
12
|
+
* ErrorDetail is attached to Price Alert API errors as an error detail of
|
|
13
|
+
* type alerts.v1.ErrorDetail.
|
|
14
|
+
*
|
|
15
|
+
* @generated from message alerts.v1.ErrorDetail
|
|
16
|
+
*/
|
|
17
|
+
type ErrorDetail = Message<"alerts.v1.ErrorDetail"> & {
|
|
18
|
+
/**
|
|
19
|
+
* Stable error code.
|
|
20
|
+
*
|
|
21
|
+
* @generated from field: alerts.v1.ErrorCode code = 1;
|
|
22
|
+
*/
|
|
23
|
+
code: ErrorCode;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Describes the message alerts.v1.ErrorDetail.
|
|
27
|
+
* Use `create(ErrorDetailSchema)` to create a new message.
|
|
28
|
+
*/
|
|
29
|
+
declare const ErrorDetailSchema: GenMessage<ErrorDetail>;
|
|
30
|
+
/**
|
|
31
|
+
* PriceAlert is one price alert of the caller.
|
|
32
|
+
*
|
|
33
|
+
* An alert fires only on a crossing it observes: it records the price when it
|
|
34
|
+
* is created or set again (reference_price_ticks), and an alert whose
|
|
35
|
+
* condition already holds at that price first waits for the price to move to
|
|
36
|
+
* the other side of the alert price. A BELOW alert created while the price is
|
|
37
|
+
* already below the alert price therefore fires only after the price rises
|
|
38
|
+
* above it and falls back to it. An alert fires at most once; prices that
|
|
39
|
+
* arrive late, or a feed that stops updating, never fire it.
|
|
40
|
+
*
|
|
41
|
+
* @generated from message alerts.v1.PriceAlert
|
|
42
|
+
*/
|
|
43
|
+
type PriceAlert = Message<"alerts.v1.PriceAlert"> & {
|
|
44
|
+
/**
|
|
45
|
+
* Public alert ID.
|
|
46
|
+
*
|
|
47
|
+
* @generated from field: fixed64 alert_id = 1;
|
|
48
|
+
*/
|
|
49
|
+
alertId: bigint;
|
|
50
|
+
/**
|
|
51
|
+
* Numeric spot market identifier; resolve its symbol with GetSpotConfig.
|
|
52
|
+
*
|
|
53
|
+
* @generated from field: uint32 symbol_id = 2;
|
|
54
|
+
*/
|
|
55
|
+
symbolId: number;
|
|
56
|
+
/**
|
|
57
|
+
* Price crossing the alert waits for.
|
|
58
|
+
*
|
|
59
|
+
* @generated from field: alerts.v1.AlertDirection direction = 3;
|
|
60
|
+
*/
|
|
61
|
+
direction: AlertDirection;
|
|
62
|
+
/**
|
|
63
|
+
* Price the alert watches.
|
|
64
|
+
*
|
|
65
|
+
* @generated from field: alerts.v1.AlertPriceSource price_source = 4;
|
|
66
|
+
*/
|
|
67
|
+
priceSource: AlertPriceSource;
|
|
68
|
+
/**
|
|
69
|
+
* Alert price in quote units scaled by 1e9.
|
|
70
|
+
*
|
|
71
|
+
* @generated from field: int64 price_ticks = 5;
|
|
72
|
+
*/
|
|
73
|
+
priceTicks: bigint;
|
|
74
|
+
/**
|
|
75
|
+
* Price of price_source when the alert was created or last set again, in
|
|
76
|
+
* quote units scaled by 1e9.
|
|
77
|
+
*
|
|
78
|
+
* @generated from field: int64 reference_price_ticks = 6;
|
|
79
|
+
*/
|
|
80
|
+
referencePriceTicks: bigint;
|
|
81
|
+
/**
|
|
82
|
+
* True once the price has been seen on the far side of the alert price, so
|
|
83
|
+
* the next crossing fires the alert. False while an alert created past its
|
|
84
|
+
* alert price waits for the price to move back.
|
|
85
|
+
*
|
|
86
|
+
* @generated from field: bool armed = 7;
|
|
87
|
+
*/
|
|
88
|
+
armed: boolean;
|
|
89
|
+
/**
|
|
90
|
+
* Current state of the alert.
|
|
91
|
+
*
|
|
92
|
+
* @generated from field: alerts.v1.AlertStatus status = 8;
|
|
93
|
+
*/
|
|
94
|
+
status: AlertStatus;
|
|
95
|
+
/**
|
|
96
|
+
* Where the alert is delivered when it fires, in ascending enum order.
|
|
97
|
+
*
|
|
98
|
+
* @generated from field: repeated alerts.v1.AlertChannel channels = 9;
|
|
99
|
+
*/
|
|
100
|
+
channels: AlertChannel[];
|
|
101
|
+
/**
|
|
102
|
+
* Revision of the alert, starting at 1. It increases with every change the
|
|
103
|
+
* caller makes; pass it as expected_revision to UpdateAlert.
|
|
104
|
+
*
|
|
105
|
+
* @generated from field: uint64 revision = 10;
|
|
106
|
+
*/
|
|
107
|
+
revision: bigint;
|
|
108
|
+
/**
|
|
109
|
+
* When the alert was created.
|
|
110
|
+
*
|
|
111
|
+
* @generated from field: google.protobuf.Timestamp created_at = 11;
|
|
112
|
+
*/
|
|
113
|
+
createdAt?: Timestamp | undefined;
|
|
114
|
+
/**
|
|
115
|
+
* When the caller last changed the alert.
|
|
116
|
+
*
|
|
117
|
+
* @generated from field: google.protobuf.Timestamp updated_at = 12;
|
|
118
|
+
*/
|
|
119
|
+
updatedAt?: Timestamp | undefined;
|
|
120
|
+
/**
|
|
121
|
+
* When the alert fired. Omitted unless status is TRIGGERED.
|
|
122
|
+
*
|
|
123
|
+
* @generated from field: google.protobuf.Timestamp triggered_at = 13;
|
|
124
|
+
*/
|
|
125
|
+
triggeredAt?: Timestamp | undefined;
|
|
126
|
+
/**
|
|
127
|
+
* Price that fired the alert, in quote units scaled by 1e9. Zero unless
|
|
128
|
+
* status is TRIGGERED.
|
|
129
|
+
*
|
|
130
|
+
* @generated from field: int64 triggered_price_ticks = 14;
|
|
131
|
+
*/
|
|
132
|
+
triggeredPriceTicks: bigint;
|
|
133
|
+
};
|
|
134
|
+
/**
|
|
135
|
+
* Describes the message alerts.v1.PriceAlert.
|
|
136
|
+
* Use `create(PriceAlertSchema)` to create a new message.
|
|
137
|
+
*/
|
|
138
|
+
declare const PriceAlertSchema: GenMessage<PriceAlert>;
|
|
139
|
+
/**
|
|
140
|
+
* CreateAlertRequest creates a price alert for the caller.
|
|
141
|
+
*
|
|
142
|
+
* @generated from message alerts.v1.CreateAlertRequest
|
|
143
|
+
*/
|
|
144
|
+
type CreateAlertRequest = Message<"alerts.v1.CreateAlertRequest"> & {
|
|
145
|
+
/**
|
|
146
|
+
* Numeric spot market identifier; resolve it with GetSpotConfig.
|
|
147
|
+
*
|
|
148
|
+
* @generated from field: uint32 symbol_id = 1;
|
|
149
|
+
*/
|
|
150
|
+
symbolId: number;
|
|
151
|
+
/**
|
|
152
|
+
* Price crossing to wait for.
|
|
153
|
+
*
|
|
154
|
+
* @generated from field: alerts.v1.AlertDirection direction = 2;
|
|
155
|
+
*/
|
|
156
|
+
direction: AlertDirection;
|
|
157
|
+
/**
|
|
158
|
+
* Price to watch. Unspecified means INDEX_PRICE on a market that has an
|
|
159
|
+
* index price, which is harder to move on a thin market, and LAST_PRICE
|
|
160
|
+
* otherwise; the returned alert states the price it watches.
|
|
161
|
+
*
|
|
162
|
+
* @generated from field: alerts.v1.AlertPriceSource price_source = 3;
|
|
163
|
+
*/
|
|
164
|
+
priceSource: AlertPriceSource;
|
|
165
|
+
/**
|
|
166
|
+
* Alert price in quote units scaled by 1e9, for example 90000000000000 for
|
|
167
|
+
* 90,000.
|
|
168
|
+
*
|
|
169
|
+
* @generated from field: int64 price_ticks = 4;
|
|
170
|
+
*/
|
|
171
|
+
priceTicks: bigint;
|
|
172
|
+
/**
|
|
173
|
+
* Where to deliver the alert when it fires: one to two distinct channels.
|
|
174
|
+
*
|
|
175
|
+
* @generated from field: repeated alerts.v1.AlertChannel channels = 5;
|
|
176
|
+
*/
|
|
177
|
+
channels: AlertChannel[];
|
|
178
|
+
/**
|
|
179
|
+
* Optional client-chosen key, unique per caller, that makes creating
|
|
180
|
+
* idempotent: the same key and request return the alert the first request
|
|
181
|
+
* created, in its current state; another request with the same key is
|
|
182
|
+
* IDEMPOTENCY_CONFLICT. A create key is kept as long as its alert.
|
|
183
|
+
*
|
|
184
|
+
* @generated from field: string idempotency_key = 6;
|
|
185
|
+
*/
|
|
186
|
+
idempotencyKey: string;
|
|
187
|
+
};
|
|
188
|
+
/**
|
|
189
|
+
* Describes the message alerts.v1.CreateAlertRequest.
|
|
190
|
+
* Use `create(CreateAlertRequestSchema)` to create a new message.
|
|
191
|
+
*/
|
|
192
|
+
declare const CreateAlertRequestSchema: GenMessage<CreateAlertRequest>;
|
|
193
|
+
/**
|
|
194
|
+
* CreateAlertResponse returns the created alert.
|
|
195
|
+
*
|
|
196
|
+
* @generated from message alerts.v1.CreateAlertResponse
|
|
197
|
+
*/
|
|
198
|
+
type CreateAlertResponse = Message<"alerts.v1.CreateAlertResponse"> & {
|
|
199
|
+
/**
|
|
200
|
+
* The alert.
|
|
201
|
+
*
|
|
202
|
+
* @generated from field: alerts.v1.PriceAlert alert = 1;
|
|
203
|
+
*/
|
|
204
|
+
alert?: PriceAlert | undefined;
|
|
205
|
+
};
|
|
206
|
+
/**
|
|
207
|
+
* Describes the message alerts.v1.CreateAlertResponse.
|
|
208
|
+
* Use `create(CreateAlertResponseSchema)` to create a new message.
|
|
209
|
+
*/
|
|
210
|
+
declare const CreateAlertResponseSchema: GenMessage<CreateAlertResponse>;
|
|
211
|
+
/**
|
|
212
|
+
* ListAlertsRequest lists the caller's alerts.
|
|
213
|
+
*
|
|
214
|
+
* @generated from message alerts.v1.ListAlertsRequest
|
|
215
|
+
*/
|
|
216
|
+
type ListAlertsRequest = Message<"alerts.v1.ListAlertsRequest"> & {
|
|
217
|
+
/**
|
|
218
|
+
* Return only alerts in these states. Empty returns every state.
|
|
219
|
+
*
|
|
220
|
+
* @generated from field: repeated alerts.v1.AlertStatus statuses = 1;
|
|
221
|
+
*/
|
|
222
|
+
statuses: AlertStatus[];
|
|
223
|
+
/**
|
|
224
|
+
* Return only alerts on this market. Zero returns every market.
|
|
225
|
+
*
|
|
226
|
+
* @generated from field: uint32 symbol_id = 2;
|
|
227
|
+
*/
|
|
228
|
+
symbolId: number;
|
|
229
|
+
/**
|
|
230
|
+
* Maximum number of alerts to return: default 50, max 200.
|
|
231
|
+
*
|
|
232
|
+
* @generated from field: uint32 limit = 3;
|
|
233
|
+
*/
|
|
234
|
+
limit: number;
|
|
235
|
+
/**
|
|
236
|
+
* Opaque, keyset-backed and exclusive cursor from a previous response's
|
|
237
|
+
* next_page_token. It is bound to the caller, statuses and symbol_id; reuse
|
|
238
|
+
* it only with the same values.
|
|
239
|
+
*
|
|
240
|
+
* @generated from field: string page_token = 4;
|
|
241
|
+
*/
|
|
242
|
+
pageToken: string;
|
|
243
|
+
};
|
|
244
|
+
/**
|
|
245
|
+
* Describes the message alerts.v1.ListAlertsRequest.
|
|
246
|
+
* Use `create(ListAlertsRequestSchema)` to create a new message.
|
|
247
|
+
*/
|
|
248
|
+
declare const ListAlertsRequestSchema: GenMessage<ListAlertsRequest>;
|
|
249
|
+
/**
|
|
250
|
+
* ListAlertsResponse returns one page of the caller's alerts.
|
|
251
|
+
*
|
|
252
|
+
* @generated from message alerts.v1.ListAlertsResponse
|
|
253
|
+
*/
|
|
254
|
+
type ListAlertsResponse = Message<"alerts.v1.ListAlertsResponse"> & {
|
|
255
|
+
/**
|
|
256
|
+
* Alerts, newest first.
|
|
257
|
+
*
|
|
258
|
+
* @generated from field: repeated alerts.v1.PriceAlert alerts = 1;
|
|
259
|
+
*/
|
|
260
|
+
alerts: PriceAlert[];
|
|
261
|
+
/**
|
|
262
|
+
* Cursor for the next page. Empty when no more results exist.
|
|
263
|
+
*
|
|
264
|
+
* @generated from field: string next_page_token = 2;
|
|
265
|
+
*/
|
|
266
|
+
nextPageToken: string;
|
|
267
|
+
};
|
|
268
|
+
/**
|
|
269
|
+
* Describes the message alerts.v1.ListAlertsResponse.
|
|
270
|
+
* Use `create(ListAlertsResponseSchema)` to create a new message.
|
|
271
|
+
*/
|
|
272
|
+
declare const ListAlertsResponseSchema: GenMessage<ListAlertsResponse>;
|
|
273
|
+
/**
|
|
274
|
+
* AlertUpdate holds the fields UpdateAlert can change.
|
|
275
|
+
*
|
|
276
|
+
* @generated from message alerts.v1.AlertUpdate
|
|
277
|
+
*/
|
|
278
|
+
type AlertUpdate = Message<"alerts.v1.AlertUpdate"> & {
|
|
279
|
+
/**
|
|
280
|
+
* New price crossing to wait for.
|
|
281
|
+
*
|
|
282
|
+
* @generated from field: alerts.v1.AlertDirection direction = 1;
|
|
283
|
+
*/
|
|
284
|
+
direction: AlertDirection;
|
|
285
|
+
/**
|
|
286
|
+
* New alert price in quote units scaled by 1e9.
|
|
287
|
+
*
|
|
288
|
+
* @generated from field: int64 price_ticks = 2;
|
|
289
|
+
*/
|
|
290
|
+
priceTicks: bigint;
|
|
291
|
+
/**
|
|
292
|
+
* New delivery channels: one to two distinct channels. Replaces the whole
|
|
293
|
+
* list.
|
|
294
|
+
*
|
|
295
|
+
* @generated from field: repeated alerts.v1.AlertChannel channels = 3;
|
|
296
|
+
*/
|
|
297
|
+
channels: AlertChannel[];
|
|
298
|
+
};
|
|
299
|
+
/**
|
|
300
|
+
* Describes the message alerts.v1.AlertUpdate.
|
|
301
|
+
* Use `create(AlertUpdateSchema)` to create a new message.
|
|
302
|
+
*/
|
|
303
|
+
declare const AlertUpdateSchema: GenMessage<AlertUpdate>;
|
|
304
|
+
/**
|
|
305
|
+
* UpdateAlertRequest changes an active or triggered alert of the caller.
|
|
306
|
+
*
|
|
307
|
+
* @generated from message alerts.v1.UpdateAlertRequest
|
|
308
|
+
*/
|
|
309
|
+
type UpdateAlertRequest = Message<"alerts.v1.UpdateAlertRequest"> & {
|
|
310
|
+
/**
|
|
311
|
+
* Public alert ID.
|
|
312
|
+
*
|
|
313
|
+
* @generated from field: fixed64 alert_id = 1;
|
|
314
|
+
*/
|
|
315
|
+
alertId: bigint;
|
|
316
|
+
/**
|
|
317
|
+
* New values of the fields update_mask names.
|
|
318
|
+
*
|
|
319
|
+
* @generated from field: alerts.v1.AlertUpdate update = 2;
|
|
320
|
+
*/
|
|
321
|
+
update?: AlertUpdate | undefined;
|
|
322
|
+
/**
|
|
323
|
+
* Fields of update to apply, by name: direction, price_ticks and channels.
|
|
324
|
+
* Required. An empty mask changes no field: it sets a TRIGGERED alert again
|
|
325
|
+
* and changes nothing on an ACTIVE one.
|
|
326
|
+
*
|
|
327
|
+
* @generated from field: google.protobuf.FieldMask update_mask = 3;
|
|
328
|
+
*/
|
|
329
|
+
updateMask?: FieldMask | undefined;
|
|
330
|
+
/**
|
|
331
|
+
* The alert's current revision, from the last read.
|
|
332
|
+
*
|
|
333
|
+
* @generated from field: uint64 expected_revision = 4;
|
|
334
|
+
*/
|
|
335
|
+
expectedRevision: bigint;
|
|
336
|
+
/**
|
|
337
|
+
* Optional client-chosen key, unique per caller, that makes the update
|
|
338
|
+
* idempotent: the same key and request (alert, update and update_mask;
|
|
339
|
+
* expected_revision aside) return the alert in its current state and apply
|
|
340
|
+
* nothing again, even after it fired or changed since; another request with
|
|
341
|
+
* the same key is IDEMPOTENCY_CONFLICT. A key is kept as long as its alert,
|
|
342
|
+
* so a repeat is recognized however late it comes. An alert keeps at most
|
|
343
|
+
* 1,000 keys: an update with a new key beyond that is
|
|
344
|
+
* ALERT_UPDATE_LIMIT_REACHED.
|
|
345
|
+
*
|
|
346
|
+
* @generated from field: string idempotency_key = 5;
|
|
347
|
+
*/
|
|
348
|
+
idempotencyKey: string;
|
|
349
|
+
};
|
|
350
|
+
/**
|
|
351
|
+
* Describes the message alerts.v1.UpdateAlertRequest.
|
|
352
|
+
* Use `create(UpdateAlertRequestSchema)` to create a new message.
|
|
353
|
+
*/
|
|
354
|
+
declare const UpdateAlertRequestSchema: GenMessage<UpdateAlertRequest>;
|
|
355
|
+
/**
|
|
356
|
+
* UpdateAlertResponse returns the alert after the update.
|
|
357
|
+
*
|
|
358
|
+
* @generated from message alerts.v1.UpdateAlertResponse
|
|
359
|
+
*/
|
|
360
|
+
type UpdateAlertResponse = Message<"alerts.v1.UpdateAlertResponse"> & {
|
|
361
|
+
/**
|
|
362
|
+
* The alert. For REPLAYED, the alert as it is now.
|
|
363
|
+
*
|
|
364
|
+
* @generated from field: alerts.v1.PriceAlert alert = 1;
|
|
365
|
+
*/
|
|
366
|
+
alert?: PriceAlert | undefined;
|
|
367
|
+
/**
|
|
368
|
+
* What this call did.
|
|
369
|
+
*
|
|
370
|
+
* @generated from field: alerts.v1.UpdateOutcome outcome = 2;
|
|
371
|
+
*/
|
|
372
|
+
outcome: UpdateOutcome;
|
|
373
|
+
};
|
|
374
|
+
/**
|
|
375
|
+
* Describes the message alerts.v1.UpdateAlertResponse.
|
|
376
|
+
* Use `create(UpdateAlertResponseSchema)` to create a new message.
|
|
377
|
+
*/
|
|
378
|
+
declare const UpdateAlertResponseSchema: GenMessage<UpdateAlertResponse>;
|
|
379
|
+
/**
|
|
380
|
+
* CancelAlertRequest cancels an active alert of the caller.
|
|
381
|
+
*
|
|
382
|
+
* @generated from message alerts.v1.CancelAlertRequest
|
|
383
|
+
*/
|
|
384
|
+
type CancelAlertRequest = Message<"alerts.v1.CancelAlertRequest"> & {
|
|
385
|
+
/**
|
|
386
|
+
* Public alert ID.
|
|
387
|
+
*
|
|
388
|
+
* @generated from field: fixed64 alert_id = 1;
|
|
389
|
+
*/
|
|
390
|
+
alertId: bigint;
|
|
391
|
+
};
|
|
392
|
+
/**
|
|
393
|
+
* Describes the message alerts.v1.CancelAlertRequest.
|
|
394
|
+
* Use `create(CancelAlertRequestSchema)` to create a new message.
|
|
395
|
+
*/
|
|
396
|
+
declare const CancelAlertRequestSchema: GenMessage<CancelAlertRequest>;
|
|
397
|
+
/**
|
|
398
|
+
* CancelAlertResponse returns the cancelled alert.
|
|
399
|
+
*
|
|
400
|
+
* @generated from message alerts.v1.CancelAlertResponse
|
|
401
|
+
*/
|
|
402
|
+
type CancelAlertResponse = Message<"alerts.v1.CancelAlertResponse"> & {
|
|
403
|
+
/**
|
|
404
|
+
* The alert.
|
|
405
|
+
*
|
|
406
|
+
* @generated from field: alerts.v1.PriceAlert alert = 1;
|
|
407
|
+
*/
|
|
408
|
+
alert?: PriceAlert | undefined;
|
|
409
|
+
};
|
|
410
|
+
/**
|
|
411
|
+
* Describes the message alerts.v1.CancelAlertResponse.
|
|
412
|
+
* Use `create(CancelAlertResponseSchema)` to create a new message.
|
|
413
|
+
*/
|
|
414
|
+
declare const CancelAlertResponseSchema: GenMessage<CancelAlertResponse>;
|
|
415
|
+
/**
|
|
416
|
+
* ErrorCode identifies a Price Alert API error.
|
|
417
|
+
*
|
|
418
|
+
* @generated from enum alerts.v1.ErrorCode
|
|
419
|
+
*/
|
|
420
|
+
declare enum ErrorCode {
|
|
421
|
+
/**
|
|
422
|
+
* No code.
|
|
423
|
+
*
|
|
424
|
+
* @generated from enum value: ERROR_UNSPECIFIED = 0;
|
|
425
|
+
*/
|
|
426
|
+
ERROR_UNSPECIFIED = 0,
|
|
427
|
+
/**
|
|
428
|
+
* No alert of the caller has this ID. Another account's alert is reported
|
|
429
|
+
* the same way.
|
|
430
|
+
*
|
|
431
|
+
* @generated from enum value: ALERT_NOT_FOUND = 1;
|
|
432
|
+
*/
|
|
433
|
+
ALERT_NOT_FOUND = 1,
|
|
434
|
+
/**
|
|
435
|
+
* The market is not listed.
|
|
436
|
+
*
|
|
437
|
+
* @generated from enum value: UNKNOWN_SYMBOL = 2;
|
|
438
|
+
*/
|
|
439
|
+
UNKNOWN_SYMBOL = 2,
|
|
440
|
+
/**
|
|
441
|
+
* The market has no current price of the requested price source, so the
|
|
442
|
+
* alert cannot record the price it starts from. Retry shortly.
|
|
443
|
+
*
|
|
444
|
+
* @generated from enum value: PRICE_UNAVAILABLE = 3;
|
|
445
|
+
*/
|
|
446
|
+
PRICE_UNAVAILABLE = 3,
|
|
447
|
+
/**
|
|
448
|
+
* The market has no index price; use LAST_PRICE.
|
|
449
|
+
*
|
|
450
|
+
* @generated from enum value: PRICE_SOURCE_UNSUPPORTED = 4;
|
|
451
|
+
*/
|
|
452
|
+
PRICE_SOURCE_UNSUPPORTED = 4,
|
|
453
|
+
/**
|
|
454
|
+
* The caller already has the maximum number of active alerts. Cancel one
|
|
455
|
+
* first.
|
|
456
|
+
*
|
|
457
|
+
* @generated from enum value: ALERT_LIMIT_REACHED = 5;
|
|
458
|
+
*/
|
|
459
|
+
ALERT_LIMIT_REACHED = 5,
|
|
460
|
+
/**
|
|
461
|
+
* The alert changed after the caller read it: expected_revision is not its
|
|
462
|
+
* current revision. Read it again and retry.
|
|
463
|
+
*
|
|
464
|
+
* @generated from enum value: REVISION_CONFLICT = 6;
|
|
465
|
+
*/
|
|
466
|
+
REVISION_CONFLICT = 6,
|
|
467
|
+
/**
|
|
468
|
+
* The alert was cancelled; it can no longer change.
|
|
469
|
+
*
|
|
470
|
+
* @generated from enum value: ALERT_CANCELLED = 7;
|
|
471
|
+
*/
|
|
472
|
+
ALERT_CANCELLED = 7,
|
|
473
|
+
/**
|
|
474
|
+
* The alert already fired, so there is nothing to cancel. Update it to set
|
|
475
|
+
* it again.
|
|
476
|
+
*
|
|
477
|
+
* @generated from enum value: ALERT_TRIGGERED = 8;
|
|
478
|
+
*/
|
|
479
|
+
ALERT_TRIGGERED = 8,
|
|
480
|
+
/**
|
|
481
|
+
* The idempotency key was already used with a different request. The
|
|
482
|
+
* original alert, or the original update, stands.
|
|
483
|
+
*
|
|
484
|
+
* @generated from enum value: IDEMPOTENCY_CONFLICT = 9;
|
|
485
|
+
*/
|
|
486
|
+
IDEMPOTENCY_CONFLICT = 9,
|
|
487
|
+
/**
|
|
488
|
+
* A required service is temporarily unavailable; retry the same request.
|
|
489
|
+
*
|
|
490
|
+
* @generated from enum value: SERVICE_UNAVAILABLE = 10;
|
|
491
|
+
*/
|
|
492
|
+
SERVICE_UNAVAILABLE = 10,
|
|
493
|
+
/**
|
|
494
|
+
* The API key is scoped to a subaccount. Price alerts belong to the root
|
|
495
|
+
* account: use a session or an API key of the root account.
|
|
496
|
+
*
|
|
497
|
+
* @generated from enum value: SUBACCOUNT_KEY_REFUSED = 11;
|
|
498
|
+
*/
|
|
499
|
+
SUBACCOUNT_KEY_REFUSED = 11,
|
|
500
|
+
/**
|
|
501
|
+
* The alert already holds the maximum number of update idempotency keys
|
|
502
|
+
* (1,000), so an update with a new key is refused. Updates without a key,
|
|
503
|
+
* and repeats of a stored key, still work; or create a new alert.
|
|
504
|
+
*
|
|
505
|
+
* @generated from enum value: ALERT_UPDATE_LIMIT_REACHED = 12;
|
|
506
|
+
*/
|
|
507
|
+
ALERT_UPDATE_LIMIT_REACHED = 12
|
|
508
|
+
}
|
|
509
|
+
/**
|
|
510
|
+
* Describes the enum alerts.v1.ErrorCode.
|
|
511
|
+
*/
|
|
512
|
+
declare const ErrorCodeSchema: GenEnum<ErrorCode>;
|
|
513
|
+
/**
|
|
514
|
+
* AlertDirection is the price crossing an alert waits for. Both directions
|
|
515
|
+
* include the alert price itself, as stop and take-profit triggers do.
|
|
516
|
+
*
|
|
517
|
+
* @generated from enum alerts.v1.AlertDirection
|
|
518
|
+
*/
|
|
519
|
+
declare enum AlertDirection {
|
|
520
|
+
/**
|
|
521
|
+
* Not set. Rejected in requests.
|
|
522
|
+
*
|
|
523
|
+
* @generated from enum value: DIRECTION_UNSPECIFIED = 0;
|
|
524
|
+
*/
|
|
525
|
+
DIRECTION_UNSPECIFIED = 0,
|
|
526
|
+
/**
|
|
527
|
+
* Fires when the price rises to or above the alert price.
|
|
528
|
+
*
|
|
529
|
+
* @generated from enum value: ABOVE = 1;
|
|
530
|
+
*/
|
|
531
|
+
ABOVE = 1,
|
|
532
|
+
/**
|
|
533
|
+
* Fires when the price falls to or below the alert price.
|
|
534
|
+
*
|
|
535
|
+
* @generated from enum value: BELOW = 2;
|
|
536
|
+
*/
|
|
537
|
+
BELOW = 2
|
|
538
|
+
}
|
|
539
|
+
/**
|
|
540
|
+
* Describes the enum alerts.v1.AlertDirection.
|
|
541
|
+
*/
|
|
542
|
+
declare const AlertDirectionSchema: GenEnum<AlertDirection>;
|
|
543
|
+
/**
|
|
544
|
+
* AlertPriceSource is the price an alert watches.
|
|
545
|
+
*
|
|
546
|
+
* @generated from enum alerts.v1.AlertPriceSource
|
|
547
|
+
*/
|
|
548
|
+
declare enum AlertPriceSource {
|
|
549
|
+
/**
|
|
550
|
+
* Not set. In requests it means INDEX_PRICE on a market that has an index
|
|
551
|
+
* price, and LAST_PRICE otherwise. Never returned.
|
|
552
|
+
*
|
|
553
|
+
* @generated from enum value: PRICE_SOURCE_UNSPECIFIED = 0;
|
|
554
|
+
*/
|
|
555
|
+
PRICE_SOURCE_UNSPECIFIED = 0,
|
|
556
|
+
/**
|
|
557
|
+
* The market's last traded price.
|
|
558
|
+
*
|
|
559
|
+
* @generated from enum value: LAST_PRICE = 1;
|
|
560
|
+
*/
|
|
561
|
+
LAST_PRICE = 1,
|
|
562
|
+
/**
|
|
563
|
+
* The market's index price: a fair price computed from other venues.
|
|
564
|
+
* Available only on markets that have one.
|
|
565
|
+
*
|
|
566
|
+
* @generated from enum value: INDEX_PRICE = 2;
|
|
567
|
+
*/
|
|
568
|
+
INDEX_PRICE = 2
|
|
569
|
+
}
|
|
570
|
+
/**
|
|
571
|
+
* Describes the enum alerts.v1.AlertPriceSource.
|
|
572
|
+
*/
|
|
573
|
+
declare const AlertPriceSourceSchema: GenEnum<AlertPriceSource>;
|
|
574
|
+
/**
|
|
575
|
+
* AlertStatus is the state of an alert.
|
|
576
|
+
*
|
|
577
|
+
* @generated from enum alerts.v1.AlertStatus
|
|
578
|
+
*/
|
|
579
|
+
declare enum AlertStatus {
|
|
580
|
+
/**
|
|
581
|
+
* Not set. Never returned.
|
|
582
|
+
*
|
|
583
|
+
* @generated from enum value: STATUS_UNSPECIFIED = 0;
|
|
584
|
+
*/
|
|
585
|
+
STATUS_UNSPECIFIED = 0,
|
|
586
|
+
/**
|
|
587
|
+
* Waiting for its price crossing.
|
|
588
|
+
*
|
|
589
|
+
* @generated from enum value: ACTIVE = 1;
|
|
590
|
+
*/
|
|
591
|
+
ACTIVE = 1,
|
|
592
|
+
/**
|
|
593
|
+
* Fired once and stopped. UpdateAlert sets it again.
|
|
594
|
+
*
|
|
595
|
+
* @generated from enum value: TRIGGERED = 2;
|
|
596
|
+
*/
|
|
597
|
+
TRIGGERED = 2,
|
|
598
|
+
/**
|
|
599
|
+
* Cancelled. It never fires again.
|
|
600
|
+
*
|
|
601
|
+
* @generated from enum value: CANCELLED = 3;
|
|
602
|
+
*/
|
|
603
|
+
CANCELLED = 3
|
|
604
|
+
}
|
|
605
|
+
/**
|
|
606
|
+
* Describes the enum alerts.v1.AlertStatus.
|
|
607
|
+
*/
|
|
608
|
+
declare const AlertStatusSchema: GenEnum<AlertStatus>;
|
|
609
|
+
/**
|
|
610
|
+
* UpdateOutcome is what an UpdateAlert call did, as decided in the
|
|
611
|
+
* transaction that answered it.
|
|
612
|
+
*
|
|
613
|
+
* @generated from enum alerts.v1.UpdateOutcome
|
|
614
|
+
*/
|
|
615
|
+
declare enum UpdateOutcome {
|
|
616
|
+
/**
|
|
617
|
+
* Not set. Never returned.
|
|
618
|
+
*
|
|
619
|
+
* @generated from enum value: UPDATE_OUTCOME_UNSPECIFIED = 0;
|
|
620
|
+
*/
|
|
621
|
+
UPDATE_OUTCOME_UNSPECIFIED = 0,
|
|
622
|
+
/**
|
|
623
|
+
* This call changed the alert.
|
|
624
|
+
*
|
|
625
|
+
* @generated from enum value: APPLIED = 1;
|
|
626
|
+
*/
|
|
627
|
+
APPLIED = 1,
|
|
628
|
+
/**
|
|
629
|
+
* This call was processed now and changed nothing: the alert already held
|
|
630
|
+
* the requested values.
|
|
631
|
+
*
|
|
632
|
+
* @generated from enum value: UNCHANGED = 2;
|
|
633
|
+
*/
|
|
634
|
+
UNCHANGED = 2,
|
|
635
|
+
/**
|
|
636
|
+
* idempotency_key was already used for this request: nothing was applied
|
|
637
|
+
* now, and the alert is returned as it is now, which may have fired or
|
|
638
|
+
* changed since.
|
|
639
|
+
*
|
|
640
|
+
* @generated from enum value: REPLAYED = 3;
|
|
641
|
+
*/
|
|
642
|
+
REPLAYED = 3
|
|
643
|
+
}
|
|
644
|
+
/**
|
|
645
|
+
* Describes the enum alerts.v1.UpdateOutcome.
|
|
646
|
+
*/
|
|
647
|
+
declare const UpdateOutcomeSchema: GenEnum<UpdateOutcome>;
|
|
648
|
+
/**
|
|
649
|
+
* AlertChannel is where a fired alert is delivered.
|
|
650
|
+
*
|
|
651
|
+
* @generated from enum alerts.v1.AlertChannel
|
|
652
|
+
*/
|
|
653
|
+
declare enum AlertChannel {
|
|
654
|
+
/**
|
|
655
|
+
* Not set. Rejected in requests.
|
|
656
|
+
*
|
|
657
|
+
* @generated from enum value: CHANNEL_UNSPECIFIED = 0;
|
|
658
|
+
*/
|
|
659
|
+
CHANNEL_UNSPECIFIED = 0,
|
|
660
|
+
/**
|
|
661
|
+
* The notification inbox on the website and in the app.
|
|
662
|
+
*
|
|
663
|
+
* @generated from enum value: IN_APP = 1;
|
|
664
|
+
*/
|
|
665
|
+
IN_APP = 1,
|
|
666
|
+
/**
|
|
667
|
+
* A direct message from the Polyester Telegram bot to the Telegram account
|
|
668
|
+
* linked to the caller's account.
|
|
669
|
+
*
|
|
670
|
+
* @generated from enum value: TELEGRAM = 2;
|
|
671
|
+
*/
|
|
672
|
+
TELEGRAM = 2
|
|
673
|
+
}
|
|
674
|
+
/**
|
|
675
|
+
* Describes the enum alerts.v1.AlertChannel.
|
|
676
|
+
*/
|
|
677
|
+
declare const AlertChannelSchema: GenEnum<AlertChannel>;
|
|
678
|
+
/**
|
|
679
|
+
* PriceAlertService manages the caller's price alerts. An alert belongs to
|
|
680
|
+
* the caller's root account, the person, not to a trading account: a session
|
|
681
|
+
* and the root account's API keys see the same alerts, and an API key scoped
|
|
682
|
+
* to a subaccount is refused (PERMISSION_DENIED, SUBACCOUNT_KEY_REFUSED). No
|
|
683
|
+
* call changes balances, orders or account settings.
|
|
684
|
+
*
|
|
685
|
+
* @generated from service alerts.v1.PriceAlertService
|
|
686
|
+
*/
|
|
687
|
+
declare const PriceAlertService: GenService<{
|
|
688
|
+
/**
|
|
689
|
+
* CreateAlert creates an active alert and records the current price of its
|
|
690
|
+
* price source as its reference price. An alert whose condition already
|
|
691
|
+
* holds at that price waits for the price to cross back first.
|
|
692
|
+
*
|
|
693
|
+
* Errors:
|
|
694
|
+
* - INVALID_ARGUMENT: malformed request, or UNKNOWN_SYMBOL.
|
|
695
|
+
* - FAILED_PRECONDITION: PRICE_SOURCE_UNSUPPORTED (INDEX_PRICE requested on
|
|
696
|
+
* a market without one), or ALERT_LIMIT_REACHED.
|
|
697
|
+
* - ALREADY_EXISTS: IDEMPOTENCY_CONFLICT; the original alert stands.
|
|
698
|
+
* - UNAVAILABLE: PRICE_UNAVAILABLE or SERVICE_UNAVAILABLE; retry the same
|
|
699
|
+
* request.
|
|
700
|
+
* - PERMISSION_DENIED: SUBACCOUNT_KEY_REFUSED.
|
|
701
|
+
* - UNAUTHENTICATED: missing or invalid credentials.
|
|
702
|
+
*
|
|
703
|
+
* @generated from rpc alerts.v1.PriceAlertService.CreateAlert
|
|
704
|
+
*/
|
|
705
|
+
createAlert: {
|
|
706
|
+
methodKind: "unary";
|
|
707
|
+
input: typeof CreateAlertRequestSchema;
|
|
708
|
+
output: typeof CreateAlertResponseSchema;
|
|
709
|
+
};
|
|
710
|
+
/**
|
|
711
|
+
* ListAlerts lists the caller's alerts, newest first.
|
|
712
|
+
*
|
|
713
|
+
* Errors:
|
|
714
|
+
* - INVALID_ARGUMENT: malformed request or page token.
|
|
715
|
+
* - UNAVAILABLE: SERVICE_UNAVAILABLE; retry.
|
|
716
|
+
* - PERMISSION_DENIED: SUBACCOUNT_KEY_REFUSED.
|
|
717
|
+
* - UNAUTHENTICATED: missing or invalid credentials.
|
|
718
|
+
*
|
|
719
|
+
* @generated from rpc alerts.v1.PriceAlertService.ListAlerts
|
|
720
|
+
*/
|
|
721
|
+
listAlerts: {
|
|
722
|
+
methodKind: "unary";
|
|
723
|
+
input: typeof ListAlertsRequestSchema;
|
|
724
|
+
output: typeof ListAlertsResponseSchema;
|
|
725
|
+
};
|
|
726
|
+
/**
|
|
727
|
+
* UpdateAlert changes an alert's direction, price or channels. A change of
|
|
728
|
+
* direction or price records a new reference price, as creating does.
|
|
729
|
+
* Updating a TRIGGERED alert sets it again: it becomes ACTIVE with a new
|
|
730
|
+
* reference price, even when no field changes; an empty update_mask does
|
|
731
|
+
* only that. An update that changes nothing on an ACTIVE alert returns it
|
|
732
|
+
* unchanged. With an idempotency_key
|
|
733
|
+
* already used for the same request, it returns the alert as it is now and
|
|
734
|
+
* changes nothing: a retried or replayed update never sets the alert again.
|
|
735
|
+
*
|
|
736
|
+
* Errors:
|
|
737
|
+
* - INVALID_ARGUMENT: malformed request or update_mask.
|
|
738
|
+
* - NOT_FOUND: ALERT_NOT_FOUND.
|
|
739
|
+
* - ALREADY_EXISTS: IDEMPOTENCY_CONFLICT.
|
|
740
|
+
* - ABORTED: REVISION_CONFLICT.
|
|
741
|
+
* - FAILED_PRECONDITION: ALERT_CANCELLED, PRICE_SOURCE_UNSUPPORTED,
|
|
742
|
+
* ALERT_LIMIT_REACHED or ALERT_UPDATE_LIMIT_REACHED.
|
|
743
|
+
* - UNAVAILABLE: PRICE_UNAVAILABLE or SERVICE_UNAVAILABLE; retry.
|
|
744
|
+
* - PERMISSION_DENIED: SUBACCOUNT_KEY_REFUSED.
|
|
745
|
+
* - UNAUTHENTICATED: missing or invalid credentials.
|
|
746
|
+
*
|
|
747
|
+
* @generated from rpc alerts.v1.PriceAlertService.UpdateAlert
|
|
748
|
+
*/
|
|
749
|
+
updateAlert: {
|
|
750
|
+
methodKind: "unary";
|
|
751
|
+
input: typeof UpdateAlertRequestSchema;
|
|
752
|
+
output: typeof UpdateAlertResponseSchema;
|
|
753
|
+
};
|
|
754
|
+
/**
|
|
755
|
+
* CancelAlert cancels an active alert. Cancelling a cancelled alert returns
|
|
756
|
+
* it unchanged.
|
|
757
|
+
*
|
|
758
|
+
* Errors:
|
|
759
|
+
* - INVALID_ARGUMENT: malformed request.
|
|
760
|
+
* - NOT_FOUND: ALERT_NOT_FOUND.
|
|
761
|
+
* - FAILED_PRECONDITION: ALERT_TRIGGERED; the alert already fired.
|
|
762
|
+
* - UNAVAILABLE: SERVICE_UNAVAILABLE; retry.
|
|
763
|
+
* - PERMISSION_DENIED: SUBACCOUNT_KEY_REFUSED.
|
|
764
|
+
* - UNAUTHENTICATED: missing or invalid credentials.
|
|
765
|
+
*
|
|
766
|
+
* @generated from rpc alerts.v1.PriceAlertService.CancelAlert
|
|
767
|
+
*/
|
|
768
|
+
cancelAlert: {
|
|
769
|
+
methodKind: "unary";
|
|
770
|
+
input: typeof CancelAlertRequestSchema;
|
|
771
|
+
output: typeof CancelAlertResponseSchema;
|
|
772
|
+
};
|
|
773
|
+
}>;
|
|
774
|
+
//#endregion
|
|
775
|
+
export { AlertChannel, AlertChannelSchema, AlertDirection, AlertDirectionSchema, AlertPriceSource, AlertPriceSourceSchema, AlertStatus, AlertStatusSchema, AlertUpdate, AlertUpdateSchema, CancelAlertRequest, CancelAlertRequestSchema, CancelAlertResponse, CancelAlertResponseSchema, CreateAlertRequest, CreateAlertRequestSchema, CreateAlertResponse, CreateAlertResponseSchema, ErrorCode, ErrorCodeSchema, ErrorDetail, ErrorDetailSchema, ListAlertsRequest, ListAlertsRequestSchema, ListAlertsResponse, ListAlertsResponseSchema, PriceAlert, PriceAlertSchema, PriceAlertService, UpdateAlertRequest, UpdateAlertRequestSchema, UpdateAlertResponse, UpdateAlertResponseSchema, UpdateOutcome, UpdateOutcomeSchema, file_alerts_v1_price_alerts, price_alerts_pb_d_exports };
|
|
776
|
+
//# sourceMappingURL=price_alerts_pb.d.ts.map
|