LevelOneUpdate
Update the value of a level one field.
- Message Type: TransactionMessage
- Message Number: 1009
Inherited fields
| Name | Type | Size (bytes) | Description |
|---|
| MessageType | Integer (unsigned) | 2 | The unique identifier of this message.
|
| ClientId | Integer (unsigned) | 4 | The unique identifier of a session with the server, returned in a successful LoginReply message.
|
| RequestId | Integer (unsigned) | 4 | Within each session each message must be uniquely identified by this field. It must be monotonically increasing for the duration of the session.
|
Fields
| Name | Type | Size (bytes) | Description |
|---|
| InstrumentMarket | Foreign key to InstrumentMarket | 8 | |
| Field | One of LevelOneType | 1 | |
| Value | Integer (signed) | 8 | The new value of the field. If the field has implied decimals, then the value should be supplied in the full integer precision.
|
| LastBCSequence | Integer (unsigned) | 8 | |
Permissions
LevelOneUpdate for Index Price
{
instrumentmarket: "test-im2",
field: LevelOneType.IndexPrice,
value: 1000000,
}
Permission Checks
| PermissionAction | Table | Scope | Index |
|---|
| Amend | InstrumentMarket | Instance | 1 |
| View | Market | Instance | 0 |
Test file: LevelOneUpdate