import * as z from "zod"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * The buying_power in USD returned from the request. */ export type AssetBuyingPowerBuyingPowerAmount = { /** * The decimal value, as a string; Refer to [Google’s Decimal type protocol buffer](https://github.com/googleapis/googleapis/blob/40203ca1880849480bbff7b8715491060bbccdf1/google/type/decimal.proto#L33) for details */ value?: string | undefined; }; /** * The day_trade_buying_power_issued_amount is the day trade buying power of the account in USD, returned from the request. If the is_day_trade_buying_power_allowed boolean is true this will be set from day_trade_buying_power_issued value returned from the margins calculator, or else if it is false it will be set from buying_power_issued value returned from the margins calculator. */ export type AssetBuyingPowerDayTradeBuyingPowerAmount = { /** * The decimal value, as a string; Refer to [Google’s Decimal type protocol buffer](https://github.com/googleapis/googleapis/blob/40203ca1880849480bbff7b8715491060bbccdf1/google/type/decimal.proto#L33) for details */ value?: string | undefined; }; /** * The sma_amount is the special memorandum account amount in USD, returned from the request. This will only be populated for margin accounts and is the margin equity minus the RegT requirements. */ export type AssetBuyingPowerSmaAmount = { /** * The decimal value, as a string; Refer to [Google’s Decimal type protocol buffer](https://github.com/googleapis/googleapis/blob/40203ca1880849480bbff7b8715491060bbccdf1/google/type/decimal.proto#L33) for details */ value?: string | undefined; }; /** * Account Asset Buying Power fields returned from the request. */ export type AccountAssetBuyingPower = { /** * The buying_power in USD returned from the request. */ buyingPowerAmount?: AssetBuyingPowerBuyingPowerAmount | null | undefined; /** * The day_trade_buying_power_issued_amount is the day trade buying power of the account in USD, returned from the request. If the is_day_trade_buying_power_allowed boolean is true this will be set from day_trade_buying_power_issued value returned from the margins calculator, or else if it is false it will be set from buying_power_issued value returned from the margins calculator. */ dayTradeBuyingPowerAmount?: AssetBuyingPowerDayTradeBuyingPowerAmount | null | undefined; /** * The is_day_trade_buying_power_allowed boolean will be true if the account is a Margin account, PDT is true and SOD Account equity >= $25,000, otherwise it will be false. */ isDayTradeBuyingPowerAllowed?: boolean | undefined; /** * The sma_amount is the special memorandum account amount in USD, returned from the request. This will only be populated for margin accounts and is the margin equity minus the RegT requirements. */ smaAmount?: AssetBuyingPowerSmaAmount | null | undefined; }; /** * The account_equity in USD returned from the request. */ export type AssetBuyingPowerAccountEquityAmount = { /** * The decimal value, as a string; Refer to [Google’s Decimal type protocol buffer](https://github.com/googleapis/googleapis/blob/40203ca1880849480bbff7b8715491060bbccdf1/google/type/decimal.proto#L33) for details */ value?: string | undefined; }; /** * The position_market_value in USD returned from the request. */ export type AssetBuyingPowerPositionMarketValueAmount = { /** * The decimal value, as a string; Refer to [Google’s Decimal type protocol buffer](https://github.com/googleapis/googleapis/blob/40203ca1880849480bbff7b8715491060bbccdf1/google/type/decimal.proto#L33) for details */ value?: string | undefined; }; /** * Account Equity fields returned from the request. */ export type AccountEquity = { /** * The account_equity in USD returned from the request. */ accountEquityAmount?: AssetBuyingPowerAccountEquityAmount | null | undefined; /** * The position_market_value in USD returned from the request. */ positionMarketValueAmount?: AssetBuyingPowerPositionMarketValueAmount | null | undefined; }; /** * The asset_buying_power_max_amount is the max buying power in USD for an account to purchase a given asset, returned from the request. */ export type AssetBuyingPowerMaxAmount = { /** * The decimal value, as a string; Refer to [Google’s Decimal type protocol buffer](https://github.com/googleapis/googleapis/blob/40203ca1880849480bbff7b8715491060bbccdf1/google/type/decimal.proto#L33) for details */ value?: string | undefined; }; /** * The max_purchase_quantity is the maximum quantity of a given asset an account can buy, returned from the request. */ export type MaxPurchaseQuantity = { /** * The decimal value, as a string; Refer to [Google’s Decimal type protocol buffer](https://github.com/googleapis/googleapis/blob/40203ca1880849480bbff7b8715491060bbccdf1/google/type/decimal.proto#L33) for details */ value?: string | undefined; }; /** * The percentage_requirements, which is the higher of initial and maintenance percentage requirements, returned from the request. */ export type PercentageRequirements = { /** * The decimal value, as a string; Refer to [Google’s Decimal type protocol buffer](https://github.com/googleapis/googleapis/blob/40203ca1880849480bbff7b8715491060bbccdf1/google/type/decimal.proto#L33) for details */ value?: string | undefined; }; /** * Day Trade Asset Buying Power figures returned from the request. */ export type DayTrade = { /** * The asset_buying_power_max_amount is the max buying power in USD for an account to purchase a given asset, returned from the request. */ assetBuyingPowerMaxAmount?: AssetBuyingPowerMaxAmount | null | undefined; /** * The max_purchase_quantity is the maximum quantity of a given asset an account can buy, returned from the request. */ maxPurchaseQuantity?: MaxPurchaseQuantity | null | undefined; /** * The percentage_requirements, which is the higher of initial and maintenance percentage requirements, returned from the request. */ percentageRequirements?: PercentageRequirements | null | undefined; }; /** * The asset_buying_power_max_amount is the max buying power in USD for an account to purchase a given asset, returned from the request. */ export type AssetBuyingPowerAssetBuyingPowerMaxAmount = { /** * The decimal value, as a string; Refer to [Google’s Decimal type protocol buffer](https://github.com/googleapis/googleapis/blob/40203ca1880849480bbff7b8715491060bbccdf1/google/type/decimal.proto#L33) for details */ value?: string | undefined; }; /** * The max_purchase_quantity is the maximum quantity of a given asset an account can buy, returned from the request. */ export type AssetBuyingPowerMaxPurchaseQuantity = { /** * The decimal value, as a string; Refer to [Google’s Decimal type protocol buffer](https://github.com/googleapis/googleapis/blob/40203ca1880849480bbff7b8715491060bbccdf1/google/type/decimal.proto#L33) for details */ value?: string | undefined; }; /** * The percentage_requirements, which is the higher of initial and maintenance percentage requirements, returned from the request. */ export type AssetBuyingPowerPercentageRequirements = { /** * The decimal value, as a string; Refer to [Google’s Decimal type protocol buffer](https://github.com/googleapis/googleapis/blob/40203ca1880849480bbff7b8715491060bbccdf1/google/type/decimal.proto#L33) for details */ value?: string | undefined; }; /** * Non Day Trade Asset Buying Power figures returned from the request. */ export type NonDayTrade = { /** * The asset_buying_power_max_amount is the max buying power in USD for an account to purchase a given asset, returned from the request. */ assetBuyingPowerMaxAmount?: AssetBuyingPowerAssetBuyingPowerMaxAmount | null | undefined; /** * The max_purchase_quantity is the maximum quantity of a given asset an account can buy, returned from the request. */ maxPurchaseQuantity?: AssetBuyingPowerMaxPurchaseQuantity | null | undefined; /** * The percentage_requirements, which is the higher of initial and maintenance percentage requirements, returned from the request. */ percentageRequirements?: AssetBuyingPowerPercentageRequirements | null | undefined; }; /** * The current price of the asset in USD returned from the request. */ export type PriceAmount = { /** * The decimal value, as a string; Refer to [Google’s Decimal type protocol buffer](https://github.com/googleapis/googleapis/blob/40203ca1880849480bbff7b8715491060bbccdf1/google/type/decimal.proto#L33) for details */ value?: string | undefined; }; /** * Asset Specific fields returned from the request. */ export type AssetSpecific = { /** * Day Trade Asset Buying Power figures returned from the request. */ dayTrade?: DayTrade | null | undefined; /** * Non Day Trade Asset Buying Power figures returned from the request. */ nonDayTrade?: NonDayTrade | null | undefined; /** * The current price of the asset in USD returned from the request. */ priceAmount?: PriceAmount | null | undefined; }; /** * The total_excess_amount is the total equity in the account minus the requirements in USD, returned from the request. */ export type AssetBuyingPowerTotalExcessAmount = { /** * The decimal value, as a string; Refer to [Google’s Decimal type protocol buffer](https://github.com/googleapis/googleapis/blob/40203ca1880849480bbff7b8715491060bbccdf1/google/type/decimal.proto#L33) for details */ value?: string | undefined; }; /** * The total_requirements_amount is the total requirement amount for positions held in the account in USD, returned from the request. */ export type AssetBuyingPowerTotalRequirementsAmount = { /** * The decimal value, as a string; Refer to [Google’s Decimal type protocol buffer](https://github.com/googleapis/googleapis/blob/40203ca1880849480bbff7b8715491060bbccdf1/google/type/decimal.proto#L33) for details */ value?: string | undefined; }; /** * Margin Requirements fields returned from the request. */ export type AssetBuyingPowerRequirements = { /** * The total_excess_amount is the total equity in the account minus the requirements in USD, returned from the request. */ totalExcessAmount?: AssetBuyingPowerTotalExcessAmount | null | undefined; /** * The total_requirements_amount is the total requirement amount for positions held in the account in USD, returned from the request. */ totalRequirementsAmount?: AssetBuyingPowerTotalRequirementsAmount | null | undefined; }; /** * Response for GetAssetBuyingPower */ export type AssetBuyingPower = { /** * Account Asset Buying Power fields returned from the request. */ accountAssetBuyingPower?: AccountAssetBuyingPower | null | undefined; /** * Account Equity fields returned from the request. */ accountEquity?: AccountEquity | null | undefined; /** * The account ID returned from the request. */ accountId?: string | undefined; /** * The asset ID returned from the request. */ assetId?: string | undefined; /** * Asset Specific fields returned from the request. */ assetSpecific?: AssetSpecific | null | undefined; /** * The service generated name of the AssetBuyingPower Format: accounts/{account_id}/asset/{assetid}/buyingPower */ name?: string | undefined; /** * Margin Requirements fields returned from the request. */ requirements?: AssetBuyingPowerRequirements | null | undefined; }; /** @internal */ export declare const AssetBuyingPowerBuyingPowerAmount$inboundSchema: z.ZodType; /** @internal */ export type AssetBuyingPowerBuyingPowerAmount$Outbound = { value?: string | undefined; }; /** @internal */ export declare const AssetBuyingPowerBuyingPowerAmount$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace AssetBuyingPowerBuyingPowerAmount$ { /** @deprecated use `AssetBuyingPowerBuyingPowerAmount$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `AssetBuyingPowerBuyingPowerAmount$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `AssetBuyingPowerBuyingPowerAmount$Outbound` instead. */ type Outbound = AssetBuyingPowerBuyingPowerAmount$Outbound; } export declare function assetBuyingPowerBuyingPowerAmountToJSON(assetBuyingPowerBuyingPowerAmount: AssetBuyingPowerBuyingPowerAmount): string; export declare function assetBuyingPowerBuyingPowerAmountFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const AssetBuyingPowerDayTradeBuyingPowerAmount$inboundSchema: z.ZodType; /** @internal */ export type AssetBuyingPowerDayTradeBuyingPowerAmount$Outbound = { value?: string | undefined; }; /** @internal */ export declare const AssetBuyingPowerDayTradeBuyingPowerAmount$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace AssetBuyingPowerDayTradeBuyingPowerAmount$ { /** @deprecated use `AssetBuyingPowerDayTradeBuyingPowerAmount$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `AssetBuyingPowerDayTradeBuyingPowerAmount$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `AssetBuyingPowerDayTradeBuyingPowerAmount$Outbound` instead. */ type Outbound = AssetBuyingPowerDayTradeBuyingPowerAmount$Outbound; } export declare function assetBuyingPowerDayTradeBuyingPowerAmountToJSON(assetBuyingPowerDayTradeBuyingPowerAmount: AssetBuyingPowerDayTradeBuyingPowerAmount): string; export declare function assetBuyingPowerDayTradeBuyingPowerAmountFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const AssetBuyingPowerSmaAmount$inboundSchema: z.ZodType; /** @internal */ export type AssetBuyingPowerSmaAmount$Outbound = { value?: string | undefined; }; /** @internal */ export declare const AssetBuyingPowerSmaAmount$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace AssetBuyingPowerSmaAmount$ { /** @deprecated use `AssetBuyingPowerSmaAmount$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `AssetBuyingPowerSmaAmount$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `AssetBuyingPowerSmaAmount$Outbound` instead. */ type Outbound = AssetBuyingPowerSmaAmount$Outbound; } export declare function assetBuyingPowerSmaAmountToJSON(assetBuyingPowerSmaAmount: AssetBuyingPowerSmaAmount): string; export declare function assetBuyingPowerSmaAmountFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const AccountAssetBuyingPower$inboundSchema: z.ZodType; /** @internal */ export type AccountAssetBuyingPower$Outbound = { buying_power_amount?: AssetBuyingPowerBuyingPowerAmount$Outbound | null | undefined; day_trade_buying_power_amount?: AssetBuyingPowerDayTradeBuyingPowerAmount$Outbound | null | undefined; is_day_trade_buying_power_allowed?: boolean | undefined; sma_amount?: AssetBuyingPowerSmaAmount$Outbound | null | undefined; }; /** @internal */ export declare const AccountAssetBuyingPower$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace AccountAssetBuyingPower$ { /** @deprecated use `AccountAssetBuyingPower$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `AccountAssetBuyingPower$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `AccountAssetBuyingPower$Outbound` instead. */ type Outbound = AccountAssetBuyingPower$Outbound; } export declare function accountAssetBuyingPowerToJSON(accountAssetBuyingPower: AccountAssetBuyingPower): string; export declare function accountAssetBuyingPowerFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const AssetBuyingPowerAccountEquityAmount$inboundSchema: z.ZodType; /** @internal */ export type AssetBuyingPowerAccountEquityAmount$Outbound = { value?: string | undefined; }; /** @internal */ export declare const AssetBuyingPowerAccountEquityAmount$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace AssetBuyingPowerAccountEquityAmount$ { /** @deprecated use `AssetBuyingPowerAccountEquityAmount$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `AssetBuyingPowerAccountEquityAmount$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `AssetBuyingPowerAccountEquityAmount$Outbound` instead. */ type Outbound = AssetBuyingPowerAccountEquityAmount$Outbound; } export declare function assetBuyingPowerAccountEquityAmountToJSON(assetBuyingPowerAccountEquityAmount: AssetBuyingPowerAccountEquityAmount): string; export declare function assetBuyingPowerAccountEquityAmountFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const AssetBuyingPowerPositionMarketValueAmount$inboundSchema: z.ZodType; /** @internal */ export type AssetBuyingPowerPositionMarketValueAmount$Outbound = { value?: string | undefined; }; /** @internal */ export declare const AssetBuyingPowerPositionMarketValueAmount$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace AssetBuyingPowerPositionMarketValueAmount$ { /** @deprecated use `AssetBuyingPowerPositionMarketValueAmount$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `AssetBuyingPowerPositionMarketValueAmount$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `AssetBuyingPowerPositionMarketValueAmount$Outbound` instead. */ type Outbound = AssetBuyingPowerPositionMarketValueAmount$Outbound; } export declare function assetBuyingPowerPositionMarketValueAmountToJSON(assetBuyingPowerPositionMarketValueAmount: AssetBuyingPowerPositionMarketValueAmount): string; export declare function assetBuyingPowerPositionMarketValueAmountFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const AccountEquity$inboundSchema: z.ZodType; /** @internal */ export type AccountEquity$Outbound = { account_equity_amount?: AssetBuyingPowerAccountEquityAmount$Outbound | null | undefined; position_market_value_amount?: AssetBuyingPowerPositionMarketValueAmount$Outbound | null | undefined; }; /** @internal */ export declare const AccountEquity$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace AccountEquity$ { /** @deprecated use `AccountEquity$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `AccountEquity$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `AccountEquity$Outbound` instead. */ type Outbound = AccountEquity$Outbound; } export declare function accountEquityToJSON(accountEquity: AccountEquity): string; export declare function accountEquityFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const AssetBuyingPowerMaxAmount$inboundSchema: z.ZodType; /** @internal */ export type AssetBuyingPowerMaxAmount$Outbound = { value?: string | undefined; }; /** @internal */ export declare const AssetBuyingPowerMaxAmount$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace AssetBuyingPowerMaxAmount$ { /** @deprecated use `AssetBuyingPowerMaxAmount$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `AssetBuyingPowerMaxAmount$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `AssetBuyingPowerMaxAmount$Outbound` instead. */ type Outbound = AssetBuyingPowerMaxAmount$Outbound; } export declare function assetBuyingPowerMaxAmountToJSON(assetBuyingPowerMaxAmount: AssetBuyingPowerMaxAmount): string; export declare function assetBuyingPowerMaxAmountFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const MaxPurchaseQuantity$inboundSchema: z.ZodType; /** @internal */ export type MaxPurchaseQuantity$Outbound = { value?: string | undefined; }; /** @internal */ export declare const MaxPurchaseQuantity$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace MaxPurchaseQuantity$ { /** @deprecated use `MaxPurchaseQuantity$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `MaxPurchaseQuantity$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `MaxPurchaseQuantity$Outbound` instead. */ type Outbound = MaxPurchaseQuantity$Outbound; } export declare function maxPurchaseQuantityToJSON(maxPurchaseQuantity: MaxPurchaseQuantity): string; export declare function maxPurchaseQuantityFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const PercentageRequirements$inboundSchema: z.ZodType; /** @internal */ export type PercentageRequirements$Outbound = { value?: string | undefined; }; /** @internal */ export declare const PercentageRequirements$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace PercentageRequirements$ { /** @deprecated use `PercentageRequirements$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `PercentageRequirements$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `PercentageRequirements$Outbound` instead. */ type Outbound = PercentageRequirements$Outbound; } export declare function percentageRequirementsToJSON(percentageRequirements: PercentageRequirements): string; export declare function percentageRequirementsFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const DayTrade$inboundSchema: z.ZodType; /** @internal */ export type DayTrade$Outbound = { asset_buying_power_max_amount?: AssetBuyingPowerMaxAmount$Outbound | null | undefined; max_purchase_quantity?: MaxPurchaseQuantity$Outbound | null | undefined; percentage_requirements?: PercentageRequirements$Outbound | null | undefined; }; /** @internal */ export declare const DayTrade$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace DayTrade$ { /** @deprecated use `DayTrade$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `DayTrade$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `DayTrade$Outbound` instead. */ type Outbound = DayTrade$Outbound; } export declare function dayTradeToJSON(dayTrade: DayTrade): string; export declare function dayTradeFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const AssetBuyingPowerAssetBuyingPowerMaxAmount$inboundSchema: z.ZodType; /** @internal */ export type AssetBuyingPowerAssetBuyingPowerMaxAmount$Outbound = { value?: string | undefined; }; /** @internal */ export declare const AssetBuyingPowerAssetBuyingPowerMaxAmount$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace AssetBuyingPowerAssetBuyingPowerMaxAmount$ { /** @deprecated use `AssetBuyingPowerAssetBuyingPowerMaxAmount$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `AssetBuyingPowerAssetBuyingPowerMaxAmount$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `AssetBuyingPowerAssetBuyingPowerMaxAmount$Outbound` instead. */ type Outbound = AssetBuyingPowerAssetBuyingPowerMaxAmount$Outbound; } export declare function assetBuyingPowerAssetBuyingPowerMaxAmountToJSON(assetBuyingPowerAssetBuyingPowerMaxAmount: AssetBuyingPowerAssetBuyingPowerMaxAmount): string; export declare function assetBuyingPowerAssetBuyingPowerMaxAmountFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const AssetBuyingPowerMaxPurchaseQuantity$inboundSchema: z.ZodType; /** @internal */ export type AssetBuyingPowerMaxPurchaseQuantity$Outbound = { value?: string | undefined; }; /** @internal */ export declare const AssetBuyingPowerMaxPurchaseQuantity$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace AssetBuyingPowerMaxPurchaseQuantity$ { /** @deprecated use `AssetBuyingPowerMaxPurchaseQuantity$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `AssetBuyingPowerMaxPurchaseQuantity$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `AssetBuyingPowerMaxPurchaseQuantity$Outbound` instead. */ type Outbound = AssetBuyingPowerMaxPurchaseQuantity$Outbound; } export declare function assetBuyingPowerMaxPurchaseQuantityToJSON(assetBuyingPowerMaxPurchaseQuantity: AssetBuyingPowerMaxPurchaseQuantity): string; export declare function assetBuyingPowerMaxPurchaseQuantityFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const AssetBuyingPowerPercentageRequirements$inboundSchema: z.ZodType; /** @internal */ export type AssetBuyingPowerPercentageRequirements$Outbound = { value?: string | undefined; }; /** @internal */ export declare const AssetBuyingPowerPercentageRequirements$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace AssetBuyingPowerPercentageRequirements$ { /** @deprecated use `AssetBuyingPowerPercentageRequirements$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `AssetBuyingPowerPercentageRequirements$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `AssetBuyingPowerPercentageRequirements$Outbound` instead. */ type Outbound = AssetBuyingPowerPercentageRequirements$Outbound; } export declare function assetBuyingPowerPercentageRequirementsToJSON(assetBuyingPowerPercentageRequirements: AssetBuyingPowerPercentageRequirements): string; export declare function assetBuyingPowerPercentageRequirementsFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const NonDayTrade$inboundSchema: z.ZodType; /** @internal */ export type NonDayTrade$Outbound = { asset_buying_power_max_amount?: AssetBuyingPowerAssetBuyingPowerMaxAmount$Outbound | null | undefined; max_purchase_quantity?: AssetBuyingPowerMaxPurchaseQuantity$Outbound | null | undefined; percentage_requirements?: AssetBuyingPowerPercentageRequirements$Outbound | null | undefined; }; /** @internal */ export declare const NonDayTrade$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace NonDayTrade$ { /** @deprecated use `NonDayTrade$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `NonDayTrade$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `NonDayTrade$Outbound` instead. */ type Outbound = NonDayTrade$Outbound; } export declare function nonDayTradeToJSON(nonDayTrade: NonDayTrade): string; export declare function nonDayTradeFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const PriceAmount$inboundSchema: z.ZodType; /** @internal */ export type PriceAmount$Outbound = { value?: string | undefined; }; /** @internal */ export declare const PriceAmount$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace PriceAmount$ { /** @deprecated use `PriceAmount$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `PriceAmount$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `PriceAmount$Outbound` instead. */ type Outbound = PriceAmount$Outbound; } export declare function priceAmountToJSON(priceAmount: PriceAmount): string; export declare function priceAmountFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const AssetSpecific$inboundSchema: z.ZodType; /** @internal */ export type AssetSpecific$Outbound = { day_trade?: DayTrade$Outbound | null | undefined; non_day_trade?: NonDayTrade$Outbound | null | undefined; price_amount?: PriceAmount$Outbound | null | undefined; }; /** @internal */ export declare const AssetSpecific$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace AssetSpecific$ { /** @deprecated use `AssetSpecific$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `AssetSpecific$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `AssetSpecific$Outbound` instead. */ type Outbound = AssetSpecific$Outbound; } export declare function assetSpecificToJSON(assetSpecific: AssetSpecific): string; export declare function assetSpecificFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const AssetBuyingPowerTotalExcessAmount$inboundSchema: z.ZodType; /** @internal */ export type AssetBuyingPowerTotalExcessAmount$Outbound = { value?: string | undefined; }; /** @internal */ export declare const AssetBuyingPowerTotalExcessAmount$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace AssetBuyingPowerTotalExcessAmount$ { /** @deprecated use `AssetBuyingPowerTotalExcessAmount$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `AssetBuyingPowerTotalExcessAmount$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `AssetBuyingPowerTotalExcessAmount$Outbound` instead. */ type Outbound = AssetBuyingPowerTotalExcessAmount$Outbound; } export declare function assetBuyingPowerTotalExcessAmountToJSON(assetBuyingPowerTotalExcessAmount: AssetBuyingPowerTotalExcessAmount): string; export declare function assetBuyingPowerTotalExcessAmountFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const AssetBuyingPowerTotalRequirementsAmount$inboundSchema: z.ZodType; /** @internal */ export type AssetBuyingPowerTotalRequirementsAmount$Outbound = { value?: string | undefined; }; /** @internal */ export declare const AssetBuyingPowerTotalRequirementsAmount$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace AssetBuyingPowerTotalRequirementsAmount$ { /** @deprecated use `AssetBuyingPowerTotalRequirementsAmount$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `AssetBuyingPowerTotalRequirementsAmount$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `AssetBuyingPowerTotalRequirementsAmount$Outbound` instead. */ type Outbound = AssetBuyingPowerTotalRequirementsAmount$Outbound; } export declare function assetBuyingPowerTotalRequirementsAmountToJSON(assetBuyingPowerTotalRequirementsAmount: AssetBuyingPowerTotalRequirementsAmount): string; export declare function assetBuyingPowerTotalRequirementsAmountFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const AssetBuyingPowerRequirements$inboundSchema: z.ZodType; /** @internal */ export type AssetBuyingPowerRequirements$Outbound = { total_excess_amount?: AssetBuyingPowerTotalExcessAmount$Outbound | null | undefined; total_requirements_amount?: AssetBuyingPowerTotalRequirementsAmount$Outbound | null | undefined; }; /** @internal */ export declare const AssetBuyingPowerRequirements$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace AssetBuyingPowerRequirements$ { /** @deprecated use `AssetBuyingPowerRequirements$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `AssetBuyingPowerRequirements$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `AssetBuyingPowerRequirements$Outbound` instead. */ type Outbound = AssetBuyingPowerRequirements$Outbound; } export declare function assetBuyingPowerRequirementsToJSON(assetBuyingPowerRequirements: AssetBuyingPowerRequirements): string; export declare function assetBuyingPowerRequirementsFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const AssetBuyingPower$inboundSchema: z.ZodType; /** @internal */ export type AssetBuyingPower$Outbound = { account_asset_buying_power?: AccountAssetBuyingPower$Outbound | null | undefined; account_equity?: AccountEquity$Outbound | null | undefined; account_id?: string | undefined; asset_id?: string | undefined; asset_specific?: AssetSpecific$Outbound | null | undefined; name?: string | undefined; requirements?: AssetBuyingPowerRequirements$Outbound | null | undefined; }; /** @internal */ export declare const AssetBuyingPower$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace AssetBuyingPower$ { /** @deprecated use `AssetBuyingPower$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `AssetBuyingPower$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `AssetBuyingPower$Outbound` instead. */ type Outbound = AssetBuyingPower$Outbound; } export declare function assetBuyingPowerToJSON(assetBuyingPower: AssetBuyingPower): string; export declare function assetBuyingPowerFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=assetbuyingpower.d.ts.map