Decibel Maker Trade Connector
Features
crypto-decibelmmConnector Key✗
Order Status Request
✓
Cancel On Disconnect
✗
Commission
✓
Post Only
✓
Fast Cancel
✗
Fast Replace
Notes
Repricing
When useRepricing = true the connector will use special transaction identifier: place_bulk_orders_to_subaccount_with_repricing.
Max Collapse Size
This is the max quantity that will be re-priced at the top of the book.
Max Collapse Size can be optionally passed in MassQuote::Issuer property.
for example if max_collapse_size = 50,000
- Case 1: total size that would cross before repricing = 10,000 (< 50,000) so full size 10,000 will be repriced at top of the book price (1 tick away from best).
- Case 2: total size that would cross before repricing = 100,000 (> 50,000) so size 50,000 (max) will be repriced at top of the book price (1 tick away from best).
Symbology
Symbol list available via the following request (testnet):
curl --request GET \
-o decibel-symbols-testnet.json \
--url https://api.testnet.aptoslabs.com/decibel/api/v1/markets \
-H "authorization: Bearer <TESTNET_API_KEY>"
Configuration
Connector settings
| Parameter | Default Value | Description |
|---|---|---|
| stream | TimeBase stream key for RFQ messages. | |
| destinationId | Target destination of outbound RFQ messages. | |
| account | Primary Sub Account. | |
| contractModule | dex_accounts_entry | The user contract module. |
| deploymentPackage | Deployment package. | |
| chainId | Chain ID. | |
| maxGasAmount | 1000000 | The maximum number of gas units that the transaction sender is willing to spend to execute the transaction. This determines the maximum computational and storage resources that can be consumed by the transaction. |
| gasUnitPrice | 100 | The price per gas unit the transaction sender is willing to pay. It is expressed in Octas. |
| submitExpireInterval | 20s | Submit order transaction expiration interval. |
| cancelExpireInterval | 20s | Cancel order transaction expiration interval. |
| useRepricing | false | Toggle flag to send bulk orders with repricing. |
Supported order attributes
| Key | Description |
|---|---|
| 18 | '6' value used for post only orders submission |
Config sample
connectors {
DECIBELMM: ${template.connector.crypto.decibelmm} {
settings {
restUrl = "https://api.testnet.aptoslabs.com"
websocketUrl = "wss://api.testnet.aptoslabs.com/decibel/ws"
apiKeys: [{
apiKey = "<API_KEY>"
apiSecret = "<PRIVATE_KEY>"
}]
account = "<PRIMARY_SUB_ACCOUNT>"
chainId = <CHAIN_ID>
deploymentPackage = "<DEPLOYMENT_PACKAGE>"
stream = "<STREAM_KEY>" # RFQ
destinationId = "<DESTINATION>" # BULK_ALGO
}
}
}