diff --git a/artifacts/apidocs/market_data_api.md b/artifacts/apidocs/market_data_api.md index 40de90d..a254fe2 100644 --- a/artifacts/apidocs/market_data_api.md +++ b/artifacts/apidocs/market_data_api.md @@ -49,7 +49,10 @@ LITE ENDPOINT: lite/v1/instrument "tick_size": "0.01", "min_size": "0.01", "create_time": "1697788800000000000", - "max_position_size": "100.0" + "max_position_size": "100.0", + "funding_interval_hours": null, + "adjusted_funding_rate_cap": 2.5, + "adjusted_funding_rate_floor": -2.5 } } ``` @@ -69,7 +72,10 @@ LITE ENDPOINT: lite/v1/instrument "ts": "0.01", "ms": "0.01", "ct": "1697788800000000000", - "mp": "100.0" + "mp": "100.0", + "fi": null, + "af": 2.5, + "af1": -2.5 } } ``` @@ -350,7 +356,10 @@ LITE ENDPOINT: lite/v1/all_instruments "tick_size": "0.01", "min_size": "0.01", "create_time": "1697788800000000000", - "max_position_size": "100.0" + "max_position_size": "100.0", + "funding_interval_hours": null, + "adjusted_funding_rate_cap": 2.5, + "adjusted_funding_rate_floor": -2.5 }] } ``` @@ -370,7 +379,10 @@ LITE ENDPOINT: lite/v1/all_instruments "ts": "0.01", "ms": "0.01", "ct": "1697788800000000000", - "mp": "100.0" + "mp": "100.0", + "fi": null, + "af": 2.5, + "af1": -2.5 }] } ``` @@ -658,7 +670,10 @@ LITE ENDPOINT: lite/v1/instruments "tick_size": "0.01", "min_size": "0.01", "create_time": "1697788800000000000", - "max_position_size": "100.0" + "max_position_size": "100.0", + "funding_interval_hours": null, + "adjusted_funding_rate_cap": 2.5, + "adjusted_funding_rate_floor": -2.5 }] } ``` @@ -678,7 +693,10 @@ LITE ENDPOINT: lite/v1/instruments "ts": "0.01", "ms": "0.01", "ct": "1697788800000000000", - "mp": "100.0" + "mp": "100.0", + "fi": null, + "af": 2.5, + "af1": -2.5 }] } ``` @@ -1596,7 +1614,9 @@ LITE ENDPOINT: lite/v1/ticker "low_price": "65038.01", "open_price": "65038.01", "open_interest": "123456.78", - "long_short_ratio": "0.5" + "long_short_ratio": "0.5", + "funding_rate": 0.0003, + "next_funding_time": "1697788800000000000" } } ``` @@ -1627,7 +1647,9 @@ LITE ENDPOINT: lite/v1/ticker "lp1": "65038.01", "op": "65038.01", "oi": "123456.78", - "ls1": "0.5" + "ls1": "0.5", + "fr2": 0.0003, + "nf": "1697788800000000000" } } ``` diff --git a/artifacts/apidocs/market_data_streams.md b/artifacts/apidocs/market_data_streams.md index 235b6ed..2b0d689 100644 --- a/artifacts/apidocs/market_data_streams.md +++ b/artifacts/apidocs/market_data_streams.md @@ -1250,7 +1250,9 @@ STREAM: v1.ticker.s "low_price": "65038.01", "open_price": "65038.01", "open_interest": "123456.78", - "long_short_ratio": "0.5" + "long_short_ratio": "0.5", + "funding_rate": 0.0003, + "next_funding_time": "1697788800000000000" } } ``` @@ -1284,7 +1286,9 @@ STREAM: v1.ticker.s "lp1": "65038.01", "op": "65038.01", "oi": "123456.78", - "ls1": "0.5" + "ls1": "0.5", + "fr2": 0.0003, + "nf": "1697788800000000000" } } ``` @@ -1835,7 +1839,9 @@ STREAM: v1.ticker.d "low_price": "65038.01", "open_price": "65038.01", "open_interest": "123456.78", - "long_short_ratio": "0.5" + "long_short_ratio": "0.5", + "funding_rate": 0.0003, + "next_funding_time": "1697788800000000000" } } ``` @@ -1869,7 +1875,9 @@ STREAM: v1.ticker.d "lp1": "65038.01", "op": "65038.01", "oi": "123456.78", - "ls1": "0.5" + "ls1": "0.5", + "fr2": 0.0003, + "nf": "1697788800000000000" } } ``` diff --git a/artifacts/apidocs/schemas/aggregated_account_summary.md b/artifacts/apidocs/schemas/aggregated_account_summary.md index 13b93fa..59e3433 100644 --- a/artifacts/apidocs/schemas/aggregated_account_summary.md +++ b/artifacts/apidocs/schemas/aggregated_account_summary.md @@ -5,6 +5,7 @@ |total_equity
`te` |string|True|Total equity of the main (+ sub) account, denominated in USD| |spot_balances
`sb` |[SpotBalance]|True|The list of spot assets owned by this main (+ sub) account, and their balances| |vault_investments
`vi` |[VaultInvestment]|True|The list of vault investments held by this main account| + |total_sub_account_balance
`ts` |string|True|Total balance of the sub accounts, denominated in USD| ??? info "[SpotBalance](/../../schemas/spot_balance)" |Name
`Lite`|Type|Required
`Default`| Description | |-|-|-|-| diff --git a/artifacts/apidocs/schemas/api_aggregated_account_summary_response.md b/artifacts/apidocs/schemas/api_aggregated_account_summary_response.md index 6fd3180..f3a6e7d 100644 --- a/artifacts/apidocs/schemas/api_aggregated_account_summary_response.md +++ b/artifacts/apidocs/schemas/api_aggregated_account_summary_response.md @@ -11,6 +11,7 @@ |total_equity
`te` |string|True|Total equity of the main (+ sub) account, denominated in USD| |spot_balances
`sb` |[SpotBalance]|True|The list of spot assets owned by this main (+ sub) account, and their balances| |vault_investments
`vi` |[VaultInvestment]|True|The list of vault investments held by this main account| + |total_sub_account_balance
`ts` |string|True|Total balance of the sub accounts, denominated in USD| ??? info "[SpotBalance](/../../schemas/spot_balance)" |Name
`Lite`|Type|Required
`Default`| Description | |-|-|-|-| diff --git a/artifacts/apidocs/schemas/api_create_order_request.md b/artifacts/apidocs/schemas/api_create_order_request.md index b4b5b41..206a49d 100644 --- a/artifacts/apidocs/schemas/api_create_order_request.md +++ b/artifacts/apidocs/schemas/api_create_order_request.md @@ -49,6 +49,7 @@ |v
`v` |integer|True|Signature V| |expiration
`e` |string|True|Timestamp after which this signature expires, expressed in unix nanoseconds. Must be capped at 30 days| |nonce
`n` |integer|True|Users can randomly generate this value, used as a signature deconflicting key.
ie. You can send the same exact instruction twice with different nonces.
When the same nonce is used, the same payload will generate the same signature.
Our system will consider the payload a duplicate, and ignore it.| + |chain_id
`ci` |string|True|Chain ID used in EIP-712 domain. Zero value fallbacks to GRVT Chain ID.| ??? info "[OrderMetadata](/../../schemas/order_metadata)" Metadata fields are used to support Backend only operations. These operations are not trustless by nature.
Hence, fields in here are never signed, and is never transmitted to the smart contract.
@@ -58,6 +59,7 @@ |create_time
`ct` |string|False
`0`|[Filled by GRVT Backend] Time at which the order was received by GRVT in unix nanoseconds| |trigger
`t` |TriggerOrderMetadata|False
``|Trigger fields are used to support any type of trigger order such as TP/SL| |broker
`b` |BrokerTag|False
``|Specifies the broker who brokered the order| + |allow_crossing
`ac` |boolean|False
`false`|Specifies if post only order is allowed to cross the orderbook| ??? info "[TriggerOrderMetadata](/../../schemas/trigger_order_metadata)" Contains metadata related to trigger orders, such as Take Profit (TP) or Stop Loss (SL).

Trigger orders are used to automatically execute an order when a predefined price condition is met, allowing traders to implement risk management strategies.


@@ -158,3 +160,4 @@ |`DERISK_NOT_SUPPORTED` = 35|derisk is not supported| |`INVALID_ORDER_TYPE` = 36|the order type is invalid| |`CURRENCY_NOT_DEFINED` = 37|the currency is not defined| + |`INVALID_CHAIN_ID` = 38|the chain ID is invalid| diff --git a/artifacts/apidocs/schemas/api_create_order_response.md b/artifacts/apidocs/schemas/api_create_order_response.md index cc84988..efdd10e 100644 --- a/artifacts/apidocs/schemas/api_create_order_response.md +++ b/artifacts/apidocs/schemas/api_create_order_response.md @@ -47,6 +47,7 @@ |v
`v` |integer|True|Signature V| |expiration
`e` |string|True|Timestamp after which this signature expires, expressed in unix nanoseconds. Must be capped at 30 days| |nonce
`n` |integer|True|Users can randomly generate this value, used as a signature deconflicting key.
ie. You can send the same exact instruction twice with different nonces.
When the same nonce is used, the same payload will generate the same signature.
Our system will consider the payload a duplicate, and ignore it.| + |chain_id
`ci` |string|True|Chain ID used in EIP-712 domain. Zero value fallbacks to GRVT Chain ID.| ??? info "[OrderMetadata](/../../schemas/order_metadata)" Metadata fields are used to support Backend only operations. These operations are not trustless by nature.
Hence, fields in here are never signed, and is never transmitted to the smart contract.
@@ -56,6 +57,7 @@ |create_time
`ct` |string|False
`0`|[Filled by GRVT Backend] Time at which the order was received by GRVT in unix nanoseconds| |trigger
`t` |TriggerOrderMetadata|False
``|Trigger fields are used to support any type of trigger order such as TP/SL| |broker
`b` |BrokerTag|False
``|Specifies the broker who brokered the order| + |allow_crossing
`ac` |boolean|False
`false`|Specifies if post only order is allowed to cross the orderbook| ??? info "[TriggerOrderMetadata](/../../schemas/trigger_order_metadata)" Contains metadata related to trigger orders, such as Take Profit (TP) or Stop Loss (SL).

Trigger orders are used to automatically execute an order when a predefined price condition is met, allowing traders to implement risk management strategies.


@@ -156,3 +158,4 @@ |`DERISK_NOT_SUPPORTED` = 35|derisk is not supported| |`INVALID_ORDER_TYPE` = 36|the order type is invalid| |`CURRENCY_NOT_DEFINED` = 37|the currency is not defined| + |`INVALID_CHAIN_ID` = 38|the chain ID is invalid| diff --git a/artifacts/apidocs/schemas/api_get_all_instruments_response.md b/artifacts/apidocs/schemas/api_get_all_instruments_response.md index 855cfa6..d716fd3 100644 --- a/artifacts/apidocs/schemas/api_get_all_instruments_response.md +++ b/artifacts/apidocs/schemas/api_get_all_instruments_response.md @@ -1,8 +1,8 @@ !!! info "[ApiGetAllInstrumentsResponse](/../../schemas/api_get_all_instruments_response)" |Name
`Lite`|Type|Required
`Default`| Description | |-|-|-|-| - |result
`r` |[Instrument]|True|List of instruments| - ??? info "[Instrument](/../../schemas/instrument)" + |result
`r` |[InstrumentDisplay]|True|List of instruments| + ??? info "[InstrumentDisplay](/../../schemas/instrument_display)" |Name
`Lite`|Type|Required
`Default`| Description | |-|-|-|-| |instrument
`i` |string|True|The readable instrument name:| @@ -18,6 +18,9 @@ |min_size
`ms` |string|True|The minimum contract size, expressed in base asset decimal units| |create_time
`ct` |string|True|Creation time in unix nanoseconds| |max_position_size
`mp` |string|True|The maximum position size, expressed in base asset decimal units| + |funding_interval_hours
`fi` |integer|False
`None`|Defines the funding interval to be applied.| + |adjusted_funding_rate_cap
`af` |string|False
`None`|Funding rate cap over the defined `intervalHours`.| + |adjusted_funding_rate_floor
`af1` |string|False
`None`|Funding rate floor over the defined `intervalHours`.| ??? info "[Kind](/../../schemas/kind)" The list of asset kinds that are supported on the GRVT exchange
diff --git a/artifacts/apidocs/schemas/api_get_filtered_instruments_response.md b/artifacts/apidocs/schemas/api_get_filtered_instruments_response.md index 954ee2f..74855bb 100644 --- a/artifacts/apidocs/schemas/api_get_filtered_instruments_response.md +++ b/artifacts/apidocs/schemas/api_get_filtered_instruments_response.md @@ -1,8 +1,8 @@ !!! info "[ApiGetFilteredInstrumentsResponse](/../../schemas/api_get_filtered_instruments_response)" |Name
`Lite`|Type|Required
`Default`| Description | |-|-|-|-| - |result
`r` |[Instrument]|True|The instruments matching the request filter| - ??? info "[Instrument](/../../schemas/instrument)" + |result
`r` |[InstrumentDisplay]|True|The instruments matching the request filter| + ??? info "[InstrumentDisplay](/../../schemas/instrument_display)" |Name
`Lite`|Type|Required
`Default`| Description | |-|-|-|-| |instrument
`i` |string|True|The readable instrument name:| @@ -18,6 +18,9 @@ |min_size
`ms` |string|True|The minimum contract size, expressed in base asset decimal units| |create_time
`ct` |string|True|Creation time in unix nanoseconds| |max_position_size
`mp` |string|True|The maximum position size, expressed in base asset decimal units| + |funding_interval_hours
`fi` |integer|False
`None`|Defines the funding interval to be applied.| + |adjusted_funding_rate_cap
`af` |string|False
`None`|Funding rate cap over the defined `intervalHours`.| + |adjusted_funding_rate_floor
`af1` |string|False
`None`|Funding rate floor over the defined `intervalHours`.| ??? info "[Kind](/../../schemas/kind)" The list of asset kinds that are supported on the GRVT exchange
diff --git a/artifacts/apidocs/schemas/api_get_instrument_response.md b/artifacts/apidocs/schemas/api_get_instrument_response.md index a5b2bed..dd01849 100644 --- a/artifacts/apidocs/schemas/api_get_instrument_response.md +++ b/artifacts/apidocs/schemas/api_get_instrument_response.md @@ -1,8 +1,8 @@ !!! info "[ApiGetInstrumentResponse](/../../schemas/api_get_instrument_response)" |Name
`Lite`|Type|Required
`Default`| Description | |-|-|-|-| - |result
`r` |Instrument|True|The instrument matching the request asset| - ??? info "[Instrument](/../../schemas/instrument)" + |result
`r` |InstrumentDisplay|True|The instrument matching the request asset| + ??? info "[InstrumentDisplay](/../../schemas/instrument_display)" |Name
`Lite`|Type|Required
`Default`| Description | |-|-|-|-| |instrument
`i` |string|True|The readable instrument name:| @@ -18,6 +18,9 @@ |min_size
`ms` |string|True|The minimum contract size, expressed in base asset decimal units| |create_time
`ct` |string|True|Creation time in unix nanoseconds| |max_position_size
`mp` |string|True|The maximum position size, expressed in base asset decimal units| + |funding_interval_hours
`fi` |integer|False
`None`|Defines the funding interval to be applied.| + |adjusted_funding_rate_cap
`af` |string|False
`None`|Funding rate cap over the defined `intervalHours`.| + |adjusted_funding_rate_floor
`af1` |string|False
`None`|Funding rate floor over the defined `intervalHours`.| ??? info "[Kind](/../../schemas/kind)" The list of asset kinds that are supported on the GRVT exchange
diff --git a/artifacts/apidocs/schemas/api_get_order_response.md b/artifacts/apidocs/schemas/api_get_order_response.md index 93ddd51..e0af755 100644 --- a/artifacts/apidocs/schemas/api_get_order_response.md +++ b/artifacts/apidocs/schemas/api_get_order_response.md @@ -47,6 +47,7 @@ |v
`v` |integer|True|Signature V| |expiration
`e` |string|True|Timestamp after which this signature expires, expressed in unix nanoseconds. Must be capped at 30 days| |nonce
`n` |integer|True|Users can randomly generate this value, used as a signature deconflicting key.
ie. You can send the same exact instruction twice with different nonces.
When the same nonce is used, the same payload will generate the same signature.
Our system will consider the payload a duplicate, and ignore it.| + |chain_id
`ci` |string|True|Chain ID used in EIP-712 domain. Zero value fallbacks to GRVT Chain ID.| ??? info "[OrderMetadata](/../../schemas/order_metadata)" Metadata fields are used to support Backend only operations. These operations are not trustless by nature.
Hence, fields in here are never signed, and is never transmitted to the smart contract.
@@ -56,6 +57,7 @@ |create_time
`ct` |string|False
`0`|[Filled by GRVT Backend] Time at which the order was received by GRVT in unix nanoseconds| |trigger
`t` |TriggerOrderMetadata|False
``|Trigger fields are used to support any type of trigger order such as TP/SL| |broker
`b` |BrokerTag|False
``|Specifies the broker who brokered the order| + |allow_crossing
`ac` |boolean|False
`false`|Specifies if post only order is allowed to cross the orderbook| ??? info "[TriggerOrderMetadata](/../../schemas/trigger_order_metadata)" Contains metadata related to trigger orders, such as Take Profit (TP) or Stop Loss (SL).

Trigger orders are used to automatically execute an order when a predefined price condition is met, allowing traders to implement risk management strategies.


