UpdateGlobalVar
Last updated
Last updated
This transaction is used to update the global variable settings.
Name | Type | Required | Description |
---|---|---|---|
There are 5 parameters, different operations correspond to different parameters:
Modify the collect-fee account.
Name | Type | Required | Description |
---|---|---|---|
For example:
Name | Type | Required | Description |
---|---|---|---|
Name | Type | Required | Description |
---|---|---|---|
Name | Type | Required | Description |
---|---|---|---|
type
String
yes
The value is "UpdateGlovalVar "
fromChainId
yes
The layer3 chain id
subAccountId
yes
The subaccount id
parameter
yes
Different operation has different variable
seriaId
u64
yes
The serial id
feeAccount
yes
The fee account id
accountId
yes
The account id of insuranceFundAccount
marginId
yes
The margin id
tokenId
yes
The Token id
ratio
u8
yes
the ratio, 100 means 1.0%
pairId
yes
The pair id
symbol
String
yes
The symbol of the contract
initialMarginRate
u16
yes
The initial margin rate of the contract, 100 means 0.1%
maintenanceMarginRate
u16
yes
The maintenance margin rate, 100 means 0.1%
infos
array
yes
funding info list
> pairId
yes
The pair id
> price
yes
the mark price of the trade pair
> fundingRate
i16
yes
the fee funding rate, the actual result needs to be divided by 10^6