@@ -156,3 +158,4 @@ |`DERISK_NOT_SUPPORTED` = 35|derisk is not supported| |`INVALID_ORDER_TYPE` = 36|the order type is invalid| |`CURRENCY_NOT_DEFINED` = 37|the currency is not defined| + |`INVALID_CHAIN_ID` = 38|the chain ID is invalid| diff --git a/artifacts/apidocs/schemas/api_open_orders_response.md b/artifacts/apidocs/schemas/api_open_orders_response.md index 688704b..4f40d02 100644 --- a/artifacts/apidocs/schemas/api_open_orders_response.md +++ b/artifacts/apidocs/schemas/api_open_orders_response.md @@ -49,6 +49,7 @@ |v
`v` |integer|True|Signature V| |expiration
`e` |string|True|Timestamp after which this signature expires, expressed in unix nanoseconds. Must be capped at 30 days| |nonce
`n` |integer|True|Users can randomly generate this value, used as a signature deconflicting key.
ie. You can send the same exact instruction twice with different nonces.
When the same nonce is used, the same payload will generate the same signature.
Our system will consider the payload a duplicate, and ignore it.| + |chain_id
`ci` |string|True|Chain ID used in EIP-712 domain. Zero value fallbacks to GRVT Chain ID.| ??? info "[OrderMetadata](/../../schemas/order_metadata)" Metadata fields are used to support Backend only operations. These operations are not trustless by nature.
Hence, fields in here are never signed, and is never transmitted to the smart contract.
@@ -58,6 +59,7 @@ |create_time
`ct` |string|False
`0`|[Filled by GRVT Backend] Time at which the order was received by GRVT in unix nanoseconds| |trigger
`t` |TriggerOrderMetadata|False
``|Trigger fields are used to support any type of trigger order such as TP/SL| |broker
`b` |BrokerTag|False
``|Specifies the broker who brokered the order| + |allow_crossing
`ac` |boolean|False
`false`|Specifies if post only order is allowed to cross the orderbook| ??? info "[TriggerOrderMetadata](/../../schemas/trigger_order_metadata)" Contains metadata related to trigger orders, such as Take Profit (TP) or Stop Loss (SL).

Trigger orders are used to automatically execute an order when a predefined price condition is met, allowing traders to implement risk management strategies.


@@ -158,3 +160,4 @@ |`DERISK_NOT_SUPPORTED` = 35|derisk is not supported| |`INVALID_ORDER_TYPE` = 36|the order type is invalid| |`CURRENCY_NOT_DEFINED` = 37|the currency is not defined| + |`INVALID_CHAIN_ID` = 38|the chain ID is invalid| diff --git a/artifacts/apidocs/schemas/api_order_history_response.md b/artifacts/apidocs/schemas/api_order_history_response.md index 1ea4cf2..ed6c595 100644 --- a/artifacts/apidocs/schemas/api_order_history_response.md +++ b/artifacts/apidocs/schemas/api_order_history_response.md @@ -48,6 +48,7 @@ |v
`v` |integer|True|Signature V| |expiration
`e` |string|True|Timestamp after which this signature expires, expressed in unix nanoseconds. Must be capped at 30 days| |nonce
`n` |integer|True|Users can randomly generate this value, used as a signature deconflicting key.
ie. You can send the same exact instruction twice with different nonces.
When the same nonce is used, the same payload will generate the same signature.
Our system will consider the payload a duplicate, and ignore it.| + |chain_id
`ci` |string|True|Chain ID used in EIP-712 domain. Zero value fallbacks to GRVT Chain ID.| ??? info "[OrderMetadata](/../../schemas/order_metadata)" Metadata fields are used to support Backend only operations. These operations are not trustless by nature.
Hence, fields in here are never signed, and is never transmitted to the smart contract.
@@ -57,6 +58,7 @@ |create_time
`ct` |string|False
`0`|[Filled by GRVT Backend] Time at which the order was received by GRVT in unix nanoseconds| |trigger
`t` |TriggerOrderMetadata|False
``|Trigger fields are used to support any type of trigger order such as TP/SL| |broker
`b` |BrokerTag|False
``|Specifies the broker who brokered the order| + |allow_crossing
`ac` |boolean|False
`false`|Specifies if post only order is allowed to cross the orderbook| ??? info "[TriggerOrderMetadata](/../../schemas/trigger_order_metadata)" Contains metadata related to trigger orders, such as Take Profit (TP) or Stop Loss (SL).

Trigger orders are used to automatically execute an order when a predefined price condition is met, allowing traders to implement risk management strategies.


@@ -157,3 +159,4 @@ |`DERISK_NOT_SUPPORTED` = 35|derisk is not supported| |`INVALID_ORDER_TYPE` = 36|the order type is invalid| |`CURRENCY_NOT_DEFINED` = 37|the currency is not defined| + |`INVALID_CHAIN_ID` = 38|the chain ID is invalid| diff --git a/artifacts/apidocs/schemas/api_positions_response.md b/artifacts/apidocs/schemas/api_positions_response.md index eeb43e5..ca3e365 100644 --- a/artifacts/apidocs/schemas/api_positions_response.md +++ b/artifacts/apidocs/schemas/api_positions_response.md @@ -20,3 +20,5 @@ |quote_index_price
`qi` |string|True|The index price of the quote currency. (reported in `USD`)| |est_liquidation_price
`el` |string|True|The estimated liquidation price| |leverage
`l` |string|True|The current leverage value for this position| + |cumulative_fee
`cf` |string|True|The cumulative fee paid on the position, expressed in quote asset decimal units| + |cumulative_realized_funding_payment
`cr` |string|True|The cumulative realized funding payment of the position, expressed in quote asset decimal units| diff --git a/artifacts/apidocs/schemas/api_query_vault_manager_investor_history_request.md b/artifacts/apidocs/schemas/api_query_vault_manager_investor_history_request.md index 881dbf0..c2bba12 100644 --- a/artifacts/apidocs/schemas/api_query_vault_manager_investor_history_request.md +++ b/artifacts/apidocs/schemas/api_query_vault_manager_investor_history_request.md @@ -5,3 +5,5 @@ |-|-|-|-| |vault_id
`vi` |string|True|The unique identifier of the vault to filter by| |only_own_investments
`oo` |boolean|True|Whether to only return investments made by the manager| + |start_time
`st` |string|False
`0`|Optional. Start time in unix nanoseconds| + |end_time
`et` |string|False
`now()`|Optional. End time in unix nanoseconds| diff --git a/artifacts/apidocs/schemas/api_set_derisk_to_maintenance_margin_ratio_request.md b/artifacts/apidocs/schemas/api_set_derisk_to_maintenance_margin_ratio_request.md index 9cbf79e..ffd8bc4 100644 --- a/artifacts/apidocs/schemas/api_set_derisk_to_maintenance_margin_ratio_request.md +++ b/artifacts/apidocs/schemas/api_set_derisk_to_maintenance_margin_ratio_request.md @@ -15,3 +15,4 @@ |v
`v` |integer|True|Signature V| |expiration
`e` |string|True|Timestamp after which this signature expires, expressed in unix nanoseconds. Must be capped at 30 days| |nonce
`n` |integer|True|Users can randomly generate this value, used as a signature deconflicting key.
ie. You can send the same exact instruction twice with different nonces.
When the same nonce is used, the same payload will generate the same signature.
Our system will consider the payload a duplicate, and ignore it.| + |chain_id
`ci` |string|True|Chain ID used in EIP-712 domain. Zero value fallbacks to GRVT Chain ID.| diff --git a/artifacts/apidocs/schemas/api_sub_account_history_response.md b/artifacts/apidocs/schemas/api_sub_account_history_response.md index ae55d3d..6159968 100644 --- a/artifacts/apidocs/schemas/api_sub_account_history_response.md +++ b/artifacts/apidocs/schemas/api_sub_account_history_response.md @@ -51,3 +51,5 @@ |quote_index_price
`qi` |string|True|The index price of the quote currency. (reported in `USD`)| |est_liquidation_price
`el` |string|True|The estimated liquidation price| |leverage
`l` |string|True|The current leverage value for this position| + |cumulative_fee
`cf` |string|True|The cumulative fee paid on the position, expressed in quote asset decimal units| + |cumulative_realized_funding_payment
`cr` |string|True|The cumulative realized funding payment of the position, expressed in quote asset decimal units| diff --git a/artifacts/apidocs/schemas/api_sub_account_summary_response.md b/artifacts/apidocs/schemas/api_sub_account_summary_response.md index e7b3750..da7152c 100644 --- a/artifacts/apidocs/schemas/api_sub_account_summary_response.md +++ b/artifacts/apidocs/schemas/api_sub_account_summary_response.md @@ -52,3 +52,5 @@ |quote_index_price
`qi` |string|True|The index price of the quote currency. (reported in `USD`)| |est_liquidation_price
`el` |string|True|The estimated liquidation price| |leverage
`l` |string|True|The current leverage value for this position| + |cumulative_fee
`cf` |string|True|The cumulative fee paid on the position, expressed in quote asset decimal units| + |cumulative_realized_funding_payment
`cr` |string|True|The cumulative realized funding payment of the position, expressed in quote asset decimal units| diff --git a/artifacts/apidocs/schemas/api_ticker_response.md b/artifacts/apidocs/schemas/api_ticker_response.md index 86fb1f4..1cdee43 100644 --- a/artifacts/apidocs/schemas/api_ticker_response.md +++ b/artifacts/apidocs/schemas/api_ticker_response.md @@ -18,8 +18,8 @@ |best_bid_size
`bb1` |string|False
`None`|The number of assets offered on the best bid price of the instrument, expressed in base asset decimal units| |best_ask_price
`ba` |string|False
`None`|The best ask price of the instrument, expressed in `9` decimals| |best_ask_size
`ba1` |string|False
`None`|The number of assets offered on the best ask price of the instrument, expressed in base asset decimal units| - |funding_rate_8h_curr
`fr` |string|False
`None`|The current funding rate of the instrument, expressed in percentage points| - |funding_rate_8h_avg
`fr1` |string|False
`None`|The average funding rate of the instrument (over last 8h), expressed in percentage points| + |funding_rate_8h_curr
`fr` |string|False
`None`|DEPRECATED: To be removed in a future release. Please refer to the field `funding_rate` instead, for the funding rate being applied over `funding_interval_hours` (interval ending at `next_funding_time`).| + |funding_rate_8h_avg
`fr1` |string|False
`None`|DEPRECATED: To be removed in a future release. Please refer to the field `funding_rate` instead, for the funding rate being applied over `funding_interval_hours` (interval ending at `next_funding_time`).| |interest_rate
`ir` |string|False
`None`|The interest rate of the underlying, expressed in centibeeps (1/100th of a basis point)| |forward_price
`fp` |string|False
`None`|[Options] The forward price of the option, expressed in `9` decimals| |buy_volume_24h_b
`bv` |string|False
`None`|The 24 hour taker buy volume of the instrument, expressed in base asset decimal units| @@ -31,3 +31,5 @@ |open_price
`op` |string|False
`None`|The 24 hour first traded price of the instrument, expressed in `9` decimals| |open_interest
`oi` |string|False
`None`|The open interest in the instrument, expressed in base asset decimal units| |long_short_ratio
`ls1` |string|False
`None`|The ratio of accounts that are net long vs net short on this instrument| + |funding_rate
`fr2` |string|False
`None`|The current indicative funding rate for the active interval, expressed in centibeeps| + |next_funding_time
`nf` |string|False
`None`|Timestamp in nanoseconds when the current funding interval ends| diff --git a/artifacts/apidocs/schemas/api_transfer_history_request.md b/artifacts/apidocs/schemas/api_transfer_history_request.md index 6650c3a..7c690a6 100644 --- a/artifacts/apidocs/schemas/api_transfer_history_request.md +++ b/artifacts/apidocs/schemas/api_transfer_history_request.md @@ -10,3 +10,16 @@ |cursor
`c1` |string|False
`''`|The cursor to indicate when to start the next query from| |tx_id
`ti` |string|False
`0`|The transaction ID to query for| |main_account_id
`ma` |string|False
``|Main account ID being queried. By default, applies the requestor's main account ID.| + |transfer_types
`tt` |[TransferType]|False
`[]`|The transfer type to filters for. If the list is empty, return all transfer types.| + ??? info "[TransferType](/../../schemas/transfer_type)" + |Value| Description | + |-|-| + |`UNSPECIFIED` = 0|Default transfer that has nothing to do with bridging| + |`STANDARD` = 1|Standard transfer that has nothing to do with bridging| + |`FAST_ARB_DEPOSIT` = 2|Fast Arb Deposit Metadata type| + |`FAST_ARB_WITHDRAWAL` = 3|Fast Arb Withdrawal Metadata type| + |`NON_NATIVE_BRIDGE_DEPOSIT` = 4|Transfer type for non native bridging deposit| + |`NON_NATIVE_BRIDGE_WITHDRAWAL` = 5|Transfer type for non native bridging withdrawal| + |`ADHOC_INCENTIVE` = 6|Transfer type for adhoc incentive| + |`REFERRAL_INCENTIVE` = 7|Transfer type for referral incentive| + |`TRADING_DEPOSIT_YIELD_INCENTIVE` = 8|Transfer type for trading deposit yield incentive| diff --git a/artifacts/apidocs/schemas/api_transfer_history_response.md b/artifacts/apidocs/schemas/api_transfer_history_response.md index f045bce..59ed3cf 100644 --- a/artifacts/apidocs/schemas/api_transfer_history_response.md +++ b/artifacts/apidocs/schemas/api_transfer_history_response.md @@ -26,6 +26,7 @@ |v
`v` |integer|True|Signature V| |expiration
`e` |string|True|Timestamp after which this signature expires, expressed in unix nanoseconds. Must be capped at 30 days| |nonce
`n` |integer|True|Users can randomly generate this value, used as a signature deconflicting key.
ie. You can send the same exact instruction twice with different nonces.
When the same nonce is used, the same payload will generate the same signature.
Our system will consider the payload a duplicate, and ignore it.| + |chain_id
`ci` |string|True|Chain ID used in EIP-712 domain. Zero value fallbacks to GRVT Chain ID.| ??? info "[TransferType](/../../schemas/transfer_type)" |Value| Description | |-|-| @@ -35,3 +36,6 @@ |`FAST_ARB_WITHDRAWAL` = 3|Fast Arb Withdrawal Metadata type| |`NON_NATIVE_BRIDGE_DEPOSIT` = 4|Transfer type for non native bridging deposit| |`NON_NATIVE_BRIDGE_WITHDRAWAL` = 5|Transfer type for non native bridging withdrawal| + |`ADHOC_INCENTIVE` = 6|Transfer type for adhoc incentive| + |`REFERRAL_INCENTIVE` = 7|Transfer type for referral incentive| + |`TRADING_DEPOSIT_YIELD_INCENTIVE` = 8|Transfer type for trading deposit yield incentive| diff --git a/artifacts/apidocs/schemas/api_transfer_request.md b/artifacts/apidocs/schemas/api_transfer_request.md index dfcd6be..4ec9f4e 100644 --- a/artifacts/apidocs/schemas/api_transfer_request.md +++ b/artifacts/apidocs/schemas/api_transfer_request.md @@ -21,6 +21,7 @@ |v
`v` |integer|True|Signature V| |expiration
`e` |string|True|Timestamp after which this signature expires, expressed in unix nanoseconds. Must be capped at 30 days| |nonce
`n` |integer|True|Users can randomly generate this value, used as a signature deconflicting key.
ie. You can send the same exact instruction twice with different nonces.
When the same nonce is used, the same payload will generate the same signature.
Our system will consider the payload a duplicate, and ignore it.| + |chain_id
`ci` |string|True|Chain ID used in EIP-712 domain. Zero value fallbacks to GRVT Chain ID.| ??? info "[TransferType](/../../schemas/transfer_type)" |Value| Description | |-|-| @@ -30,3 +31,6 @@ |`FAST_ARB_WITHDRAWAL` = 3|Fast Arb Withdrawal Metadata type| |`NON_NATIVE_BRIDGE_DEPOSIT` = 4|Transfer type for non native bridging deposit| |`NON_NATIVE_BRIDGE_WITHDRAWAL` = 5|Transfer type for non native bridging withdrawal| + |`ADHOC_INCENTIVE` = 6|Transfer type for adhoc incentive| + |`REFERRAL_INCENTIVE` = 7|Transfer type for referral incentive| + |`TRADING_DEPOSIT_YIELD_INCENTIVE` = 8|Transfer type for trading deposit yield incentive| diff --git a/artifacts/apidocs/schemas/api_vault_burn_tokens_request.md b/artifacts/apidocs/schemas/api_vault_burn_tokens_request.md index fc2f848..0abfec2 100644 --- a/artifacts/apidocs/schemas/api_vault_burn_tokens_request.md +++ b/artifacts/apidocs/schemas/api_vault_burn_tokens_request.md @@ -16,3 +16,4 @@ |v
`v` |integer|True|Signature V| |expiration
`e` |string|True|Timestamp after which this signature expires, expressed in unix nanoseconds. Must be capped at 30 days| |nonce
`n` |integer|True|Users can randomly generate this value, used as a signature deconflicting key.
ie. You can send the same exact instruction twice with different nonces.
When the same nonce is used, the same payload will generate the same signature.
Our system will consider the payload a duplicate, and ignore it.| + |chain_id
`ci` |string|True|Chain ID used in EIP-712 domain. Zero value fallbacks to GRVT Chain ID.| diff --git a/artifacts/apidocs/schemas/api_vault_invest_request.md b/artifacts/apidocs/schemas/api_vault_invest_request.md index 0628b5f..8cc1408 100644 --- a/artifacts/apidocs/schemas/api_vault_invest_request.md +++ b/artifacts/apidocs/schemas/api_vault_invest_request.md @@ -16,3 +16,4 @@ |v
`v` |integer|True|Signature V| |expiration
`e` |string|True|Timestamp after which this signature expires, expressed in unix nanoseconds. Must be capped at 30 days| |nonce
`n` |integer|True|Users can randomly generate this value, used as a signature deconflicting key.
ie. You can send the same exact instruction twice with different nonces.
When the same nonce is used, the same payload will generate the same signature.
Our system will consider the payload a duplicate, and ignore it.| + |chain_id
`ci` |string|True|Chain ID used in EIP-712 domain. Zero value fallbacks to GRVT Chain ID.| diff --git a/artifacts/apidocs/schemas/api_vault_investor_summary_response.md b/artifacts/apidocs/schemas/api_vault_investor_summary_response.md index f9b1976..6fc459c 100644 --- a/artifacts/apidocs/schemas/api_vault_investor_summary_response.md +++ b/artifacts/apidocs/schemas/api_vault_investor_summary_response.md @@ -26,3 +26,4 @@ |request_valuation
`rv` |string|True|The valuation (in USD) of the redemption request.| |request_time
`rt` |string|True|[Filled by GRVT Backend] Time at which the redemption request was received by GRVT in unix nanoseconds| |max_redemption_period_timestamp
`mr` |string|True|[Filled by GRVT Backend] Time in unix nanoseconds, beyond which the request will be force-redeemed.| + |cancel_blocked
`cb` |boolean|False
`true`|Omitted for redemption requests to non-cross exchange vaults. True if cancellation is blocked within the CEV allocation allowance for the user's current tier (e.g. because the user has already transferred out the spot balance underlying the redemption request).| diff --git a/artifacts/apidocs/schemas/api_vault_redeem_request.md b/artifacts/apidocs/schemas/api_vault_redeem_request.md index 7e1d1b3..86c6e0b 100644 --- a/artifacts/apidocs/schemas/api_vault_redeem_request.md +++ b/artifacts/apidocs/schemas/api_vault_redeem_request.md @@ -16,3 +16,4 @@ |v
`v` |integer|True|Signature V| |expiration
`e` |string|True|Timestamp after which this signature expires, expressed in unix nanoseconds. Must be capped at 30 days| |nonce
`n` |integer|True|Users can randomly generate this value, used as a signature deconflicting key.
ie. You can send the same exact instruction twice with different nonces.
When the same nonce is used, the same payload will generate the same signature.
Our system will consider the payload a duplicate, and ignore it.| + |chain_id
`ci` |string|True|Chain ID used in EIP-712 domain. Zero value fallbacks to GRVT Chain ID.| diff --git a/artifacts/apidocs/schemas/api_withdrawal_history_response.md b/artifacts/apidocs/schemas/api_withdrawal_history_response.md index 0b5f0dd..2393b37 100644 --- a/artifacts/apidocs/schemas/api_withdrawal_history_response.md +++ b/artifacts/apidocs/schemas/api_withdrawal_history_response.md @@ -13,6 +13,8 @@ |num_tokens
`nt` |string|True|The number of tokens to withdraw| |signature
`s` |Signature|True|The signature of the withdrawal| |event_time
`et` |string|True|The timestamp of the withdrawal in unix nanoseconds| + |l_1_hash
`l1` |string|False
`''`|The finalized withdrawal transaction hash on L1| + |l_2_hash
`l2` |string|True|The transaction hash on L2| ??? info "[Signature](/../../schemas/signature)" |Name
`Lite`|Type|Required
`Default`| Description | |-|-|-|-| @@ -22,3 +24,4 @@ |v
`v` |integer|True|Signature V| |expiration
`e` |string|True|Timestamp after which this signature expires, expressed in unix nanoseconds. Must be capped at 30 days| |nonce
`n` |integer|True|Users can randomly generate this value, used as a signature deconflicting key.
ie. You can send the same exact instruction twice with different nonces.
When the same nonce is used, the same payload will generate the same signature.
Our system will consider the payload a duplicate, and ignore it.| + |chain_id
`ci` |string|True|Chain ID used in EIP-712 domain. Zero value fallbacks to GRVT Chain ID.| diff --git a/artifacts/apidocs/schemas/api_withdrawal_request.md b/artifacts/apidocs/schemas/api_withdrawal_request.md index 872f688..f0d11bd 100644 --- a/artifacts/apidocs/schemas/api_withdrawal_request.md +++ b/artifacts/apidocs/schemas/api_withdrawal_request.md @@ -17,3 +17,4 @@ |v
`v` |integer|True|Signature V| |expiration
`e` |string|True|Timestamp after which this signature expires, expressed in unix nanoseconds. Must be capped at 30 days| |nonce
`n` |integer|True|Users can randomly generate this value, used as a signature deconflicting key.
ie. You can send the same exact instruction twice with different nonces.
When the same nonce is used, the same payload will generate the same signature.
Our system will consider the payload a duplicate, and ignore it.| + |chain_id
`ci` |string|True|Chain ID used in EIP-712 domain. Zero value fallbacks to GRVT Chain ID.| diff --git a/artifacts/apidocs/schemas/cancel_status_feed.md b/artifacts/apidocs/schemas/cancel_status_feed.md index e94eb60..6e56c93 100644 --- a/artifacts/apidocs/schemas/cancel_status_feed.md +++ b/artifacts/apidocs/schemas/cancel_status_feed.md @@ -48,6 +48,7 @@ |`DERISK_NOT_SUPPORTED` = 35|derisk is not supported| |`INVALID_ORDER_TYPE` = 36|the order type is invalid| |`CURRENCY_NOT_DEFINED` = 37|the currency is not defined| + |`INVALID_CHAIN_ID` = 38|the chain ID is invalid| ??? info "[CancelStatus](/../../schemas/cancel_status)" |Value| Description | |-|-| diff --git a/artifacts/apidocs/schemas/instrument_display.md b/artifacts/apidocs/schemas/instrument_display.md new file mode 100644 index 0000000..fc9e045 --- /dev/null +++ b/artifacts/apidocs/schemas/instrument_display.md @@ -0,0 +1,43 @@ +!!! info "[InstrumentDisplay](/../../schemas/instrument_display)" + |Name
`Lite`|Type|Required
`Default`| Description | + |-|-|-|-| + |instrument
`i` |string|True|The readable instrument name:| + |instrument_hash
`ih` |string|True|The asset ID used for instrument signing.| + |base
`b` |string|True|The base currency| + |quote
`q` |string|True|The quote currency| + |kind
`k` |Kind|True|The kind of instrument| + |venues
`v` |[Venue]|True|Venues that this instrument can be traded at| + |settlement_period
`sp1` |InstrumentSettlementPeriod|True|The settlement period of the instrument| + |base_decimals
`bd` |integer|True|The smallest denomination of the base asset supported by GRVT (+3 represents 0.001, -3 represents 1000, 0 represents 1)| + |quote_decimals
`qd` |integer|True|The smallest denomination of the quote asset supported by GRVT (+3 represents 0.001, -3 represents 1000, 0 represents 1)| + |tick_size
`ts` |string|True|The size of a single tick, expressed in price decimal units| + |min_size
`ms` |string|True|The minimum contract size, expressed in base asset decimal units| + |create_time
`ct` |string|True|Creation time in unix nanoseconds| + |max_position_size
`mp` |string|True|The maximum position size, expressed in base asset decimal units| + |funding_interval_hours
`fi` |integer|False
`None`|Defines the funding interval to be applied.| + |adjusted_funding_rate_cap
`af` |string|False
`None`|Funding rate cap over the defined `intervalHours`.| + |adjusted_funding_rate_floor
`af1` |string|False
`None`|Funding rate floor over the defined `intervalHours`.| + ??? info "[Kind](/../../schemas/kind)" + The list of asset kinds that are supported on the GRVT exchange
+ + |Value| Description | + |-|-| + |`PERPETUAL` = 1|the perpetual asset kind| + |`FUTURE` = 2|the future asset kind| + |`CALL` = 3|the call option asset kind| + |`PUT` = 4|the put option asset kind| + ??? info "[Venue](/../../schemas/venue)" + The list of Trading Venues that are supported on the GRVT exchange
+ + |Value| Description | + |-|-| + |`ORDERBOOK` = 1|the trade is cleared on the orderbook venue| + |`RFQ` = 2|the trade is cleared on the RFQ venue| + ??? info "[InstrumentSettlementPeriod](/../../schemas/instrument_settlement_period)" + |Value| Description | + |-|-| + |`PERPETUAL` = 1|Instrument settles through perpetual funding cycles| + |`DAILY` = 2|Instrument settles at an expiry date, marked as a daily instrument| + |`WEEKLY` = 3|Instrument settles at an expiry date, marked as a weekly instrument| + |`MONTHLY` = 4|Instrument settles at an expiry date, marked as a monthly instrument| + |`QUARTERLY` = 5|Instrument settles at an expiry date, marked as a quarterly instrument| diff --git a/artifacts/apidocs/schemas/order.md b/artifacts/apidocs/schemas/order.md index 0fd6c33..aaee1e4 100644 --- a/artifacts/apidocs/schemas/order.md +++ b/artifacts/apidocs/schemas/order.md @@ -43,6 +43,7 @@ |v
`v` |integer|True|Signature V| |expiration
`e` |string|True|Timestamp after which this signature expires, expressed in unix nanoseconds. Must be capped at 30 days| |nonce
`n` |integer|True|Users can randomly generate this value, used as a signature deconflicting key.
ie. You can send the same exact instruction twice with different nonces.
When the same nonce is used, the same payload will generate the same signature.
Our system will consider the payload a duplicate, and ignore it.| + |chain_id
`ci` |string|True|Chain ID used in EIP-712 domain. Zero value fallbacks to GRVT Chain ID.| ??? info "[OrderMetadata](/../../schemas/order_metadata)" Metadata fields are used to support Backend only operations. These operations are not trustless by nature.
Hence, fields in here are never signed, and is never transmitted to the smart contract.
@@ -52,6 +53,7 @@ |create_time
`ct` |string|False
`0`|[Filled by GRVT Backend] Time at which the order was received by GRVT in unix nanoseconds| |trigger
`t` |TriggerOrderMetadata|False
``|Trigger fields are used to support any type of trigger order such as TP/SL| |broker
`b` |BrokerTag|False
``|Specifies the broker who brokered the order| + |allow_crossing
`ac` |boolean|False
`false`|Specifies if post only order is allowed to cross the orderbook| ??? info "[TriggerOrderMetadata](/../../schemas/trigger_order_metadata)" Contains metadata related to trigger orders, such as Take Profit (TP) or Stop Loss (SL).

Trigger orders are used to automatically execute an order when a predefined price condition is met, allowing traders to implement risk management strategies.


@@ -152,3 +154,4 @@ |`DERISK_NOT_SUPPORTED` = 35|derisk is not supported| |`INVALID_ORDER_TYPE` = 36|the order type is invalid| |`CURRENCY_NOT_DEFINED` = 37|the currency is not defined| + |`INVALID_CHAIN_ID` = 38|the chain ID is invalid| diff --git a/artifacts/apidocs/schemas/order_metadata.md b/artifacts/apidocs/schemas/order_metadata.md index 471ce7b..e933a37 100644 --- a/artifacts/apidocs/schemas/order_metadata.md +++ b/artifacts/apidocs/schemas/order_metadata.md @@ -7,6 +7,7 @@ |create_time
`ct` |string|False
`0`|[Filled by GRVT Backend] Time at which the order was received by GRVT in unix nanoseconds| |trigger
`t` |TriggerOrderMetadata|False
``|Trigger fields are used to support any type of trigger order such as TP/SL| |broker
`b` |BrokerTag|False
``|Specifies the broker who brokered the order| + |allow_crossing
`ac` |boolean|False
`false`|Specifies if post only order is allowed to cross the orderbook| ??? info "[TriggerOrderMetadata](/../../schemas/trigger_order_metadata)" Contains metadata related to trigger orders, such as Take Profit (TP) or Stop Loss (SL).

Trigger orders are used to automatically execute an order when a predefined price condition is met, allowing traders to implement risk management strategies.


diff --git a/artifacts/apidocs/schemas/order_reject_reason.md b/artifacts/apidocs/schemas/order_reject_reason.md index ca48a4e..39c60a2 100644 --- a/artifacts/apidocs/schemas/order_reject_reason.md +++ b/artifacts/apidocs/schemas/order_reject_reason.md @@ -39,3 +39,4 @@ |`DERISK_NOT_SUPPORTED` = 35|derisk is not supported| |`INVALID_ORDER_TYPE` = 36|the order type is invalid| |`CURRENCY_NOT_DEFINED` = 37|the currency is not defined| + |`INVALID_CHAIN_ID` = 38|the chain ID is invalid| diff --git a/artifacts/apidocs/schemas/order_state.md b/artifacts/apidocs/schemas/order_state.md index 53962ce..30a2154 100644 --- a/artifacts/apidocs/schemas/order_state.md +++ b/artifacts/apidocs/schemas/order_state.md @@ -56,3 +56,4 @@ |`DERISK_NOT_SUPPORTED` = 35|derisk is not supported| |`INVALID_ORDER_TYPE` = 36|the order type is invalid| |`CURRENCY_NOT_DEFINED` = 37|the currency is not defined| + |`INVALID_CHAIN_ID` = 38|the chain ID is invalid| diff --git a/artifacts/apidocs/schemas/order_state_feed.md b/artifacts/apidocs/schemas/order_state_feed.md index c6ec767..e9beafd 100644 --- a/artifacts/apidocs/schemas/order_state_feed.md +++ b/artifacts/apidocs/schemas/order_state_feed.md @@ -62,3 +62,4 @@ |`DERISK_NOT_SUPPORTED` = 35|derisk is not supported| |`INVALID_ORDER_TYPE` = 36|the order type is invalid| |`CURRENCY_NOT_DEFINED` = 37|the currency is not defined| + |`INVALID_CHAIN_ID` = 38|the chain ID is invalid| diff --git a/artifacts/apidocs/schemas/positions.md b/artifacts/apidocs/schemas/positions.md index 1fa92a4..8209b48 100644 --- a/artifacts/apidocs/schemas/positions.md +++ b/artifacts/apidocs/schemas/positions.md @@ -16,3 +16,5 @@ |quote_index_price
`qi` |string|True|The index price of the quote currency. (reported in `USD`)| |est_liquidation_price
`el` |string|True|The estimated liquidation price| |leverage
`l` |string|True|The current leverage value for this position| + |cumulative_fee
`cf` |string|True|The cumulative fee paid on the position, expressed in quote asset decimal units| + |cumulative_realized_funding_payment
`cr` |string|True|The cumulative realized funding payment of the position, expressed in quote asset decimal units| diff --git a/artifacts/apidocs/schemas/signature.md b/artifacts/apidocs/schemas/signature.md index f896cdf..0266257 100644 --- a/artifacts/apidocs/schemas/signature.md +++ b/artifacts/apidocs/schemas/signature.md @@ -7,3 +7,4 @@ |v
`v` |integer|True|Signature V| |expiration
`e` |string|True|Timestamp after which this signature expires, expressed in unix nanoseconds. Must be capped at 30 days| |nonce
`n` |integer|True|Users can randomly generate this value, used as a signature deconflicting key.
ie. You can send the same exact instruction twice with different nonces.
When the same nonce is used, the same payload will generate the same signature.
Our system will consider the payload a duplicate, and ignore it.| + |chain_id
`ci` |string|True|Chain ID used in EIP-712 domain. Zero value fallbacks to GRVT Chain ID.| diff --git a/artifacts/apidocs/schemas/sub_account.md b/artifacts/apidocs/schemas/sub_account.md index d2201b6..786cd91 100644 --- a/artifacts/apidocs/schemas/sub_account.md +++ b/artifacts/apidocs/schemas/sub_account.md @@ -46,3 +46,5 @@ |quote_index_price
`qi` |string|True|The index price of the quote currency. (reported in `USD`)| |est_liquidation_price
`el` |string|True|The estimated liquidation price| |leverage
`l` |string|True|The current leverage value for this position| + |cumulative_fee
`cf` |string|True|The cumulative fee paid on the position, expressed in quote asset decimal units| + |cumulative_realized_funding_payment
`cr` |string|True|The cumulative realized funding payment of the position, expressed in quote asset decimal units| diff --git a/artifacts/apidocs/schemas/ticker.md b/artifacts/apidocs/schemas/ticker.md index d0546a0..e3a4e66 100644 --- a/artifacts/apidocs/schemas/ticker.md +++ b/artifacts/apidocs/schemas/ticker.md @@ -14,8 +14,8 @@ |best_bid_size
`bb1` |string|False
`None`|The number of assets offered on the best bid price of the instrument, expressed in base asset decimal units| |best_ask_price
`ba` |string|False
`None`|The best ask price of the instrument, expressed in `9` decimals| |best_ask_size
`ba1` |string|False
`None`|The number of assets offered on the best ask price of the instrument, expressed in base asset decimal units| - |funding_rate_8h_curr
`fr` |string|False
`None`|The current funding rate of the instrument, expressed in percentage points| - |funding_rate_8h_avg
`fr1` |string|False
`None`|The average funding rate of the instrument (over last 8h), expressed in percentage points| + |funding_rate_8h_curr
`fr` |string|False
`None`|DEPRECATED: To be removed in a future release. Please refer to the field `funding_rate` instead, for the funding rate being applied over `funding_interval_hours` (interval ending at `next_funding_time`).| + |funding_rate_8h_avg
`fr1` |string|False
`None`|DEPRECATED: To be removed in a future release. Please refer to the field `funding_rate` instead, for the funding rate being applied over `funding_interval_hours` (interval ending at `next_funding_time`).| |interest_rate
`ir` |string|False
`None`|The interest rate of the underlying, expressed in centibeeps (1/100th of a basis point)| |forward_price
`fp` |string|False
`None`|[Options] The forward price of the option, expressed in `9` decimals| |buy_volume_24h_b
`bv` |string|False
`None`|The 24 hour taker buy volume of the instrument, expressed in base asset decimal units| @@ -27,3 +27,5 @@ |open_price
`op` |string|False
`None`|The 24 hour first traded price of the instrument, expressed in `9` decimals| |open_interest
`oi` |string|False
`None`|The open interest in the instrument, expressed in base asset decimal units| |long_short_ratio
`ls1` |string|False
`None`|The ratio of accounts that are net long vs net short on this instrument| + |funding_rate
`fr2` |string|False
`None`|The current indicative funding rate for the active interval, expressed in centibeeps| + |next_funding_time
`nf` |string|False
`None`|Timestamp in nanoseconds when the current funding interval ends| diff --git a/artifacts/apidocs/schemas/transfer_history.md b/artifacts/apidocs/schemas/transfer_history.md index c9108e7..76438b5 100644 --- a/artifacts/apidocs/schemas/transfer_history.md +++ b/artifacts/apidocs/schemas/transfer_history.md @@ -21,6 +21,7 @@ |v
`v` |integer|True|Signature V| |expiration
`e` |string|True|Timestamp after which this signature expires, expressed in unix nanoseconds. Must be capped at 30 days| |nonce
`n` |integer|True|Users can randomly generate this value, used as a signature deconflicting key.
ie. You can send the same exact instruction twice with different nonces.
When the same nonce is used, the same payload will generate the same signature.
Our system will consider the payload a duplicate, and ignore it.| + |chain_id
`ci` |string|True|Chain ID used in EIP-712 domain. Zero value fallbacks to GRVT Chain ID.| ??? info "[TransferType](/../../schemas/transfer_type)" |Value| Description | |-|-| @@ -30,3 +31,6 @@ |`FAST_ARB_WITHDRAWAL` = 3|Fast Arb Withdrawal Metadata type| |`NON_NATIVE_BRIDGE_DEPOSIT` = 4|Transfer type for non native bridging deposit| |`NON_NATIVE_BRIDGE_WITHDRAWAL` = 5|Transfer type for non native bridging withdrawal| + |`ADHOC_INCENTIVE` = 6|Transfer type for adhoc incentive| + |`REFERRAL_INCENTIVE` = 7|Transfer type for referral incentive| + |`TRADING_DEPOSIT_YIELD_INCENTIVE` = 8|Transfer type for trading deposit yield incentive| diff --git a/artifacts/apidocs/schemas/transfer_type.md b/artifacts/apidocs/schemas/transfer_type.md index 0885447..c41682f 100644 --- a/artifacts/apidocs/schemas/transfer_type.md +++ b/artifacts/apidocs/schemas/transfer_type.md @@ -7,3 +7,6 @@ |`FAST_ARB_WITHDRAWAL` = 3|Fast Arb Withdrawal Metadata type| |`NON_NATIVE_BRIDGE_DEPOSIT` = 4|Transfer type for non native bridging deposit| |`NON_NATIVE_BRIDGE_WITHDRAWAL` = 5|Transfer type for non native bridging withdrawal| + |`ADHOC_INCENTIVE` = 6|Transfer type for adhoc incentive| + |`REFERRAL_INCENTIVE` = 7|Transfer type for referral incentive| + |`TRADING_DEPOSIT_YIELD_INCENTIVE` = 8|Transfer type for trading deposit yield incentive| diff --git a/artifacts/apidocs/schemas/vault_investor_summary.md b/artifacts/apidocs/schemas/vault_investor_summary.md index 1109001..edc0973 100644 --- a/artifacts/apidocs/schemas/vault_investor_summary.md +++ b/artifacts/apidocs/schemas/vault_investor_summary.md @@ -20,3 +20,4 @@ |request_valuation
`rv` |string|True|The valuation (in USD) of the redemption request.| |request_time
`rt` |string|True|[Filled by GRVT Backend] Time at which the redemption request was received by GRVT in unix nanoseconds| |max_redemption_period_timestamp
`mr` |string|True|[Filled by GRVT Backend] Time in unix nanoseconds, beyond which the request will be force-redeemed.| + |cancel_blocked
`cb` |boolean|False
`true`|Omitted for redemption requests to non-cross exchange vaults. True if cancellation is blocked within the CEV allocation allowance for the user's current tier (e.g. because the user has already transferred out the spot balance underlying the redemption request).| diff --git a/artifacts/apidocs/schemas/vault_redemption.md b/artifacts/apidocs/schemas/vault_redemption.md index c3a105b..7e0905f 100644 --- a/artifacts/apidocs/schemas/vault_redemption.md +++ b/artifacts/apidocs/schemas/vault_redemption.md @@ -7,3 +7,4 @@ |request_valuation
`rv` |string|True|The valuation (in USD) of the redemption request.| |request_time
`rt` |string|True|[Filled by GRVT Backend] Time at which the redemption request was received by GRVT in unix nanoseconds| |max_redemption_period_timestamp
`mr` |string|True|[Filled by GRVT Backend] Time in unix nanoseconds, beyond which the request will be force-redeemed.| + |cancel_blocked
`cb` |boolean|False
`true`|Omitted for redemption requests to non-cross exchange vaults. True if cancellation is blocked within the CEV allocation allowance for the user's current tier (e.g. because the user has already transferred out the spot balance underlying the redemption request).| diff --git a/artifacts/apidocs/schemas/withdrawal.md b/artifacts/apidocs/schemas/withdrawal.md index abfbe28..d0ee0ca 100644 --- a/artifacts/apidocs/schemas/withdrawal.md +++ b/artifacts/apidocs/schemas/withdrawal.md @@ -15,3 +15,4 @@ |v
`v` |integer|True|Signature V| |expiration
`e` |string|True|Timestamp after which this signature expires, expressed in unix nanoseconds. Must be capped at 30 days| |nonce
`n` |integer|True|Users can randomly generate this value, used as a signature deconflicting key.
ie. You can send the same exact instruction twice with different nonces.
When the same nonce is used, the same payload will generate the same signature.
Our system will consider the payload a duplicate, and ignore it.| + |chain_id
`ci` |string|True|Chain ID used in EIP-712 domain. Zero value fallbacks to GRVT Chain ID.| diff --git a/artifacts/apidocs/schemas/withdrawal_history.md b/artifacts/apidocs/schemas/withdrawal_history.md index 36b7a18..ce9596c 100644 --- a/artifacts/apidocs/schemas/withdrawal_history.md +++ b/artifacts/apidocs/schemas/withdrawal_history.md @@ -8,6 +8,8 @@ |num_tokens
`nt` |string|True|The number of tokens to withdraw| |signature
`s` |Signature|True|The signature of the withdrawal| |event_time
`et` |string|True|The timestamp of the withdrawal in unix nanoseconds| + |l_1_hash
`l1` |string|False
`''`|The finalized withdrawal transaction hash on L1| + |l_2_hash
`l2` |string|True|The transaction hash on L2| ??? info "[Signature](/../../schemas/signature)" |Name
`Lite`|Type|Required
`Default`| Description | |-|-|-|-| @@ -17,3 +19,4 @@ |v
`v` |integer|True|Signature V| |expiration
`e` |string|True|Timestamp after which this signature expires, expressed in unix nanoseconds. Must be capped at 30 days| |nonce
`n` |integer|True|Users can randomly generate this value, used as a signature deconflicting key.
ie. You can send the same exact instruction twice with different nonces.
When the same nonce is used, the same payload will generate the same signature.
Our system will consider the payload a duplicate, and ignore it.| + |chain_id
`ci` |string|True|Chain ID used in EIP-712 domain. Zero value fallbacks to GRVT Chain ID.| diff --git a/artifacts/apidocs/schemas/ws_cancel_feed_data_v1.md b/artifacts/apidocs/schemas/ws_cancel_feed_data_v1.md index 908a188..b485507 100644 --- a/artifacts/apidocs/schemas/ws_cancel_feed_data_v1.md +++ b/artifacts/apidocs/schemas/ws_cancel_feed_data_v1.md @@ -55,6 +55,7 @@ |`DERISK_NOT_SUPPORTED` = 35|derisk is not supported| |`INVALID_ORDER_TYPE` = 36|the order type is invalid| |`CURRENCY_NOT_DEFINED` = 37|the currency is not defined| + |`INVALID_CHAIN_ID` = 38|the chain ID is invalid| ??? info "[CancelStatus](/../../schemas/cancel_status)" |Value| Description | |-|-| diff --git a/artifacts/apidocs/schemas/ws_order_feed_data_v1.md b/artifacts/apidocs/schemas/ws_order_feed_data_v1.md index f8fc87e..59d36c3 100644 --- a/artifacts/apidocs/schemas/ws_order_feed_data_v1.md +++ b/artifacts/apidocs/schemas/ws_order_feed_data_v1.md @@ -50,6 +50,7 @@ |v
`v` |integer|True|Signature V| |expiration
`e` |string|True|Timestamp after which this signature expires, expressed in unix nanoseconds. Must be capped at 30 days| |nonce
`n` |integer|True|Users can randomly generate this value, used as a signature deconflicting key.
ie. You can send the same exact instruction twice with different nonces.
When the same nonce is used, the same payload will generate the same signature.
Our system will consider the payload a duplicate, and ignore it.| + |chain_id
`ci` |string|True|Chain ID used in EIP-712 domain. Zero value fallbacks to GRVT Chain ID.| ??? info "[OrderMetadata](/../../schemas/order_metadata)" Metadata fields are used to support Backend only operations. These operations are not trustless by nature.
Hence, fields in here are never signed, and is never transmitted to the smart contract.
@@ -59,6 +60,7 @@ |create_time
`ct` |string|False
`0`|[Filled by GRVT Backend] Time at which the order was received by GRVT in unix nanoseconds| |trigger
`t` |TriggerOrderMetadata|False
``|Trigger fields are used to support any type of trigger order such as TP/SL| |broker
`b` |BrokerTag|False
``|Specifies the broker who brokered the order| + |allow_crossing
`ac` |boolean|False
`false`|Specifies if post only order is allowed to cross the orderbook| ??? info "[TriggerOrderMetadata](/../../schemas/trigger_order_metadata)" Contains metadata related to trigger orders, such as Take Profit (TP) or Stop Loss (SL).

Trigger orders are used to automatically execute an order when a predefined price condition is met, allowing traders to implement risk management strategies.


@@ -159,3 +161,4 @@ |`DERISK_NOT_SUPPORTED` = 35|derisk is not supported| |`INVALID_ORDER_TYPE` = 36|the order type is invalid| |`CURRENCY_NOT_DEFINED` = 37|the currency is not defined| + |`INVALID_CHAIN_ID` = 38|the chain ID is invalid| diff --git a/artifacts/apidocs/schemas/ws_order_state_feed_data_v1.md b/artifacts/apidocs/schemas/ws_order_state_feed_data_v1.md index 10c6dba..02782b0 100644 --- a/artifacts/apidocs/schemas/ws_order_state_feed_data_v1.md +++ b/artifacts/apidocs/schemas/ws_order_state_feed_data_v1.md @@ -69,3 +69,4 @@ |`DERISK_NOT_SUPPORTED` = 35|derisk is not supported| |`INVALID_ORDER_TYPE` = 36|the order type is invalid| |`CURRENCY_NOT_DEFINED` = 37|the currency is not defined| + |`INVALID_CHAIN_ID` = 38|the chain ID is invalid| diff --git a/artifacts/apidocs/schemas/ws_positions_feed_data_v1.md b/artifacts/apidocs/schemas/ws_positions_feed_data_v1.md index 44c4fc7..b4999bf 100644 --- a/artifacts/apidocs/schemas/ws_positions_feed_data_v1.md +++ b/artifacts/apidocs/schemas/ws_positions_feed_data_v1.md @@ -23,3 +23,5 @@ |quote_index_price
`qi` |string|True|The index price of the quote currency. (reported in `USD`)| |est_liquidation_price
`el` |string|True|The estimated liquidation price| |leverage
`l` |string|True|The current leverage value for this position| + |cumulative_fee
`cf` |string|True|The cumulative fee paid on the position, expressed in quote asset decimal units| + |cumulative_realized_funding_payment
`cr` |string|True|The cumulative realized funding payment of the position, expressed in quote asset decimal units| diff --git a/artifacts/apidocs/schemas/ws_ticker_feed_data_v1.md b/artifacts/apidocs/schemas/ws_ticker_feed_data_v1.md index e9dacdc..38c115b 100644 --- a/artifacts/apidocs/schemas/ws_ticker_feed_data_v1.md +++ b/artifacts/apidocs/schemas/ws_ticker_feed_data_v1.md @@ -21,8 +21,8 @@ |best_bid_size
`bb1` |string|False
`None`|The number of assets offered on the best bid price of the instrument, expressed in base asset decimal units| |best_ask_price
`ba` |string|False
`None`|The best ask price of the instrument, expressed in `9` decimals| |best_ask_size
`ba1` |string|False
`None`|The number of assets offered on the best ask price of the instrument, expressed in base asset decimal units| - |funding_rate_8h_curr
`fr` |string|False
`None`|The current funding rate of the instrument, expressed in percentage points| - |funding_rate_8h_avg
`fr1` |string|False
`None`|The average funding rate of the instrument (over last 8h), expressed in percentage points| + |funding_rate_8h_curr
`fr` |string|False
`None`|DEPRECATED: To be removed in a future release. Please refer to the field `funding_rate` instead, for the funding rate being applied over `funding_interval_hours` (interval ending at `next_funding_time`).| + |funding_rate_8h_avg
`fr1` |string|False
`None`|DEPRECATED: To be removed in a future release. Please refer to the field `funding_rate` instead, for the funding rate being applied over `funding_interval_hours` (interval ending at `next_funding_time`).| |interest_rate
`ir` |string|False
`None`|The interest rate of the underlying, expressed in centibeeps (1/100th of a basis point)| |forward_price
`fp` |string|False
`None`|[Options] The forward price of the option, expressed in `9` decimals| |buy_volume_24h_b
`bv` |string|False
`None`|The 24 hour taker buy volume of the instrument, expressed in base asset decimal units| @@ -34,3 +34,5 @@ |open_price
`op` |string|False
`None`|The 24 hour first traded price of the instrument, expressed in `9` decimals| |open_interest
`oi` |string|False
`None`|The open interest in the instrument, expressed in base asset decimal units| |long_short_ratio
`ls1` |string|False
`None`|The ratio of accounts that are net long vs net short on this instrument| + |funding_rate
`fr2` |string|False
`None`|The current indicative funding rate for the active interval, expressed in centibeeps| + |next_funding_time
`nf` |string|False
`None`|Timestamp in nanoseconds when the current funding interval ends| diff --git a/artifacts/apidocs/schemas/ws_transfer_feed_data_v1.md b/artifacts/apidocs/schemas/ws_transfer_feed_data_v1.md index 9eca61c..70de8a2 100644 --- a/artifacts/apidocs/schemas/ws_transfer_feed_data_v1.md +++ b/artifacts/apidocs/schemas/ws_transfer_feed_data_v1.md @@ -30,6 +30,7 @@ |v
`v` |integer|True|Signature V| |expiration
`e` |string|True|Timestamp after which this signature expires, expressed in unix nanoseconds. Must be capped at 30 days| |nonce
`n` |integer|True|Users can randomly generate this value, used as a signature deconflicting key.
ie. You can send the same exact instruction twice with different nonces.
When the same nonce is used, the same payload will generate the same signature.
Our system will consider the payload a duplicate, and ignore it.| + |chain_id
`ci` |string|True|Chain ID used in EIP-712 domain. Zero value fallbacks to GRVT Chain ID.| ??? info "[TransferType](/../../schemas/transfer_type)" |Value| Description | |-|-| @@ -39,3 +40,6 @@ |`FAST_ARB_WITHDRAWAL` = 3|Fast Arb Withdrawal Metadata type| |`NON_NATIVE_BRIDGE_DEPOSIT` = 4|Transfer type for non native bridging deposit| |`NON_NATIVE_BRIDGE_WITHDRAWAL` = 5|Transfer type for non native bridging withdrawal| + |`ADHOC_INCENTIVE` = 6|Transfer type for adhoc incentive| + |`REFERRAL_INCENTIVE` = 7|Transfer type for referral incentive| + |`TRADING_DEPOSIT_YIELD_INCENTIVE` = 8|Transfer type for trading deposit yield incentive| diff --git a/artifacts/apidocs/schemas/ws_withdrawal_feed_data_v1.md b/artifacts/apidocs/schemas/ws_withdrawal_feed_data_v1.md index fe45dfe..9277c50 100644 --- a/artifacts/apidocs/schemas/ws_withdrawal_feed_data_v1.md +++ b/artifacts/apidocs/schemas/ws_withdrawal_feed_data_v1.md @@ -24,3 +24,4 @@ |v
`v` |integer|True|Signature V| |expiration
`e` |string|True|Timestamp after which this signature expires, expressed in unix nanoseconds. Must be capped at 30 days| |nonce
`n` |integer|True|Users can randomly generate this value, used as a signature deconflicting key.
ie. You can send the same exact instruction twice with different nonces.
When the same nonce is used, the same payload will generate the same signature.
Our system will consider the payload a duplicate, and ignore it.| + |chain_id
`ci` |string|True|Chain ID used in EIP-712 domain. Zero value fallbacks to GRVT Chain ID.| diff --git a/artifacts/apidocs/trading_api.md b/artifacts/apidocs/trading_api.md index 445feee..2ff0714 100644 --- a/artifacts/apidocs/trading_api.md +++ b/artifacts/apidocs/trading_api.md @@ -35,7 +35,8 @@ LITE ENDPOINT: lite/v1/create_order "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "expiration": "1697788800000000000", - "nonce": 1234567890 + "nonce": 1234567890, + "chain_id": "325" }, "metadata": { "client_order_id": "23042", @@ -48,7 +49,8 @@ LITE ENDPOINT: lite/v1/create_order "close_position": false } }, - "broker": "BROKER_CODE" + "broker": "BROKER_CODE", + "allow_crossing": null } } } @@ -74,7 +76,8 @@ LITE ENDPOINT: lite/v1/create_order "s1": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "e": "1697788800000000000", - "n": 1234567890 + "n": 1234567890, + "ci": "325" }, "m": { "co": "23042", @@ -87,7 +90,8 @@ LITE ENDPOINT: lite/v1/create_order "cp": false } }, - "b": "BROKER_CODE" + "b": "BROKER_CODE", + "ac": null } } } @@ -121,7 +125,8 @@ LITE ENDPOINT: lite/v1/create_order "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "expiration": "1697788800000000000", - "nonce": 1234567890 + "nonce": 1234567890, + "chain_id": "325" }, "metadata": { "client_order_id": "23042", @@ -134,7 +139,8 @@ LITE ENDPOINT: lite/v1/create_order "close_position": false } }, - "broker": "BROKER_CODE" + "broker": "BROKER_CODE", + "allow_crossing": null }, "state": { "status": "PENDING", @@ -169,7 +175,8 @@ LITE ENDPOINT: lite/v1/create_order "s1": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "e": "1697788800000000000", - "n": 1234567890 + "n": 1234567890, + "ci": "325" }, "m": { "co": "23042", @@ -182,7 +189,8 @@ LITE ENDPOINT: lite/v1/create_order "cp": false } }, - "b": "BROKER_CODE" + "b": "BROKER_CODE", + "ac": null }, "s1": { "s": "PENDING", @@ -211,6 +219,7 @@ LITE ENDPOINT: lite/v1/create_order |1008|401|Your IP has not been whitelisted for access| |1400|403|Signer does not have trade permission| |1009|503|We are temporarily deactivating this API endpoint, please try again later| + |1012|400|Invalid signature chain ID| |2000|403|Signature is from an unauthorized signer| |2001|403|Signature has expired| |2002|403|Signature does not match payload| @@ -306,7 +315,8 @@ LITE ENDPOINT: lite/v1/create_order "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "expiration": "1697788800000000000", - "nonce": 1234567890 + "nonce": 1234567890, + "chain_id": "325" }, "metadata": { "client_order_id": "23042", @@ -319,7 +329,8 @@ LITE ENDPOINT: lite/v1/create_order "close_position": false } }, - "broker": "BROKER_CODE" + "broker": "BROKER_CODE", + "allow_crossing": null } } } @@ -353,7 +364,8 @@ LITE ENDPOINT: lite/v1/create_order "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "expiration": "1697788800000000000", - "nonce": 1234567890 + "nonce": 1234567890, + "chain_id": "325" }, "metadata": { "client_order_id": "23042", @@ -366,7 +378,8 @@ LITE ENDPOINT: lite/v1/create_order "close_position": false } }, - "broker": "BROKER_CODE" + "broker": "BROKER_CODE", + "allow_crossing": null } } }, @@ -400,7 +413,8 @@ LITE ENDPOINT: lite/v1/create_order "s1": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "e": "1697788800000000000", - "n": 1234567890 + "n": 1234567890, + "ci": "325" }, "m": { "co": "23042", @@ -413,7 +427,8 @@ LITE ENDPOINT: lite/v1/create_order "cp": false } }, - "b": "BROKER_CODE" + "b": "BROKER_CODE", + "ac": null } } } @@ -447,7 +462,8 @@ LITE ENDPOINT: lite/v1/create_order "s1": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "e": "1697788800000000000", - "n": 1234567890 + "n": 1234567890, + "ci": "325" }, "m": { "co": "23042", @@ -460,7 +476,8 @@ LITE ENDPOINT: lite/v1/create_order "cp": false } }, - "b": "BROKER_CODE" + "b": "BROKER_CODE", + "ac": null } } }, @@ -495,7 +512,8 @@ LITE ENDPOINT: lite/v1/create_order "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "expiration": "1697788800000000000", - "nonce": 1234567890 + "nonce": 1234567890, + "chain_id": "325" }, "metadata": { "client_order_id": "23042", @@ -508,7 +526,8 @@ LITE ENDPOINT: lite/v1/create_order "close_position": false } }, - "broker": "BROKER_CODE" + "broker": "BROKER_CODE", + "allow_crossing": null } } } @@ -542,7 +561,8 @@ LITE ENDPOINT: lite/v1/create_order "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "expiration": "1697788800000000000", - "nonce": 1234567890 + "nonce": 1234567890, + "chain_id": "325" }, "metadata": { "client_order_id": "23042", @@ -555,7 +575,8 @@ LITE ENDPOINT: lite/v1/create_order "close_position": false } }, - "broker": "BROKER_CODE" + "broker": "BROKER_CODE", + "allow_crossing": null } } }, @@ -589,7 +610,8 @@ LITE ENDPOINT: lite/v1/create_order "s1": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "e": "1697788800000000000", - "n": 1234567890 + "n": 1234567890, + "ci": "325" }, "m": { "co": "23042", @@ -602,7 +624,8 @@ LITE ENDPOINT: lite/v1/create_order "cp": false } }, - "b": "BROKER_CODE" + "b": "BROKER_CODE", + "ac": null } } } @@ -636,7 +659,8 @@ LITE ENDPOINT: lite/v1/create_order "s1": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "e": "1697788800000000000", - "n": 1234567890 + "n": 1234567890, + "ci": "325" }, "m": { "co": "23042", @@ -649,7 +673,8 @@ LITE ENDPOINT: lite/v1/create_order "cp": false } }, - "b": "BROKER_CODE" + "b": "BROKER_CODE", + "ac": null } } }, @@ -684,7 +709,8 @@ LITE ENDPOINT: lite/v1/create_order "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "expiration": "1697788800000000000", - "nonce": 1234567890 + "nonce": 1234567890, + "chain_id": "325" }, "metadata": { "client_order_id": "23042", @@ -697,7 +723,8 @@ LITE ENDPOINT: lite/v1/create_order "close_position": false } }, - "broker": "BROKER_CODE" + "broker": "BROKER_CODE", + "allow_crossing": null } } } @@ -731,7 +758,8 @@ LITE ENDPOINT: lite/v1/create_order "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "expiration": "1697788800000000000", - "nonce": 1234567890 + "nonce": 1234567890, + "chain_id": "325" }, "metadata": { "client_order_id": "23042", @@ -744,7 +772,8 @@ LITE ENDPOINT: lite/v1/create_order "close_position": false } }, - "broker": "BROKER_CODE" + "broker": "BROKER_CODE", + "allow_crossing": null } } }, @@ -778,7 +807,8 @@ LITE ENDPOINT: lite/v1/create_order "s1": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "e": "1697788800000000000", - "n": 1234567890 + "n": 1234567890, + "ci": "325" }, "m": { "co": "23042", @@ -791,7 +821,8 @@ LITE ENDPOINT: lite/v1/create_order "cp": false } }, - "b": "BROKER_CODE" + "b": "BROKER_CODE", + "ac": null } } } @@ -825,7 +856,8 @@ LITE ENDPOINT: lite/v1/create_order "s1": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "e": "1697788800000000000", - "n": 1234567890 + "n": 1234567890, + "ci": "325" }, "m": { "co": "23042", @@ -838,7 +870,8 @@ LITE ENDPOINT: lite/v1/create_order "cp": false } }, - "b": "BROKER_CODE" + "b": "BROKER_CODE", + "ac": null } } }, @@ -873,7 +906,8 @@ LITE ENDPOINT: lite/v1/create_order "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "expiration": "1697788800000000000", - "nonce": 1234567890 + "nonce": 1234567890, + "chain_id": "325" }, "metadata": { "client_order_id": "23042", @@ -886,7 +920,8 @@ LITE ENDPOINT: lite/v1/create_order "close_position": false } }, - "broker": "BROKER_CODE" + "broker": "BROKER_CODE", + "allow_crossing": null } } } @@ -920,7 +955,8 @@ LITE ENDPOINT: lite/v1/create_order "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "expiration": "1697788800000000000", - "nonce": 1234567890 + "nonce": 1234567890, + "chain_id": "325" }, "metadata": { "client_order_id": "23042", @@ -933,7 +969,8 @@ LITE ENDPOINT: lite/v1/create_order "close_position": false } }, - "broker": "BROKER_CODE" + "broker": "BROKER_CODE", + "allow_crossing": null } } }, @@ -967,7 +1004,8 @@ LITE ENDPOINT: lite/v1/create_order "s1": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "e": "1697788800000000000", - "n": 1234567890 + "n": 1234567890, + "ci": "325" }, "m": { "co": "23042", @@ -980,7 +1018,8 @@ LITE ENDPOINT: lite/v1/create_order "cp": false } }, - "b": "BROKER_CODE" + "b": "BROKER_CODE", + "ac": null } } } @@ -1014,7 +1053,8 @@ LITE ENDPOINT: lite/v1/create_order "s1": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "e": "1697788800000000000", - "n": 1234567890 + "n": 1234567890, + "ci": "325" }, "m": { "co": "23042", @@ -1027,7 +1067,8 @@ LITE ENDPOINT: lite/v1/create_order "cp": false } }, - "b": "BROKER_CODE" + "b": "BROKER_CODE", + "ac": null } } }, @@ -1829,7 +1870,8 @@ LITE ENDPOINT: lite/v1/order "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "expiration": "1697788800000000000", - "nonce": 1234567890 + "nonce": 1234567890, + "chain_id": "325" }, "metadata": { "client_order_id": "23042", @@ -1842,7 +1884,8 @@ LITE ENDPOINT: lite/v1/order "close_position": false } }, - "broker": "BROKER_CODE" + "broker": "BROKER_CODE", + "allow_crossing": null }, "state": { "status": "PENDING", @@ -1877,7 +1920,8 @@ LITE ENDPOINT: lite/v1/order "s1": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "e": "1697788800000000000", - "n": 1234567890 + "n": 1234567890, + "ci": "325" }, "m": { "co": "23042", @@ -1890,7 +1934,8 @@ LITE ENDPOINT: lite/v1/order "cp": false } }, - "b": "BROKER_CODE" + "b": "BROKER_CODE", + "ac": null }, "s1": { "s": "PENDING", @@ -2261,7 +2306,8 @@ LITE ENDPOINT: lite/v1/open_orders "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "expiration": "1697788800000000000", - "nonce": 1234567890 + "nonce": 1234567890, + "chain_id": "325" }, "metadata": { "client_order_id": "23042", @@ -2274,7 +2320,8 @@ LITE ENDPOINT: lite/v1/open_orders "close_position": false } }, - "broker": "BROKER_CODE" + "broker": "BROKER_CODE", + "allow_crossing": null }, "state": { "status": "PENDING", @@ -2309,7 +2356,8 @@ LITE ENDPOINT: lite/v1/open_orders "s1": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "e": "1697788800000000000", - "n": 1234567890 + "n": 1234567890, + "ci": "325" }, "m": { "co": "23042", @@ -2322,7 +2370,8 @@ LITE ENDPOINT: lite/v1/open_orders "cp": false } }, - "b": "BROKER_CODE" + "b": "BROKER_CODE", + "ac": null }, "s1": { "s": "PENDING", @@ -2715,7 +2764,8 @@ LITE ENDPOINT: lite/v1/order_history "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "expiration": "1697788800000000000", - "nonce": 1234567890 + "nonce": 1234567890, + "chain_id": "325" }, "metadata": { "client_order_id": "23042", @@ -2728,7 +2778,8 @@ LITE ENDPOINT: lite/v1/order_history "close_position": false } }, - "broker": "BROKER_CODE" + "broker": "BROKER_CODE", + "allow_crossing": null }, "state": { "status": "PENDING", @@ -2764,7 +2815,8 @@ LITE ENDPOINT: lite/v1/order_history "s1": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "e": "1697788800000000000", - "n": 1234567890 + "n": 1234567890, + "ci": "325" }, "m": { "co": "23042", @@ -2777,7 +2829,8 @@ LITE ENDPOINT: lite/v1/order_history "cp": false } }, - "b": "BROKER_CODE" + "b": "BROKER_CODE", + "ac": null }, "s1": { "s": "PENDING", @@ -4035,7 +4088,9 @@ LITE ENDPOINT: lite/v1/positions "roi": "10.20", "quote_index_price": "1.0000102", "est_liquidation_price": 60000.25, - "leverage": "10" + "leverage": "10", + "cumulative_fee": "100000.20", + "cumulative_realized_funding_payment": "100000.20" }] } ``` @@ -4057,7 +4112,9 @@ LITE ENDPOINT: lite/v1/positions "r": "10.20", "qi": "1.0000102", "el": 60000.25, - "l": "10" + "l": "10", + "cf": "100000.20", + "cr": "100000.20" }] } ``` @@ -5234,7 +5291,8 @@ LITE ENDPOINT: lite/v1/transfer "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "expiration": "1697788800000000000", - "nonce": 1234567890 + "nonce": 1234567890, + "chain_id": "325" }, "transfer_type": "UNSPECIFIED", "transfer_metadata": {"provider":"XY","direction":"WITHDRAWAL","provider_tx_id":"txn123456","chainid":"42161","endpoint":"0xc73c0c2538fd9b833d20933ccc88fdaa74fcb0d0"} @@ -5255,7 +5313,8 @@ LITE ENDPOINT: lite/v1/transfer "s1": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "e": "1697788800000000000", - "n": 1234567890 + "n": 1234567890, + "ci": "325" }, "tt": "UNSPECIFIED", "tm": {"provider":"XY","direction":"WITHDRAWAL","provider_tx_id":"txn123456","chainid":"42161","endpoint":"0xc73c0c2538fd9b833d20933ccc88fdaa74fcb0d0"} @@ -5353,7 +5412,8 @@ LITE ENDPOINT: lite/v1/transfer "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "expiration": "1697788800000000000", - "nonce": 1234567890 + "nonce": 1234567890, + "chain_id": "325" }, "transfer_type": "UNSPECIFIED", "transfer_metadata": {"provider":"XY","direction":"WITHDRAWAL","provider_tx_id":"txn123456","chainid":"42161","endpoint":"0xc73c0c2538fd9b833d20933ccc88fdaa74fcb0d0"} @@ -5382,7 +5442,8 @@ LITE ENDPOINT: lite/v1/transfer "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "expiration": "1697788800000000000", - "nonce": 1234567890 + "nonce": 1234567890, + "chain_id": "325" }, "transfer_type": "UNSPECIFIED", "transfer_metadata": {"provider":"XY","direction":"WITHDRAWAL","provider_tx_id":"txn123456","chainid":"42161","endpoint":"0xc73c0c2538fd9b833d20933ccc88fdaa74fcb0d0"} @@ -5411,7 +5472,8 @@ LITE ENDPOINT: lite/v1/transfer "s1": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "e": "1697788800000000000", - "n": 1234567890 + "n": 1234567890, + "ci": "325" }, "tt": "UNSPECIFIED", "tm": {"provider":"XY","direction":"WITHDRAWAL","provider_tx_id":"txn123456","chainid":"42161","endpoint":"0xc73c0c2538fd9b833d20933ccc88fdaa74fcb0d0"} @@ -5440,7 +5502,8 @@ LITE ENDPOINT: lite/v1/transfer "s1": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "e": "1697788800000000000", - "n": 1234567890 + "n": 1234567890, + "ci": "325" }, "tt": "UNSPECIFIED", "tm": {"provider":"XY","direction":"WITHDRAWAL","provider_tx_id":"txn123456","chainid":"42161","endpoint":"0xc73c0c2538fd9b833d20933ccc88fdaa74fcb0d0"} @@ -5470,7 +5533,8 @@ LITE ENDPOINT: lite/v1/transfer "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "expiration": "1697788800000000000", - "nonce": 1234567890 + "nonce": 1234567890, + "chain_id": "325" }, "transfer_type": "UNSPECIFIED", "transfer_metadata": {"provider":"XY","direction":"WITHDRAWAL","provider_tx_id":"txn123456","chainid":"42161","endpoint":"0xc73c0c2538fd9b833d20933ccc88fdaa74fcb0d0"} @@ -5499,7 +5563,8 @@ LITE ENDPOINT: lite/v1/transfer "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "expiration": "1697788800000000000", - "nonce": 1234567890 + "nonce": 1234567890, + "chain_id": "325" }, "transfer_type": "UNSPECIFIED", "transfer_metadata": {"provider":"XY","direction":"WITHDRAWAL","provider_tx_id":"txn123456","chainid":"42161","endpoint":"0xc73c0c2538fd9b833d20933ccc88fdaa74fcb0d0"} @@ -5528,7 +5593,8 @@ LITE ENDPOINT: lite/v1/transfer "s1": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "e": "1697788800000000000", - "n": 1234567890 + "n": 1234567890, + "ci": "325" }, "tt": "UNSPECIFIED", "tm": {"provider":"XY","direction":"WITHDRAWAL","provider_tx_id":"txn123456","chainid":"42161","endpoint":"0xc73c0c2538fd9b833d20933ccc88fdaa74fcb0d0"} @@ -5557,7 +5623,8 @@ LITE ENDPOINT: lite/v1/transfer "s1": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "e": "1697788800000000000", - "n": 1234567890 + "n": 1234567890, + "ci": "325" }, "tt": "UNSPECIFIED", "tm": {"provider":"XY","direction":"WITHDRAWAL","provider_tx_id":"txn123456","chainid":"42161","endpoint":"0xc73c0c2538fd9b833d20933ccc88fdaa74fcb0d0"} @@ -5587,7 +5654,8 @@ LITE ENDPOINT: lite/v1/transfer "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "expiration": "1697788800000000000", - "nonce": 1234567890 + "nonce": 1234567890, + "chain_id": "325" }, "transfer_type": "UNSPECIFIED", "transfer_metadata": {"provider":"XY","direction":"WITHDRAWAL","provider_tx_id":"txn123456","chainid":"42161","endpoint":"0xc73c0c2538fd9b833d20933ccc88fdaa74fcb0d0"} @@ -5616,7 +5684,8 @@ LITE ENDPOINT: lite/v1/transfer "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "expiration": "1697788800000000000", - "nonce": 1234567890 + "nonce": 1234567890, + "chain_id": "325" }, "transfer_type": "UNSPECIFIED", "transfer_metadata": {"provider":"XY","direction":"WITHDRAWAL","provider_tx_id":"txn123456","chainid":"42161","endpoint":"0xc73c0c2538fd9b833d20933ccc88fdaa74fcb0d0"} @@ -5645,7 +5714,8 @@ LITE ENDPOINT: lite/v1/transfer "s1": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "e": "1697788800000000000", - "n": 1234567890 + "n": 1234567890, + "ci": "325" }, "tt": "UNSPECIFIED", "tm": {"provider":"XY","direction":"WITHDRAWAL","provider_tx_id":"txn123456","chainid":"42161","endpoint":"0xc73c0c2538fd9b833d20933ccc88fdaa74fcb0d0"} @@ -5674,7 +5744,8 @@ LITE ENDPOINT: lite/v1/transfer "s1": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "e": "1697788800000000000", - "n": 1234567890 + "n": 1234567890, + "ci": "325" }, "tt": "UNSPECIFIED", "tm": {"provider":"XY","direction":"WITHDRAWAL","provider_tx_id":"txn123456","chainid":"42161","endpoint":"0xc73c0c2538fd9b833d20933ccc88fdaa74fcb0d0"} @@ -5704,7 +5775,8 @@ LITE ENDPOINT: lite/v1/transfer "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "expiration": "1697788800000000000", - "nonce": 1234567890 + "nonce": 1234567890, + "chain_id": "325" }, "transfer_type": "UNSPECIFIED", "transfer_metadata": {"provider":"XY","direction":"WITHDRAWAL","provider_tx_id":"txn123456","chainid":"42161","endpoint":"0xc73c0c2538fd9b833d20933ccc88fdaa74fcb0d0"} @@ -5733,7 +5805,8 @@ LITE ENDPOINT: lite/v1/transfer "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "expiration": "1697788800000000000", - "nonce": 1234567890 + "nonce": 1234567890, + "chain_id": "325" }, "transfer_type": "UNSPECIFIED", "transfer_metadata": {"provider":"XY","direction":"WITHDRAWAL","provider_tx_id":"txn123456","chainid":"42161","endpoint":"0xc73c0c2538fd9b833d20933ccc88fdaa74fcb0d0"} @@ -5762,7 +5835,8 @@ LITE ENDPOINT: lite/v1/transfer "s1": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "e": "1697788800000000000", - "n": 1234567890 + "n": 1234567890, + "ci": "325" }, "tt": "UNSPECIFIED", "tm": {"provider":"XY","direction":"WITHDRAWAL","provider_tx_id":"txn123456","chainid":"42161","endpoint":"0xc73c0c2538fd9b833d20933ccc88fdaa74fcb0d0"} @@ -5791,7 +5865,8 @@ LITE ENDPOINT: lite/v1/transfer "s1": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "e": "1697788800000000000", - "n": 1234567890 + "n": 1234567890, + "ci": "325" }, "tt": "UNSPECIFIED", "tm": {"provider":"XY","direction":"WITHDRAWAL","provider_tx_id":"txn123456","chainid":"42161","endpoint":"0xc73c0c2538fd9b833d20933ccc88fdaa74fcb0d0"} @@ -5823,7 +5898,8 @@ LITE ENDPOINT: lite/v1/transfer_history "limit": 500, "cursor": "", "tx_id": "1028403", - "main_account_id": null + "main_account_id": null, + "transfer_types": ["UNSPECIFIED"] } ``` **Lite Request** @@ -5835,7 +5911,8 @@ LITE ENDPOINT: lite/v1/transfer_history "l": 500, "c1": "", "ti": "1028403", - "ma": null + "ma": null, + "tt": ["UNSPECIFIED"] } ``` @@ -5862,7 +5939,8 @@ LITE ENDPOINT: lite/v1/transfer_history "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "expiration": "1697788800000000000", - "nonce": 1234567890 + "nonce": 1234567890, + "chain_id": "325" }, "event_time": "1697788800000000000", "transfer_type": "UNSPECIFIED", @@ -5888,7 +5966,8 @@ LITE ENDPOINT: lite/v1/transfer_history "s1": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "e": "1697788800000000000", - "n": 1234567890 + "n": 1234567890, + "ci": "325" }, "et": "1697788800000000000", "tt": "UNSPECIFIED", @@ -5947,7 +6026,8 @@ LITE ENDPOINT: lite/v1/transfer_history "limit": 500, "cursor": "", "tx_id": "1028403", - "main_account_id": null + "main_account_id": null, + "transfer_types": ["UNSPECIFIED"] } ' ``` @@ -5967,7 +6047,8 @@ LITE ENDPOINT: lite/v1/transfer_history "limit": 500, "cursor": "", "tx_id": "1028403", - "main_account_id": null + "main_account_id": null, + "transfer_types": ["UNSPECIFIED"] }, "id": 123 } @@ -5987,7 +6068,8 @@ LITE ENDPOINT: lite/v1/transfer_history "l": 500, "c1": "", "ti": "1028403", - "ma": null + "ma": null, + "tt": ["UNSPECIFIED"] } ' ``` @@ -6007,7 +6089,8 @@ LITE ENDPOINT: lite/v1/transfer_history "l": 500, "c1": "", "ti": "1028403", - "ma": null + "ma": null, + "tt": ["UNSPECIFIED"] }, "i": 123 } @@ -6028,7 +6111,8 @@ LITE ENDPOINT: lite/v1/transfer_history "limit": 500, "cursor": "", "tx_id": "1028403", - "main_account_id": null + "main_account_id": null, + "transfer_types": ["UNSPECIFIED"] } ' ``` @@ -6048,7 +6132,8 @@ LITE ENDPOINT: lite/v1/transfer_history "limit": 500, "cursor": "", "tx_id": "1028403", - "main_account_id": null + "main_account_id": null, + "transfer_types": ["UNSPECIFIED"] }, "id": 123 } @@ -6068,7 +6153,8 @@ LITE ENDPOINT: lite/v1/transfer_history "l": 500, "c1": "", "ti": "1028403", - "ma": null + "ma": null, + "tt": ["UNSPECIFIED"] } ' ``` @@ -6088,7 +6174,8 @@ LITE ENDPOINT: lite/v1/transfer_history "l": 500, "c1": "", "ti": "1028403", - "ma": null + "ma": null, + "tt": ["UNSPECIFIED"] }, "i": 123 } @@ -6109,7 +6196,8 @@ LITE ENDPOINT: lite/v1/transfer_history "limit": 500, "cursor": "", "tx_id": "1028403", - "main_account_id": null + "main_account_id": null, + "transfer_types": ["UNSPECIFIED"] } ' ``` @@ -6129,7 +6217,8 @@ LITE ENDPOINT: lite/v1/transfer_history "limit": 500, "cursor": "", "tx_id": "1028403", - "main_account_id": null + "main_account_id": null, + "transfer_types": ["UNSPECIFIED"] }, "id": 123 } @@ -6149,7 +6238,8 @@ LITE ENDPOINT: lite/v1/transfer_history "l": 500, "c1": "", "ti": "1028403", - "ma": null + "ma": null, + "tt": ["UNSPECIFIED"] } ' ``` @@ -6169,7 +6259,8 @@ LITE ENDPOINT: lite/v1/transfer_history "l": 500, "c1": "", "ti": "1028403", - "ma": null + "ma": null, + "tt": ["UNSPECIFIED"] }, "i": 123 } @@ -6190,7 +6281,8 @@ LITE ENDPOINT: lite/v1/transfer_history "limit": 500, "cursor": "", "tx_id": "1028403", - "main_account_id": null + "main_account_id": null, + "transfer_types": ["UNSPECIFIED"] } ' ``` @@ -6210,7 +6302,8 @@ LITE ENDPOINT: lite/v1/transfer_history "limit": 500, "cursor": "", "tx_id": "1028403", - "main_account_id": null + "main_account_id": null, + "transfer_types": ["UNSPECIFIED"] }, "id": 123 } @@ -6230,7 +6323,8 @@ LITE ENDPOINT: lite/v1/transfer_history "l": 500, "c1": "", "ti": "1028403", - "ma": null + "ma": null, + "tt": ["UNSPECIFIED"] } ' ``` @@ -6250,7 +6344,8 @@ LITE ENDPOINT: lite/v1/transfer_history "l": 500, "c1": "", "ti": "1028403", - "ma": null + "ma": null, + "tt": ["UNSPECIFIED"] }, "i": 123 } @@ -6283,7 +6378,8 @@ LITE ENDPOINT: lite/v1/withdrawal "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "expiration": "1697788800000000000", - "nonce": 1234567890 + "nonce": 1234567890, + "chain_id": "325" } } ``` @@ -6300,7 +6396,8 @@ LITE ENDPOINT: lite/v1/withdrawal "s1": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "e": "1697788800000000000", - "n": 1234567890 + "n": 1234567890, + "ci": "325" } } ``` @@ -6382,7 +6479,8 @@ LITE ENDPOINT: lite/v1/withdrawal "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "expiration": "1697788800000000000", - "nonce": 1234567890 + "nonce": 1234567890, + "chain_id": "325" } } ' @@ -6407,7 +6505,8 @@ LITE ENDPOINT: lite/v1/withdrawal "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "expiration": "1697788800000000000", - "nonce": 1234567890 + "nonce": 1234567890, + "chain_id": "325" } }, "id": 123 @@ -6432,7 +6531,8 @@ LITE ENDPOINT: lite/v1/withdrawal "s1": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "e": "1697788800000000000", - "n": 1234567890 + "n": 1234567890, + "ci": "325" } } ' @@ -6457,7 +6557,8 @@ LITE ENDPOINT: lite/v1/withdrawal "s1": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "e": "1697788800000000000", - "n": 1234567890 + "n": 1234567890, + "ci": "325" } }, "i": 123 @@ -6483,7 +6584,8 @@ LITE ENDPOINT: lite/v1/withdrawal "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "expiration": "1697788800000000000", - "nonce": 1234567890 + "nonce": 1234567890, + "chain_id": "325" } } ' @@ -6508,7 +6610,8 @@ LITE ENDPOINT: lite/v1/withdrawal "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "expiration": "1697788800000000000", - "nonce": 1234567890 + "nonce": 1234567890, + "chain_id": "325" } }, "id": 123 @@ -6533,7 +6636,8 @@ LITE ENDPOINT: lite/v1/withdrawal "s1": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "e": "1697788800000000000", - "n": 1234567890 + "n": 1234567890, + "ci": "325" } } ' @@ -6558,7 +6662,8 @@ LITE ENDPOINT: lite/v1/withdrawal "s1": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "e": "1697788800000000000", - "n": 1234567890 + "n": 1234567890, + "ci": "325" } }, "i": 123 @@ -6584,7 +6689,8 @@ LITE ENDPOINT: lite/v1/withdrawal "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "expiration": "1697788800000000000", - "nonce": 1234567890 + "nonce": 1234567890, + "chain_id": "325" } } ' @@ -6609,7 +6715,8 @@ LITE ENDPOINT: lite/v1/withdrawal "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "expiration": "1697788800000000000", - "nonce": 1234567890 + "nonce": 1234567890, + "chain_id": "325" } }, "id": 123 @@ -6634,7 +6741,8 @@ LITE ENDPOINT: lite/v1/withdrawal "s1": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "e": "1697788800000000000", - "n": 1234567890 + "n": 1234567890, + "ci": "325" } } ' @@ -6659,7 +6767,8 @@ LITE ENDPOINT: lite/v1/withdrawal "s1": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "e": "1697788800000000000", - "n": 1234567890 + "n": 1234567890, + "ci": "325" } }, "i": 123 @@ -6685,7 +6794,8 @@ LITE ENDPOINT: lite/v1/withdrawal "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "expiration": "1697788800000000000", - "nonce": 1234567890 + "nonce": 1234567890, + "chain_id": "325" } } ' @@ -6710,7 +6820,8 @@ LITE ENDPOINT: lite/v1/withdrawal "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "expiration": "1697788800000000000", - "nonce": 1234567890 + "nonce": 1234567890, + "chain_id": "325" } }, "id": 123 @@ -6735,7 +6846,8 @@ LITE ENDPOINT: lite/v1/withdrawal "s1": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "e": "1697788800000000000", - "n": 1234567890 + "n": 1234567890, + "ci": "325" } } ' @@ -6760,7 +6872,8 @@ LITE ENDPOINT: lite/v1/withdrawal "s1": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "e": "1697788800000000000", - "n": 1234567890 + "n": 1234567890, + "ci": "325" } }, "i": 123 @@ -6825,9 +6938,12 @@ LITE ENDPOINT: lite/v1/withdrawal_history "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "expiration": "1697788800000000000", - "nonce": 1234567890 + "nonce": 1234567890, + "chain_id": "325" }, - "event_time": "1697788800000000000" + "event_time": "1697788800000000000", + "l_1_hash": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef", + "l_2_hash": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890" }], "next": "Qw0918=" } @@ -6847,9 +6963,12 @@ LITE ENDPOINT: lite/v1/withdrawal_history "s1": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "e": "1697788800000000000", - "n": 1234567890 + "n": 1234567890, + "ci": "325" }, - "et": "1697788800000000000" + "et": "1697788800000000000", + "l1": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef", + "l2": "0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890" }], "n": "Qw0918=" } @@ -7264,7 +7383,9 @@ LITE ENDPOINT: lite/v1/account_summary "roi": "10.20", "quote_index_price": "1.0000102", "est_liquidation_price": 60000.25, - "leverage": "10" + "leverage": "10", + "cumulative_fee": "100000.20", + "cumulative_realized_funding_payment": "100000.20" }], "settle_index_price": "1.0000102", "is_vault": null, @@ -7307,7 +7428,9 @@ LITE ENDPOINT: lite/v1/account_summary "r": "10.20", "qi": "1.0000102", "el": 60000.25, - "l": "10" + "l": "10", + "cf": "100000.20", + "cr": "100000.20" }], "si": "1.0000102", "iv": null, @@ -7654,7 +7777,9 @@ LITE ENDPOINT: lite/v1/account_history "roi": "10.20", "quote_index_price": "1.0000102", "est_liquidation_price": 60000.25, - "leverage": "10" + "leverage": "10", + "cumulative_fee": "100000.20", + "cumulative_realized_funding_payment": "100000.20" }], "settle_index_price": "1.0000102", "is_vault": null, @@ -7698,7 +7823,9 @@ LITE ENDPOINT: lite/v1/account_history "r": "10.20", "qi": "1.0000102", "el": 60000.25, - "l": "10" + "l": "10", + "cf": "100000.20", + "cr": "100000.20" }], "si": "1.0000102", "iv": null, @@ -8082,7 +8209,8 @@ LITE ENDPOINT: lite/v1/aggregated_account_summary "vault_id": 123456789, "num_lp_tokens": 1000000, "share_price": 1000000 - }] + }], + "total_sub_account_balance": "3945034.23" } } ``` @@ -8101,7 +8229,8 @@ LITE ENDPOINT: lite/v1/aggregated_account_summary "vi": 123456789, "nl": 1000000, "sp": 1000000 - }] + }], + "ts": "3945034.23" } } ``` @@ -8706,7 +8835,8 @@ LITE ENDPOINT: lite/v1/set_derisk_mm_ratio "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "expiration": "1697788800000000000", - "nonce": 1234567890 + "nonce": 1234567890, + "chain_id": "325" } } ``` @@ -8721,7 +8851,8 @@ LITE ENDPOINT: lite/v1/set_derisk_mm_ratio "s1": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "e": "1697788800000000000", - "n": 1234567890 + "n": 1234567890, + "ci": "325" } } ``` @@ -8797,7 +8928,8 @@ LITE ENDPOINT: lite/v1/set_derisk_mm_ratio "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "expiration": "1697788800000000000", - "nonce": 1234567890 + "nonce": 1234567890, + "chain_id": "325" } } ' @@ -8820,7 +8952,8 @@ LITE ENDPOINT: lite/v1/set_derisk_mm_ratio "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "expiration": "1697788800000000000", - "nonce": 1234567890 + "nonce": 1234567890, + "chain_id": "325" } }, "id": 123 @@ -8843,7 +8976,8 @@ LITE ENDPOINT: lite/v1/set_derisk_mm_ratio "s1": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "e": "1697788800000000000", - "n": 1234567890 + "n": 1234567890, + "ci": "325" } } ' @@ -8866,7 +9000,8 @@ LITE ENDPOINT: lite/v1/set_derisk_mm_ratio "s1": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "e": "1697788800000000000", - "n": 1234567890 + "n": 1234567890, + "ci": "325" } }, "i": 123 @@ -8890,7 +9025,8 @@ LITE ENDPOINT: lite/v1/set_derisk_mm_ratio "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "expiration": "1697788800000000000", - "nonce": 1234567890 + "nonce": 1234567890, + "chain_id": "325" } } ' @@ -8913,7 +9049,8 @@ LITE ENDPOINT: lite/v1/set_derisk_mm_ratio "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "expiration": "1697788800000000000", - "nonce": 1234567890 + "nonce": 1234567890, + "chain_id": "325" } }, "id": 123 @@ -8936,7 +9073,8 @@ LITE ENDPOINT: lite/v1/set_derisk_mm_ratio "s1": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "e": "1697788800000000000", - "n": 1234567890 + "n": 1234567890, + "ci": "325" } } ' @@ -8959,7 +9097,8 @@ LITE ENDPOINT: lite/v1/set_derisk_mm_ratio "s1": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "e": "1697788800000000000", - "n": 1234567890 + "n": 1234567890, + "ci": "325" } }, "i": 123 @@ -8983,7 +9122,8 @@ LITE ENDPOINT: lite/v1/set_derisk_mm_ratio "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "expiration": "1697788800000000000", - "nonce": 1234567890 + "nonce": 1234567890, + "chain_id": "325" } } ' @@ -9006,7 +9146,8 @@ LITE ENDPOINT: lite/v1/set_derisk_mm_ratio "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "expiration": "1697788800000000000", - "nonce": 1234567890 + "nonce": 1234567890, + "chain_id": "325" } }, "id": 123 @@ -9029,7 +9170,8 @@ LITE ENDPOINT: lite/v1/set_derisk_mm_ratio "s1": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "e": "1697788800000000000", - "n": 1234567890 + "n": 1234567890, + "ci": "325" } } ' @@ -9052,7 +9194,8 @@ LITE ENDPOINT: lite/v1/set_derisk_mm_ratio "s1": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "e": "1697788800000000000", - "n": 1234567890 + "n": 1234567890, + "ci": "325" } }, "i": 123 @@ -9076,7 +9219,8 @@ LITE ENDPOINT: lite/v1/set_derisk_mm_ratio "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "expiration": "1697788800000000000", - "nonce": 1234567890 + "nonce": 1234567890, + "chain_id": "325" } } ' @@ -9099,7 +9243,8 @@ LITE ENDPOINT: lite/v1/set_derisk_mm_ratio "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "expiration": "1697788800000000000", - "nonce": 1234567890 + "nonce": 1234567890, + "chain_id": "325" } }, "id": 123 @@ -9122,7 +9267,8 @@ LITE ENDPOINT: lite/v1/set_derisk_mm_ratio "s1": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "e": "1697788800000000000", - "n": 1234567890 + "n": 1234567890, + "ci": "325" } } ' @@ -9145,7 +9291,8 @@ LITE ENDPOINT: lite/v1/set_derisk_mm_ratio "s1": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "e": "1697788800000000000", - "n": 1234567890 + "n": 1234567890, + "ci": "325" } }, "i": 123 @@ -9844,7 +9991,8 @@ LITE ENDPOINT: lite/v1/vault_burn_tokens "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "expiration": "1697788800000000000", - "nonce": 1234567890 + "nonce": 1234567890, + "chain_id": "325" } } ``` @@ -9860,7 +10008,8 @@ LITE ENDPOINT: lite/v1/vault_burn_tokens "s1": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "e": "1697788800000000000", - "n": 1234567890 + "n": 1234567890, + "ci": "325" } } ``` @@ -9952,7 +10101,8 @@ LITE ENDPOINT: lite/v1/vault_burn_tokens "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "expiration": "1697788800000000000", - "nonce": 1234567890 + "nonce": 1234567890, + "chain_id": "325" } } ' @@ -9976,7 +10126,8 @@ LITE ENDPOINT: lite/v1/vault_burn_tokens "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "expiration": "1697788800000000000", - "nonce": 1234567890 + "nonce": 1234567890, + "chain_id": "325" } }, "id": 123 @@ -10000,7 +10151,8 @@ LITE ENDPOINT: lite/v1/vault_burn_tokens "s1": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "e": "1697788800000000000", - "n": 1234567890 + "n": 1234567890, + "ci": "325" } } ' @@ -10024,7 +10176,8 @@ LITE ENDPOINT: lite/v1/vault_burn_tokens "s1": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "e": "1697788800000000000", - "n": 1234567890 + "n": 1234567890, + "ci": "325" } }, "i": 123 @@ -10049,7 +10202,8 @@ LITE ENDPOINT: lite/v1/vault_burn_tokens "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "expiration": "1697788800000000000", - "nonce": 1234567890 + "nonce": 1234567890, + "chain_id": "325" } } ' @@ -10073,7 +10227,8 @@ LITE ENDPOINT: lite/v1/vault_burn_tokens "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "expiration": "1697788800000000000", - "nonce": 1234567890 + "nonce": 1234567890, + "chain_id": "325" } }, "id": 123 @@ -10097,7 +10252,8 @@ LITE ENDPOINT: lite/v1/vault_burn_tokens "s1": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "e": "1697788800000000000", - "n": 1234567890 + "n": 1234567890, + "ci": "325" } } ' @@ -10121,7 +10277,8 @@ LITE ENDPOINT: lite/v1/vault_burn_tokens "s1": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "e": "1697788800000000000", - "n": 1234567890 + "n": 1234567890, + "ci": "325" } }, "i": 123 @@ -10146,7 +10303,8 @@ LITE ENDPOINT: lite/v1/vault_burn_tokens "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "expiration": "1697788800000000000", - "nonce": 1234567890 + "nonce": 1234567890, + "chain_id": "325" } } ' @@ -10170,7 +10328,8 @@ LITE ENDPOINT: lite/v1/vault_burn_tokens "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "expiration": "1697788800000000000", - "nonce": 1234567890 + "nonce": 1234567890, + "chain_id": "325" } }, "id": 123 @@ -10194,7 +10353,8 @@ LITE ENDPOINT: lite/v1/vault_burn_tokens "s1": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "e": "1697788800000000000", - "n": 1234567890 + "n": 1234567890, + "ci": "325" } } ' @@ -10218,7 +10378,8 @@ LITE ENDPOINT: lite/v1/vault_burn_tokens "s1": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "e": "1697788800000000000", - "n": 1234567890 + "n": 1234567890, + "ci": "325" } }, "i": 123 @@ -10243,7 +10404,8 @@ LITE ENDPOINT: lite/v1/vault_burn_tokens "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "expiration": "1697788800000000000", - "nonce": 1234567890 + "nonce": 1234567890, + "chain_id": "325" } } ' @@ -10267,7 +10429,8 @@ LITE ENDPOINT: lite/v1/vault_burn_tokens "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "expiration": "1697788800000000000", - "nonce": 1234567890 + "nonce": 1234567890, + "chain_id": "325" } }, "id": 123 @@ -10291,7 +10454,8 @@ LITE ENDPOINT: lite/v1/vault_burn_tokens "s1": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "e": "1697788800000000000", - "n": 1234567890 + "n": 1234567890, + "ci": "325" } } ' @@ -10315,7 +10479,8 @@ LITE ENDPOINT: lite/v1/vault_burn_tokens "s1": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "e": "1697788800000000000", - "n": 1234567890 + "n": 1234567890, + "ci": "325" } }, "i": 123 @@ -10348,7 +10513,8 @@ LITE ENDPOINT: lite/v1/vault_invest "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "expiration": "1697788800000000000", - "nonce": 1234567890 + "nonce": 1234567890, + "chain_id": "325" } } ``` @@ -10364,7 +10530,8 @@ LITE ENDPOINT: lite/v1/vault_invest "s1": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "e": "1697788800000000000", - "n": 1234567890 + "n": 1234567890, + "ci": "325" } } ``` @@ -10457,7 +10624,8 @@ LITE ENDPOINT: lite/v1/vault_invest "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "expiration": "1697788800000000000", - "nonce": 1234567890 + "nonce": 1234567890, + "chain_id": "325" } } ' @@ -10481,7 +10649,8 @@ LITE ENDPOINT: lite/v1/vault_invest "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "expiration": "1697788800000000000", - "nonce": 1234567890 + "nonce": 1234567890, + "chain_id": "325" } }, "id": 123 @@ -10505,7 +10674,8 @@ LITE ENDPOINT: lite/v1/vault_invest "s1": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "e": "1697788800000000000", - "n": 1234567890 + "n": 1234567890, + "ci": "325" } } ' @@ -10529,7 +10699,8 @@ LITE ENDPOINT: lite/v1/vault_invest "s1": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "e": "1697788800000000000", - "n": 1234567890 + "n": 1234567890, + "ci": "325" } }, "i": 123 @@ -10554,7 +10725,8 @@ LITE ENDPOINT: lite/v1/vault_invest "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "expiration": "1697788800000000000", - "nonce": 1234567890 + "nonce": 1234567890, + "chain_id": "325" } } ' @@ -10578,7 +10750,8 @@ LITE ENDPOINT: lite/v1/vault_invest "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "expiration": "1697788800000000000", - "nonce": 1234567890 + "nonce": 1234567890, + "chain_id": "325" } }, "id": 123 @@ -10602,7 +10775,8 @@ LITE ENDPOINT: lite/v1/vault_invest "s1": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "e": "1697788800000000000", - "n": 1234567890 + "n": 1234567890, + "ci": "325" } } ' @@ -10626,7 +10800,8 @@ LITE ENDPOINT: lite/v1/vault_invest "s1": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "e": "1697788800000000000", - "n": 1234567890 + "n": 1234567890, + "ci": "325" } }, "i": 123 @@ -10651,7 +10826,8 @@ LITE ENDPOINT: lite/v1/vault_invest "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "expiration": "1697788800000000000", - "nonce": 1234567890 + "nonce": 1234567890, + "chain_id": "325" } } ' @@ -10675,7 +10851,8 @@ LITE ENDPOINT: lite/v1/vault_invest "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "expiration": "1697788800000000000", - "nonce": 1234567890 + "nonce": 1234567890, + "chain_id": "325" } }, "id": 123 @@ -10699,7 +10876,8 @@ LITE ENDPOINT: lite/v1/vault_invest "s1": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "e": "1697788800000000000", - "n": 1234567890 + "n": 1234567890, + "ci": "325" } } ' @@ -10723,7 +10901,8 @@ LITE ENDPOINT: lite/v1/vault_invest "s1": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "e": "1697788800000000000", - "n": 1234567890 + "n": 1234567890, + "ci": "325" } }, "i": 123 @@ -10748,7 +10927,8 @@ LITE ENDPOINT: lite/v1/vault_invest "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "expiration": "1697788800000000000", - "nonce": 1234567890 + "nonce": 1234567890, + "chain_id": "325" } } ' @@ -10772,7 +10952,8 @@ LITE ENDPOINT: lite/v1/vault_invest "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "expiration": "1697788800000000000", - "nonce": 1234567890 + "nonce": 1234567890, + "chain_id": "325" } }, "id": 123 @@ -10796,7 +10977,8 @@ LITE ENDPOINT: lite/v1/vault_invest "s1": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "e": "1697788800000000000", - "n": 1234567890 + "n": 1234567890, + "ci": "325" } } ' @@ -10820,7 +11002,8 @@ LITE ENDPOINT: lite/v1/vault_invest "s1": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "e": "1697788800000000000", - "n": 1234567890 + "n": 1234567890, + "ci": "325" } }, "i": 123 @@ -10874,7 +11057,8 @@ LITE ENDPOINT: lite/v1/vault_investor_summary "num_lp_tokens": 1000000, "request_valuation": 1000000, "request_time": "1697788800000000000", - "max_redemption_period_timestamp": 1727788800000000000 + "max_redemption_period_timestamp": 1727788800000000000, + "cancel_blocked": null }, "can_burn": null }] @@ -10894,7 +11078,8 @@ LITE ENDPOINT: lite/v1/vault_investor_summary "nl": 1000000, "rv": 1000000, "rt": "1697788800000000000", - "mr": 1727788800000000000 + "mr": 1727788800000000000, + "cb": null }, "cb": null }] @@ -11191,7 +11376,8 @@ LITE ENDPOINT: lite/v1/vault_redeem "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "expiration": "1697788800000000000", - "nonce": 1234567890 + "nonce": 1234567890, + "chain_id": "325" } } ``` @@ -11207,7 +11393,8 @@ LITE ENDPOINT: lite/v1/vault_redeem "s1": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "e": "1697788800000000000", - "n": 1234567890 + "n": 1234567890, + "ci": "325" } } ``` @@ -11290,7 +11477,8 @@ LITE ENDPOINT: lite/v1/vault_redeem "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "expiration": "1697788800000000000", - "nonce": 1234567890 + "nonce": 1234567890, + "chain_id": "325" } } ' @@ -11314,7 +11502,8 @@ LITE ENDPOINT: lite/v1/vault_redeem "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "expiration": "1697788800000000000", - "nonce": 1234567890 + "nonce": 1234567890, + "chain_id": "325" } }, "id": 123 @@ -11338,7 +11527,8 @@ LITE ENDPOINT: lite/v1/vault_redeem "s1": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "e": "1697788800000000000", - "n": 1234567890 + "n": 1234567890, + "ci": "325" } } ' @@ -11362,7 +11552,8 @@ LITE ENDPOINT: lite/v1/vault_redeem "s1": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "e": "1697788800000000000", - "n": 1234567890 + "n": 1234567890, + "ci": "325" } }, "i": 123 @@ -11387,7 +11578,8 @@ LITE ENDPOINT: lite/v1/vault_redeem "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "expiration": "1697788800000000000", - "nonce": 1234567890 + "nonce": 1234567890, + "chain_id": "325" } } ' @@ -11411,7 +11603,8 @@ LITE ENDPOINT: lite/v1/vault_redeem "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "expiration": "1697788800000000000", - "nonce": 1234567890 + "nonce": 1234567890, + "chain_id": "325" } }, "id": 123 @@ -11435,7 +11628,8 @@ LITE ENDPOINT: lite/v1/vault_redeem "s1": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "e": "1697788800000000000", - "n": 1234567890 + "n": 1234567890, + "ci": "325" } } ' @@ -11459,7 +11653,8 @@ LITE ENDPOINT: lite/v1/vault_redeem "s1": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "e": "1697788800000000000", - "n": 1234567890 + "n": 1234567890, + "ci": "325" } }, "i": 123 @@ -11484,7 +11679,8 @@ LITE ENDPOINT: lite/v1/vault_redeem "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "expiration": "1697788800000000000", - "nonce": 1234567890 + "nonce": 1234567890, + "chain_id": "325" } } ' @@ -11508,7 +11704,8 @@ LITE ENDPOINT: lite/v1/vault_redeem "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "expiration": "1697788800000000000", - "nonce": 1234567890 + "nonce": 1234567890, + "chain_id": "325" } }, "id": 123 @@ -11532,7 +11729,8 @@ LITE ENDPOINT: lite/v1/vault_redeem "s1": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "e": "1697788800000000000", - "n": 1234567890 + "n": 1234567890, + "ci": "325" } } ' @@ -11556,7 +11754,8 @@ LITE ENDPOINT: lite/v1/vault_redeem "s1": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "e": "1697788800000000000", - "n": 1234567890 + "n": 1234567890, + "ci": "325" } }, "i": 123 @@ -11581,7 +11780,8 @@ LITE ENDPOINT: lite/v1/vault_redeem "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "expiration": "1697788800000000000", - "nonce": 1234567890 + "nonce": 1234567890, + "chain_id": "325" } } ' @@ -11605,7 +11805,8 @@ LITE ENDPOINT: lite/v1/vault_redeem "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "expiration": "1697788800000000000", - "nonce": 1234567890 + "nonce": 1234567890, + "chain_id": "325" } }, "id": 123 @@ -11629,7 +11830,8 @@ LITE ENDPOINT: lite/v1/vault_redeem "s1": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "e": "1697788800000000000", - "n": 1234567890 + "n": 1234567890, + "ci": "325" } } ' @@ -11653,7 +11855,8 @@ LITE ENDPOINT: lite/v1/vault_redeem "s1": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "e": "1697788800000000000", - "n": 1234567890 + "n": 1234567890, + "ci": "325" } }, "i": 123 @@ -12344,14 +12547,18 @@ LITE ENDPOINT: lite/v1/vault_manager_investor_history ``` { .json .copy } { "vault_id": "2312134", - "only_own_investments": true + "only_own_investments": true, + "start_time": "1697788800000000000", + "end_time": "1697788800000000000" } ``` **Lite Request** ``` { .json .copy } { "vi": "2312134", - "oo": true + "oo": true, + "st": "1697788800000000000", + "et": "1697788800000000000" } ``` @@ -12436,7 +12643,9 @@ LITE ENDPOINT: lite/v1/vault_manager_investor_history --header "X-Grvt-Account-Id: $GRVT_ACCOUNT_ID" \ --data '{ "vault_id": "2312134", - "only_own_investments": true + "only_own_investments": true, + "start_time": "1697788800000000000", + "end_time": "1697788800000000000" } ' ``` @@ -12451,7 +12660,9 @@ LITE ENDPOINT: lite/v1/vault_manager_investor_history "method": "v1/vault_manager_investor_history", "params": { "vault_id": "2312134", - "only_own_investments": true + "only_own_investments": true, + "start_time": "1697788800000000000", + "end_time": "1697788800000000000" }, "id": 123 } @@ -12466,7 +12677,9 @@ LITE ENDPOINT: lite/v1/vault_manager_investor_history --header "X-Grvt-Account-Id: $GRVT_ACCOUNT_ID" \ --data '{ "vi": "2312134", - "oo": true + "oo": true, + "st": "1697788800000000000", + "et": "1697788800000000000" } ' ``` @@ -12481,7 +12694,9 @@ LITE ENDPOINT: lite/v1/vault_manager_investor_history "m": "v1/vault_manager_investor_history", "p": { "vi": "2312134", - "oo": true + "oo": true, + "st": "1697788800000000000", + "et": "1697788800000000000" }, "i": 123 } @@ -12497,7 +12712,9 @@ LITE ENDPOINT: lite/v1/vault_manager_investor_history --header "X-Grvt-Account-Id: $GRVT_ACCOUNT_ID" \ --data '{ "vault_id": "2312134", - "only_own_investments": true + "only_own_investments": true, + "start_time": "1697788800000000000", + "end_time": "1697788800000000000" } ' ``` @@ -12512,7 +12729,9 @@ LITE ENDPOINT: lite/v1/vault_manager_investor_history "method": "v1/vault_manager_investor_history", "params": { "vault_id": "2312134", - "only_own_investments": true + "only_own_investments": true, + "start_time": "1697788800000000000", + "end_time": "1697788800000000000" }, "id": 123 } @@ -12527,7 +12746,9 @@ LITE ENDPOINT: lite/v1/vault_manager_investor_history --header "X-Grvt-Account-Id: $GRVT_ACCOUNT_ID" \ --data '{ "vi": "2312134", - "oo": true + "oo": true, + "st": "1697788800000000000", + "et": "1697788800000000000" } ' ``` @@ -12542,7 +12763,9 @@ LITE ENDPOINT: lite/v1/vault_manager_investor_history "m": "v1/vault_manager_investor_history", "p": { "vi": "2312134", - "oo": true + "oo": true, + "st": "1697788800000000000", + "et": "1697788800000000000" }, "i": 123 } @@ -12558,7 +12781,9 @@ LITE ENDPOINT: lite/v1/vault_manager_investor_history --header "X-Grvt-Account-Id: $GRVT_ACCOUNT_ID" \ --data '{ "vault_id": "2312134", - "only_own_investments": true + "only_own_investments": true, + "start_time": "1697788800000000000", + "end_time": "1697788800000000000" } ' ``` @@ -12573,7 +12798,9 @@ LITE ENDPOINT: lite/v1/vault_manager_investor_history "method": "v1/vault_manager_investor_history", "params": { "vault_id": "2312134", - "only_own_investments": true + "only_own_investments": true, + "start_time": "1697788800000000000", + "end_time": "1697788800000000000" }, "id": 123 } @@ -12588,7 +12815,9 @@ LITE ENDPOINT: lite/v1/vault_manager_investor_history --header "X-Grvt-Account-Id: $GRVT_ACCOUNT_ID" \ --data '{ "vi": "2312134", - "oo": true + "oo": true, + "st": "1697788800000000000", + "et": "1697788800000000000" } ' ``` @@ -12603,7 +12832,9 @@ LITE ENDPOINT: lite/v1/vault_manager_investor_history "m": "v1/vault_manager_investor_history", "p": { "vi": "2312134", - "oo": true + "oo": true, + "st": "1697788800000000000", + "et": "1697788800000000000" }, "i": 123 } @@ -12619,7 +12850,9 @@ LITE ENDPOINT: lite/v1/vault_manager_investor_history --header "X-Grvt-Account-Id: $GRVT_ACCOUNT_ID" \ --data '{ "vault_id": "2312134", - "only_own_investments": true + "only_own_investments": true, + "start_time": "1697788800000000000", + "end_time": "1697788800000000000" } ' ``` @@ -12634,7 +12867,9 @@ LITE ENDPOINT: lite/v1/vault_manager_investor_history "method": "v1/vault_manager_investor_history", "params": { "vault_id": "2312134", - "only_own_investments": true + "only_own_investments": true, + "start_time": "1697788800000000000", + "end_time": "1697788800000000000" }, "id": 123 } @@ -12649,7 +12884,9 @@ LITE ENDPOINT: lite/v1/vault_manager_investor_history --header "X-Grvt-Account-Id: $GRVT_ACCOUNT_ID" \ --data '{ "vi": "2312134", - "oo": true + "oo": true, + "st": "1697788800000000000", + "et": "1697788800000000000" } ' ``` @@ -12664,7 +12901,9 @@ LITE ENDPOINT: lite/v1/vault_manager_investor_history "m": "v1/vault_manager_investor_history", "p": { "vi": "2312134", - "oo": true + "oo": true, + "st": "1697788800000000000", + "et": "1697788800000000000" }, "i": 123 } diff --git a/artifacts/apidocs/trading_streams.md b/artifacts/apidocs/trading_streams.md index ea50eea..a78d9e4 100644 --- a/artifacts/apidocs/trading_streams.md +++ b/artifacts/apidocs/trading_streams.md @@ -127,7 +127,8 @@ STREAM: v1.order "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "expiration": "1697788800000000000", - "nonce": 1234567890 + "nonce": 1234567890, + "chain_id": "325" }, "metadata": { "client_order_id": "23042", @@ -140,7 +141,8 @@ STREAM: v1.order "close_position": false } }, - "broker": "BROKER_CODE" + "broker": "BROKER_CODE", + "allow_crossing": null }, "state": { "status": "PENDING", @@ -178,7 +180,8 @@ STREAM: v1.order "s1": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "e": "1697788800000000000", - "n": 1234567890 + "n": 1234567890, + "ci": "325" }, "m": { "co": "23042", @@ -191,7 +194,8 @@ STREAM: v1.order "cp": false } }, - "b": "BROKER_CODE" + "b": "BROKER_CODE", + "ac": null }, "s1": { "s": "PENDING", @@ -2632,7 +2636,9 @@ STREAM: v1.position "roi": "10.20", "quote_index_price": "1.0000102", "est_liquidation_price": 60000.25, - "leverage": "10" + "leverage": "10", + "cumulative_fee": "100000.20", + "cumulative_realized_funding_payment": "100000.20" } } ``` @@ -2657,7 +2663,9 @@ STREAM: v1.position "r": "10.20", "qi": "1.0000102", "el": 60000.25, - "l": "10" + "l": "10", + "cf": "100000.20", + "cr": "100000.20" } } ``` @@ -3842,7 +3850,8 @@ STREAM: v1.transfer "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "expiration": "1697788800000000000", - "nonce": 1234567890 + "nonce": 1234567890, + "chain_id": "325" }, "event_time": "1697788800000000000", "transfer_type": "UNSPECIFIED", @@ -3870,7 +3879,8 @@ STREAM: v1.transfer "s1": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "e": "1697788800000000000", - "n": 1234567890 + "n": 1234567890, + "ci": "325" }, "et": "1697788800000000000", "tt": "UNSPECIFIED", @@ -4460,7 +4470,8 @@ STREAM: v1.withdrawal "s": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "expiration": "1697788800000000000", - "nonce": 1234567890 + "nonce": 1234567890, + "chain_id": "325" } } } @@ -4482,7 +4493,8 @@ STREAM: v1.withdrawal "s1": "0x3d786193125f7c29c958647da64d0e2875ece2c3f845a591bdd7dae8c475e26d", "v": 28, "e": "1697788800000000000", - "n": 1234567890 + "n": 1234567890, + "ci": "325" } } } diff --git a/artifacts/pysdk/grvt_raw_types.py b/artifacts/pysdk/grvt_raw_types.py index f20827b..5686c0d 100644 --- a/artifacts/pysdk/grvt_raw_types.py +++ b/artifacts/pysdk/grvt_raw_types.py @@ -185,6 +185,8 @@ class OrderRejectReason(Enum): INVALID_ORDER_TYPE = "INVALID_ORDER_TYPE" # the currency is not defined CURRENCY_NOT_DEFINED = "CURRENCY_NOT_DEFINED" + # the chain ID is invalid + INVALID_CHAIN_ID = "INVALID_CHAIN_ID" class OrderStatus(Enum): @@ -234,6 +236,12 @@ class TransferType(Enum): NON_NATIVE_BRIDGE_DEPOSIT = "NON_NATIVE_BRIDGE_DEPOSIT" # Transfer type for non native bridging withdrawal NON_NATIVE_BRIDGE_WITHDRAWAL = "NON_NATIVE_BRIDGE_WITHDRAWAL" + # Transfer type for adhoc incentive + ADHOC_INCENTIVE = "ADHOC_INCENTIVE" + # Transfer type for referral incentive + REFERRAL_INCENTIVE = "REFERRAL_INCENTIVE" + # Transfer type for trading deposit yield incentive + TRADING_DEPOSIT_YIELD_INCENTIVE = "TRADING_DEPOSIT_YIELD_INCENTIVE" class TriggerBy(Enum): @@ -369,6 +377,10 @@ class Positions: est_liquidation_price: str # The current leverage value for this position leverage: str + # The cumulative fee paid on the position, expressed in quote asset decimal units + cumulative_fee: str + # The cumulative realized funding payment of the position, expressed in quote asset decimal units + cumulative_realized_funding_payment: str @dataclass @@ -651,6 +663,8 @@ class AggregatedAccountSummary: spot_balances: list[SpotBalance] # The list of vault investments held by this main account vault_investments: list[VaultInvestment] + # Total balance of the sub accounts, denominated in USD + total_sub_account_balance: str @dataclass @@ -747,6 +761,8 @@ class Signature: Our system will consider the payload a duplicate, and ignore it. """ nonce: int + # Chain ID used in EIP-712 domain. Zero value fallbacks to GRVT Chain ID. + chain_id: str @dataclass @@ -1125,9 +1141,9 @@ class Ticker: best_ask_price: str | None = None # The number of assets offered on the best ask price of the instrument, expressed in base asset decimal units best_ask_size: str | None = None - # The current funding rate of the instrument, expressed in percentage points + # DEPRECATED: To be removed in a future release. Please refer to the field `funding_rate` instead, for the funding rate being applied over `funding_interval_hours` (interval ending at `next_funding_time`). funding_rate_8h_curr: str | None = None - # The average funding rate of the instrument (over last 8h), expressed in percentage points + # DEPRECATED: To be removed in a future release. Please refer to the field `funding_rate` instead, for the funding rate being applied over `funding_interval_hours` (interval ending at `next_funding_time`). funding_rate_8h_avg: str | None = None # The interest rate of the underlying, expressed in centibeeps (1/100th of a basis point) interest_rate: str | None = None @@ -1151,6 +1167,10 @@ class Ticker: open_interest: str | None = None # The ratio of accounts that are net long vs net short on this instrument long_short_ratio: str | None = None + # The current indicative funding rate for the active interval, expressed in centibeeps + funding_rate: str | None = None + # Timestamp in nanoseconds when the current funding interval ends + next_funding_time: str | None = None @dataclass @@ -1419,7 +1439,7 @@ class ApiGetInstrumentRequest: @dataclass -class Instrument: +class InstrumentDisplay: # The readable instrument name: instrument: str # The asset ID used for instrument signing. @@ -1446,12 +1466,18 @@ class Instrument: create_time: str # The maximum position size, expressed in base asset decimal units max_position_size: str + # Defines the funding interval to be applied. + funding_interval_hours: int | None = None + # Funding rate cap over the defined `intervalHours`. + adjusted_funding_rate_cap: str | None = None + # Funding rate floor over the defined `intervalHours`. + adjusted_funding_rate_floor: str | None = None @dataclass class ApiGetInstrumentResponse: # The instrument matching the request asset - result: Instrument + result: InstrumentDisplay @dataclass @@ -1471,7 +1497,7 @@ class ApiGetFilteredInstrumentsRequest: @dataclass class ApiGetFilteredInstrumentsResponse: # The instruments matching the request filter - result: list[Instrument] + result: list[InstrumentDisplay] @dataclass @@ -1580,7 +1606,7 @@ class ApiGetAllInstrumentsRequest: @dataclass class ApiGetAllInstrumentsResponse: # List of instruments - result: list[Instrument] + result: list[InstrumentDisplay] @dataclass @@ -1589,6 +1615,10 @@ class ApiQueryVaultManagerInvestorHistoryRequest: vault_id: str # Whether to only return investments made by the manager only_own_investments: bool + # Optional. Start time in unix nanoseconds + start_time: str | None = None + # Optional. End time in unix nanoseconds + end_time: str | None = None @dataclass @@ -1698,6 +1728,8 @@ class OrderMetadata: trigger: TriggerOrderMetadata | None = None # Specifies the broker who brokered the order broker: BrokerTag | None = None + # Specifies if post only order is allowed to cross the orderbook + allow_crossing: bool | None = None @dataclass @@ -2438,6 +2470,8 @@ class ApiTransferHistoryRequest: tx_id: str | None = None # Main account ID being queried. By default, applies the requestor's main account ID. main_account_id: str | None = None + # The transfer type to filters for. If the list is empty, return all transfer types. + transfer_types: list[TransferType] | None = None @dataclass @@ -2487,6 +2521,10 @@ class WithdrawalHistory: signature: Signature # The timestamp of the withdrawal in unix nanoseconds event_time: str + # The transaction hash on L2 + l_2_hash: str + # The finalized withdrawal transaction hash on L1 + l_1_hash: str | None = None @dataclass @@ -2649,6 +2687,8 @@ class VaultRedemption: request_time: str # [Filled by GRVT Backend] Time in unix nanoseconds, beyond which the request will be force-redeemed. max_redemption_period_timestamp: str + # Omitted for redemption requests to non-cross exchange vaults. True if cancellation is blocked within the CEV allocation allowance for the user's current tier (e.g. because the user has already transferred out the spot balance underlying the redemption request). + cancel_blocked: bool | None = None @dataclass diff --git a/src/codegen/apispec.json b/src/codegen/apispec.json index 18e333f..2a01dc5 100644 --- a/src/codegen/apispec.json +++ b/src/codegen/apispec.json @@ -791,6 +791,11 @@ "message": "We are temporarily deactivating this API endpoint, please try again later", "status": 503 }, + { + "code": 1012, + "message": "Invalid signature chain ID", + "status": 400 + }, { "code": 2000, "message": "Signature is from an unauthorized signer", @@ -3082,6 +3087,32 @@ "comment": [ "The current leverage value for this position" ] + }, + { + "name": "cumulative_fee", + "lite_name": "cf", + "semantic_type": "string", + "json_type": "string", + "index": 15, + "array_depth": 0, + "optional": false, + "example": "'100000.20'", + "comment": [ + "The cumulative fee paid on the position, expressed in quote asset decimal units" + ] + }, + { + "name": "cumulative_realized_funding_payment", + "lite_name": "cr", + "semantic_type": "string", + "json_type": "string", + "index": 16, + "array_depth": 0, + "optional": false, + "example": "'100000.20'", + "comment": [ + "The cumulative realized funding payment of the position, expressed in quote asset decimal units" + ] } ], "comment": [] @@ -4286,6 +4317,19 @@ "comment": [ "The list of vault investments held by this main account" ] + }, + { + "name": "total_sub_account_balance", + "lite_name": "ts", + "semantic_type": "string", + "json_type": "string", + "index": 4, + "array_depth": 0, + "optional": false, + "example": "'3945034.23'", + "comment": [ + "Total balance of the sub accounts, denominated in USD" + ] } ], "comment": [] @@ -4716,6 +4760,19 @@ "When the same nonce is used, the same payload will generate the same signature.", "Our system will consider the payload a duplicate, and ignore it." ] + }, + { + "name": "chain_id", + "lite_name": "ci", + "semantic_type": "uint64", + "json_type": "string", + "index": 6, + "array_depth": 0, + "optional": false, + "example": "'325'", + "comment": [ + "Chain ID used in EIP-712 domain. Zero value fallbacks to GRVT Chain ID." + ] } ], "comment": [] @@ -6088,7 +6145,7 @@ "optional": true, "example": "0.0003", "comment": [ - "The current funding rate of the instrument, expressed in percentage points" + "DEPRECATED: To be removed in a future release. Please refer to the field `funding_rate` instead, for the funding rate being applied over `funding_interval_hours` (interval ending at `next_funding_time`)." ] }, { @@ -6101,7 +6158,7 @@ "optional": true, "example": "0.0003", "comment": [ - "The average funding rate of the instrument (over last 8h), expressed in percentage points" + "DEPRECATED: To be removed in a future release. Please refer to the field `funding_rate` instead, for the funding rate being applied over `funding_interval_hours` (interval ending at `next_funding_time`)." ] }, { @@ -6246,6 +6303,32 @@ "comment": [ "The ratio of accounts that are net long vs net short on this instrument" ] + }, + { + "name": "funding_rate", + "lite_name": "fr2", + "semantic_type": "string", + "json_type": "string", + "index": 24, + "array_depth": 0, + "optional": true, + "example": "0.0003", + "comment": [ + "The current indicative funding rate for the active interval, expressed in centibeeps" + ] + }, + { + "name": "next_funding_time", + "lite_name": "nf", + "semantic_type": "timestamp", + "json_type": "string", + "index": 26, + "array_depth": 0, + "optional": true, + "example": "'1697788800000000000'", + "comment": [ + "Timestamp in nanoseconds when the current funding interval ends" + ] } ], "comment": [ @@ -7303,7 +7386,7 @@ ] }, { - "name": "Instrument", + "name": "InstrumentDisplay", "is_root": false, "fields": [ { @@ -7474,6 +7557,44 @@ "comment": [ "The maximum position size, expressed in base asset decimal units" ] + }, + { + "name": "funding_interval_hours", + "lite_name": "fi", + "semantic_type": "uint8", + "json_type": "integer", + "index": 17, + "array_depth": 0, + "optional": true, + "comment": [ + "Defines the funding interval to be applied." + ] + }, + { + "name": "adjusted_funding_rate_cap", + "lite_name": "af", + "semantic_type": "string", + "json_type": "string", + "index": 18, + "array_depth": 0, + "optional": true, + "example": "2.5", + "comment": [ + "Funding rate cap over the defined `intervalHours`." + ] + }, + { + "name": "adjusted_funding_rate_floor", + "lite_name": "af1", + "semantic_type": "string", + "json_type": "string", + "index": 19, + "array_depth": 0, + "optional": true, + "example": "-2.5", + "comment": [ + "Funding rate floor over the defined `intervalHours`." + ] } ], "comment": [] @@ -7485,8 +7606,8 @@ { "name": "result", "lite_name": "r", - "semantic_type": "Instrument", - "json_type": "Instrument", + "semantic_type": "InstrumentDisplay", + "json_type": "InstrumentDisplay", "index": 0, "array_depth": 0, "optional": false, @@ -7583,8 +7704,8 @@ { "name": "result", "lite_name": "r", - "semantic_type": "Instrument", - "json_type": "Instrument", + "semantic_type": "InstrumentDisplay", + "json_type": "InstrumentDisplay", "index": 0, "array_depth": 1, "optional": false, @@ -8035,8 +8156,8 @@ { "name": "result", "lite_name": "r", - "semantic_type": "Instrument", - "json_type": "Instrument", + "semantic_type": "InstrumentDisplay", + "json_type": "InstrumentDisplay", "index": 0, "array_depth": 1, "optional": false, @@ -8076,6 +8197,34 @@ "comment": [ "Whether to only return investments made by the manager" ] + }, + { + "name": "start_time", + "lite_name": "st", + "semantic_type": "timestamp", + "json_type": "string", + "index": 2, + "array_depth": 0, + "optional": true, + "default": "0", + "example": "'1697788800000000000'", + "comment": [ + "Optional. Start time in unix nanoseconds" + ] + }, + { + "name": "end_time", + "lite_name": "et", + "semantic_type": "timestamp", + "json_type": "string", + "index": 3, + "array_depth": 0, + "optional": true, + "default": "now()", + "example": "'1697788800000000000'", + "comment": [ + "Optional. End time in unix nanoseconds" + ] } ], "comment": [ @@ -8437,6 +8586,19 @@ "comment": [ "Specifies the broker who brokered the order" ] + }, + { + "name": "allow_crossing", + "lite_name": "ac", + "semantic_type": "bool", + "json_type": "boolean", + "index": 7, + "array_depth": 0, + "optional": true, + "default": "false", + "comment": [ + "Specifies if post only order is allowed to cross the orderbook" + ] } ], "comment": [ @@ -11176,6 +11338,19 @@ "comment": [ "Main account ID being queried. By default, applies the requestor's main account ID." ] + }, + { + "name": "transfer_types", + "lite_name": "tt", + "semantic_type": "TransferType", + "json_type": "TransferType", + "index": 7, + "array_depth": 1, + "optional": true, + "default": "[]", + "comment": [ + "The transfer type to filters for. If the list is empty, return all transfer types." + ] } ], "comment": [ @@ -11406,6 +11581,33 @@ "comment": [ "The timestamp of the withdrawal in unix nanoseconds" ] + }, + { + "name": "l_1_hash", + "lite_name": "l1", + "semantic_type": "string", + "json_type": "string", + "index": 7, + "array_depth": 0, + "optional": true, + "default": "''", + "example": "'0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef'", + "comment": [ + "The finalized withdrawal transaction hash on L1" + ] + }, + { + "name": "l_2_hash", + "lite_name": "l2", + "semantic_type": "string", + "json_type": "string", + "index": 8, + "array_depth": 0, + "optional": false, + "example": "'0xabcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890'", + "comment": [ + "The transaction hash on L2" + ] } ], "comment": [] @@ -11916,6 +12118,19 @@ "comment": [ "[Filled by GRVT Backend] Time in unix nanoseconds, beyond which the request will be force-redeemed." ] + }, + { + "name": "cancel_blocked", + "lite_name": "cb", + "semantic_type": "bool", + "json_type": "boolean", + "index": 4, + "array_depth": 0, + "optional": true, + "default": "true", + "comment": [ + "Omitted for redemption requests to non-cross exchange vaults. True if cancellation is blocked within the CEV allocation allowance for the user's current tier (e.g. because the user has already transferred out the spot balance underlying the redemption request)." + ] } ], "comment": [ @@ -12712,6 +12927,13 @@ "comment": [ "the currency is not defined" ] + }, + { + "name": "INVALID_CHAIN_ID", + "value": 38, + "comment": [ + "the chain ID is invalid" + ] } ], "comment": [] @@ -12848,6 +13070,27 @@ "comment": [ "Transfer type for non native bridging withdrawal" ] + }, + { + "name": "ADHOC_INCENTIVE", + "value": 6, + "comment": [ + "Transfer type for adhoc incentive" + ] + }, + { + "name": "REFERRAL_INCENTIVE", + "value": 7, + "comment": [ + "Transfer type for referral incentive" + ] + }, + { + "name": "TRADING_DEPOSIT_YIELD_INCENTIVE", + "value": 8, + "comment": [ + "Transfer type for trading deposit yield incentive" + ] } ], "comment": []