@drakkar.software/octobot-protocol 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/models/Account.ts +89 -0
- package/models/AccountActionResult.ts +63 -0
- package/models/AccountActionResultErrorMessage.ts +21 -0
- package/models/AccountDetails.ts +38 -0
- package/models/AccountReference.ts +38 -0
- package/models/AccountState.ts +49 -0
- package/models/AccountStatus.ts +21 -0
- package/models/AccountStatusMessage.ts +27 -0
- package/models/AccountType.ts +21 -0
- package/models/AccountsState.ts +46 -0
- package/models/Action.ts +90 -0
- package/models/ActionConfigurationType.ts +25 -0
- package/models/ActiveOrderSwapStrategy.ts +55 -0
- package/models/ActiveOrderSwapStrategyType.ts +20 -0
- package/models/Asset.ts +66 -0
- package/models/AutomationActionResult.ts +70 -0
- package/models/AutomationActionResultErrorMessage.ts +24 -0
- package/models/AutomationConfiguration.ts +75 -0
- package/models/AutomationMetadata.ts +59 -0
- package/models/AutomationState.ts +117 -0
- package/models/BlockchainAccount.ts +79 -0
- package/models/CancelPolicy.ts +48 -0
- package/models/CancelPolicyType.ts +20 -0
- package/models/CopiedAccount.ts +76 -0
- package/models/CopiedAsset.ts +59 -0
- package/models/CopyConfiguration.ts +51 -0
- package/models/CreateAccountConfiguration.ts +52 -0
- package/models/CreateAutomationConfiguration.ts +52 -0
- package/models/DCAConfiguration.ts +127 -0
- package/models/DeleteAccountConfiguration.ts +51 -0
- package/models/EMAMomentumEvaluatorConfiguration.ts +65 -0
- package/models/EditAccountConfiguration.ts +59 -0
- package/models/EditAutomationConfiguration.ts +59 -0
- package/models/EvaluatorConfiguration.ts +39 -0
- package/models/EvaluatorConfigurationConfiguration.ts +35 -0
- package/models/EvaluatorType.ts +20 -0
- package/models/ExchangeAccount.ts +119 -0
- package/models/GenericAccount.ts +52 -0
- package/models/GenericProcessConfiguration.ts +51 -0
- package/models/GenericWorkflowConfiguration.ts +52 -0
- package/models/GridConfiguration.ts +112 -0
- package/models/IndexCoin.ts +45 -0
- package/models/IndexConfiguration.ts +59 -0
- package/models/MarketMakingConfiguration.ts +52 -0
- package/models/MarketMakingFundsDistribution.ts +21 -0
- package/models/MarketMakingHedgingEngine.ts +86 -0
- package/models/MarketMakingOrderBookDepth.ts +45 -0
- package/models/MarketMakingOrdersDistribution.ts +19 -0
- package/models/MarketMakingReferencePair.ts +75 -0
- package/models/MarketMakingScheduledVolume.ts +59 -0
- package/models/MarketMakingStopConditions.ts +69 -0
- package/models/MarketMakingSymbolConfiguration.ts +171 -0
- package/models/Order.ts +172 -0
- package/models/OrderGroup.ts +56 -0
- package/models/OrderGroupType.ts +21 -0
- package/models/OrderStatus.ts +28 -0
- package/models/OrderSummary.ts +45 -0
- package/models/OrderType.ts +24 -0
- package/models/Position.ts +91 -0
- package/models/PositionStatus.ts +22 -0
- package/models/PositionSummary.ts +45 -0
- package/models/RSIMomentumEvaluatorConfiguration.ts +65 -0
- package/models/RefreshAccountsConfiguration.ts +51 -0
- package/models/Side.ts +20 -0
- package/models/StopAutomationConfiguration.ts +51 -0
- package/models/StrategiesState.ts +46 -0
- package/models/Strategy.ts +81 -0
- package/models/StrategyConfiguration.ts +50 -0
- package/models/StrategyReference.ts +52 -0
- package/models/TaskStatus.ts +24 -0
- package/models/TimeFrame.ts +30 -0
- package/models/Trade.ts +99 -0
- package/models/TradeSummary.ts +45 -0
- package/models/TradingType.ts +22 -0
- package/models/TrailingProfile.ts +48 -0
- package/models/TrailingProfileType.ts +19 -0
- package/models/UserAction.ts +78 -0
- package/models/UserActionConfiguration.ts +50 -0
- package/models/UserActionResult.ts +35 -0
- package/models/UserActionResultType.ts +20 -0
- package/models/UserActionStatus.ts +22 -0
- package/models/UserActionType.ts +25 -0
- package/models/UserActionsState.ts +46 -0
- package/models/UserDataState.ts +54 -0
- package/models/index.ts +84 -0
- package/package.json +9 -0
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OctoBot protocol types
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* OpenAPI spec version: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { AccountType } from '../models/AccountType';
|
|
14
|
+
import { Asset } from '../models/Asset';
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* GenericAccount
|
|
18
|
+
*/
|
|
19
|
+
export class GenericAccount {
|
|
20
|
+
/**
|
|
21
|
+
* generic
|
|
22
|
+
*/
|
|
23
|
+
'account_type': AccountType;
|
|
24
|
+
'assets'?: Array<Asset>;
|
|
25
|
+
|
|
26
|
+
static readonly discriminator: string | undefined = undefined;
|
|
27
|
+
|
|
28
|
+
static readonly mapping: {[index: string]: string} | undefined = undefined;
|
|
29
|
+
|
|
30
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
31
|
+
{
|
|
32
|
+
"name": "account_type",
|
|
33
|
+
"baseName": "account_type",
|
|
34
|
+
"type": "AccountType",
|
|
35
|
+
"format": ""
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "assets",
|
|
39
|
+
"baseName": "assets",
|
|
40
|
+
"type": "Array<Asset>",
|
|
41
|
+
"format": ""
|
|
42
|
+
} ];
|
|
43
|
+
|
|
44
|
+
static getAttributeTypeMap() {
|
|
45
|
+
return GenericAccount.attributeTypeMap;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
public constructor() {
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OctoBot protocol types
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* OpenAPI spec version: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { ActionConfigurationType } from '../models/ActionConfigurationType';
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* GenericProcessConfiguration
|
|
17
|
+
*/
|
|
18
|
+
export class GenericProcessConfiguration {
|
|
19
|
+
/**
|
|
20
|
+
* generic_process
|
|
21
|
+
*/
|
|
22
|
+
'configuration_type': ActionConfigurationType;
|
|
23
|
+
'profile_data': any;
|
|
24
|
+
|
|
25
|
+
static readonly discriminator: string | undefined = undefined;
|
|
26
|
+
|
|
27
|
+
static readonly mapping: {[index: string]: string} | undefined = undefined;
|
|
28
|
+
|
|
29
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
30
|
+
{
|
|
31
|
+
"name": "configuration_type",
|
|
32
|
+
"baseName": "configuration_type",
|
|
33
|
+
"type": "ActionConfigurationType",
|
|
34
|
+
"format": ""
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "profile_data",
|
|
38
|
+
"baseName": "profile_data",
|
|
39
|
+
"type": "any",
|
|
40
|
+
"format": ""
|
|
41
|
+
} ];
|
|
42
|
+
|
|
43
|
+
static getAttributeTypeMap() {
|
|
44
|
+
return GenericProcessConfiguration.attributeTypeMap;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
public constructor() {
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OctoBot protocol types
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* OpenAPI spec version: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { Action } from '../models/Action';
|
|
14
|
+
import { ActionConfigurationType } from '../models/ActionConfigurationType';
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* GenericWorkflowConfiguration
|
|
18
|
+
*/
|
|
19
|
+
export class GenericWorkflowConfiguration {
|
|
20
|
+
/**
|
|
21
|
+
* generic_workflow
|
|
22
|
+
*/
|
|
23
|
+
'configuration_type': ActionConfigurationType;
|
|
24
|
+
'actions': Array<Action>;
|
|
25
|
+
|
|
26
|
+
static readonly discriminator: string | undefined = undefined;
|
|
27
|
+
|
|
28
|
+
static readonly mapping: {[index: string]: string} | undefined = undefined;
|
|
29
|
+
|
|
30
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
31
|
+
{
|
|
32
|
+
"name": "configuration_type",
|
|
33
|
+
"baseName": "configuration_type",
|
|
34
|
+
"type": "ActionConfigurationType",
|
|
35
|
+
"format": ""
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "actions",
|
|
39
|
+
"baseName": "actions",
|
|
40
|
+
"type": "Array<Action>",
|
|
41
|
+
"format": ""
|
|
42
|
+
} ];
|
|
43
|
+
|
|
44
|
+
static getAttributeTypeMap() {
|
|
45
|
+
return GenericWorkflowConfiguration.attributeTypeMap;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
public constructor() {
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OctoBot protocol types
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* OpenAPI spec version: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { ActionConfigurationType } from '../models/ActionConfigurationType';
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* GridConfiguration
|
|
17
|
+
*/
|
|
18
|
+
export class GridConfiguration {
|
|
19
|
+
/**
|
|
20
|
+
* grid
|
|
21
|
+
*/
|
|
22
|
+
'configuration_type': ActionConfigurationType;
|
|
23
|
+
'symbol': string;
|
|
24
|
+
/**
|
|
25
|
+
* Price difference between the closest buy and sell orders. Denominated in the quote currency (600 for a 600 USDT spread on BTC/USDT).
|
|
26
|
+
*/
|
|
27
|
+
'spread': number;
|
|
28
|
+
/**
|
|
29
|
+
* Price difference between two orders of the same side. Denominated in the quote currency (200 for a 200 USDT spread on BTC/USDT).
|
|
30
|
+
*/
|
|
31
|
+
'increment': number;
|
|
32
|
+
/**
|
|
33
|
+
* Number of initial buy orders to create. Make sure to have enough funds to create that many orders.
|
|
34
|
+
*/
|
|
35
|
+
'buy_count': number;
|
|
36
|
+
/**
|
|
37
|
+
* Number of initial sell orders to create. Make sure to have enough funds to create that many orders.
|
|
38
|
+
*/
|
|
39
|
+
'sell_count': number;
|
|
40
|
+
'enable_trailing_up': boolean;
|
|
41
|
+
'enable_trailing_down': boolean;
|
|
42
|
+
'order_by_order_trailing': boolean;
|
|
43
|
+
|
|
44
|
+
static readonly discriminator: string | undefined = undefined;
|
|
45
|
+
|
|
46
|
+
static readonly mapping: {[index: string]: string} | undefined = undefined;
|
|
47
|
+
|
|
48
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
49
|
+
{
|
|
50
|
+
"name": "configuration_type",
|
|
51
|
+
"baseName": "configuration_type",
|
|
52
|
+
"type": "ActionConfigurationType",
|
|
53
|
+
"format": ""
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"name": "symbol",
|
|
57
|
+
"baseName": "symbol",
|
|
58
|
+
"type": "string",
|
|
59
|
+
"format": ""
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"name": "spread",
|
|
63
|
+
"baseName": "spread",
|
|
64
|
+
"type": "number",
|
|
65
|
+
"format": ""
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"name": "increment",
|
|
69
|
+
"baseName": "increment",
|
|
70
|
+
"type": "number",
|
|
71
|
+
"format": ""
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"name": "buy_count",
|
|
75
|
+
"baseName": "buy_count",
|
|
76
|
+
"type": "number",
|
|
77
|
+
"format": ""
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"name": "sell_count",
|
|
81
|
+
"baseName": "sell_count",
|
|
82
|
+
"type": "number",
|
|
83
|
+
"format": ""
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"name": "enable_trailing_up",
|
|
87
|
+
"baseName": "enable_trailing_up",
|
|
88
|
+
"type": "boolean",
|
|
89
|
+
"format": ""
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"name": "enable_trailing_down",
|
|
93
|
+
"baseName": "enable_trailing_down",
|
|
94
|
+
"type": "boolean",
|
|
95
|
+
"format": ""
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"name": "order_by_order_trailing",
|
|
99
|
+
"baseName": "order_by_order_trailing",
|
|
100
|
+
"type": "boolean",
|
|
101
|
+
"format": ""
|
|
102
|
+
} ];
|
|
103
|
+
|
|
104
|
+
static getAttributeTypeMap() {
|
|
105
|
+
return GridConfiguration.attributeTypeMap;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
public constructor() {
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OctoBot protocol types
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* OpenAPI spec version: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* IndexCoin
|
|
16
|
+
*/
|
|
17
|
+
export class IndexCoin {
|
|
18
|
+
'name': string;
|
|
19
|
+
'ratio': number;
|
|
20
|
+
|
|
21
|
+
static readonly discriminator: string | undefined = undefined;
|
|
22
|
+
|
|
23
|
+
static readonly mapping: {[index: string]: string} | undefined = undefined;
|
|
24
|
+
|
|
25
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
26
|
+
{
|
|
27
|
+
"name": "name",
|
|
28
|
+
"baseName": "name",
|
|
29
|
+
"type": "string",
|
|
30
|
+
"format": ""
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "ratio",
|
|
34
|
+
"baseName": "ratio",
|
|
35
|
+
"type": "number",
|
|
36
|
+
"format": ""
|
|
37
|
+
} ];
|
|
38
|
+
|
|
39
|
+
static getAttributeTypeMap() {
|
|
40
|
+
return IndexCoin.attributeTypeMap;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
public constructor() {
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OctoBot protocol types
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* OpenAPI spec version: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { ActionConfigurationType } from '../models/ActionConfigurationType';
|
|
14
|
+
import { IndexCoin } from '../models/IndexCoin';
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* IndexConfiguration
|
|
18
|
+
*/
|
|
19
|
+
export class IndexConfiguration {
|
|
20
|
+
/**
|
|
21
|
+
* index
|
|
22
|
+
*/
|
|
23
|
+
'configuration_type': ActionConfigurationType;
|
|
24
|
+
'coins': Array<IndexCoin>;
|
|
25
|
+
'rebalance_trigger_min_percent': number;
|
|
26
|
+
|
|
27
|
+
static readonly discriminator: string | undefined = undefined;
|
|
28
|
+
|
|
29
|
+
static readonly mapping: {[index: string]: string} | undefined = undefined;
|
|
30
|
+
|
|
31
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
32
|
+
{
|
|
33
|
+
"name": "configuration_type",
|
|
34
|
+
"baseName": "configuration_type",
|
|
35
|
+
"type": "ActionConfigurationType",
|
|
36
|
+
"format": ""
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "coins",
|
|
40
|
+
"baseName": "coins",
|
|
41
|
+
"type": "Array<IndexCoin>",
|
|
42
|
+
"format": ""
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "rebalance_trigger_min_percent",
|
|
46
|
+
"baseName": "rebalance_trigger_min_percent",
|
|
47
|
+
"type": "number",
|
|
48
|
+
"format": ""
|
|
49
|
+
} ];
|
|
50
|
+
|
|
51
|
+
static getAttributeTypeMap() {
|
|
52
|
+
return IndexConfiguration.attributeTypeMap;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
public constructor() {
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OctoBot protocol types
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* OpenAPI spec version: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { ActionConfigurationType } from '../models/ActionConfigurationType';
|
|
14
|
+
import { MarketMakingSymbolConfiguration } from '../models/MarketMakingSymbolConfiguration';
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Per-symbol market making parameters.
|
|
18
|
+
*/
|
|
19
|
+
export class MarketMakingConfiguration {
|
|
20
|
+
/**
|
|
21
|
+
* market_making
|
|
22
|
+
*/
|
|
23
|
+
'configuration_type': ActionConfigurationType;
|
|
24
|
+
'pair_settings': Array<MarketMakingSymbolConfiguration>;
|
|
25
|
+
|
|
26
|
+
static readonly discriminator: string | undefined = undefined;
|
|
27
|
+
|
|
28
|
+
static readonly mapping: {[index: string]: string} | undefined = undefined;
|
|
29
|
+
|
|
30
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
31
|
+
{
|
|
32
|
+
"name": "configuration_type",
|
|
33
|
+
"baseName": "configuration_type",
|
|
34
|
+
"type": "ActionConfigurationType",
|
|
35
|
+
"format": ""
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "pair_settings",
|
|
39
|
+
"baseName": "pair_settings",
|
|
40
|
+
"type": "Array<MarketMakingSymbolConfiguration>",
|
|
41
|
+
"format": ""
|
|
42
|
+
} ];
|
|
43
|
+
|
|
44
|
+
static getAttributeTypeMap() {
|
|
45
|
+
return MarketMakingConfiguration.attributeTypeMap;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
public constructor() {
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OctoBot protocol types
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* OpenAPI spec version: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* How allocated funds are spread across ladder levels.
|
|
16
|
+
*/
|
|
17
|
+
export enum MarketMakingFundsDistribution {
|
|
18
|
+
Flat = 'flat',
|
|
19
|
+
Valley = 'valley',
|
|
20
|
+
Random = 'random'
|
|
21
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OctoBot protocol types
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* OpenAPI spec version: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Optional cross-exchange hedging configuration.
|
|
16
|
+
*/
|
|
17
|
+
export class MarketMakingHedgingEngine {
|
|
18
|
+
'average_price_counted_minutes'?: number;
|
|
19
|
+
'hedging_engine_type'?: MarketMakingHedgingEngineHedgingEngineTypeEnum;
|
|
20
|
+
'hedging_exchange'?: string;
|
|
21
|
+
'hedging_max_loss_threshold'?: number;
|
|
22
|
+
'hedging_profit_threshold'?: number;
|
|
23
|
+
'max_negative_percent_price_change'?: number;
|
|
24
|
+
'max_positive_percent_price_change'?: number;
|
|
25
|
+
|
|
26
|
+
static readonly discriminator: string | undefined = undefined;
|
|
27
|
+
|
|
28
|
+
static readonly mapping: {[index: string]: string} | undefined = undefined;
|
|
29
|
+
|
|
30
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
31
|
+
{
|
|
32
|
+
"name": "average_price_counted_minutes",
|
|
33
|
+
"baseName": "average_price_counted_minutes",
|
|
34
|
+
"type": "number",
|
|
35
|
+
"format": ""
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "hedging_engine_type",
|
|
39
|
+
"baseName": "hedging_engine_type",
|
|
40
|
+
"type": "MarketMakingHedgingEngineHedgingEngineTypeEnum",
|
|
41
|
+
"format": ""
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"name": "hedging_exchange",
|
|
45
|
+
"baseName": "hedging_exchange",
|
|
46
|
+
"type": "string",
|
|
47
|
+
"format": ""
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"name": "hedging_max_loss_threshold",
|
|
51
|
+
"baseName": "hedging_max_loss_threshold",
|
|
52
|
+
"type": "number",
|
|
53
|
+
"format": ""
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"name": "hedging_profit_threshold",
|
|
57
|
+
"baseName": "hedging_profit_threshold",
|
|
58
|
+
"type": "number",
|
|
59
|
+
"format": ""
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"name": "max_negative_percent_price_change",
|
|
63
|
+
"baseName": "max_negative_percent_price_change",
|
|
64
|
+
"type": "number",
|
|
65
|
+
"format": ""
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"name": "max_positive_percent_price_change",
|
|
69
|
+
"baseName": "max_positive_percent_price_change",
|
|
70
|
+
"type": "number",
|
|
71
|
+
"format": ""
|
|
72
|
+
} ];
|
|
73
|
+
|
|
74
|
+
static getAttributeTypeMap() {
|
|
75
|
+
return MarketMakingHedgingEngine.attributeTypeMap;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
public constructor() {
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export enum MarketMakingHedgingEngineHedgingEngineTypeEnum {
|
|
83
|
+
Spot = 'spot',
|
|
84
|
+
PerpetualFutures = 'perpetual_futures'
|
|
85
|
+
}
|
|
86
|
+
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OctoBot protocol types
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* OpenAPI spec version: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Order book depth parameters (cumulated volume and daily volume fraction).
|
|
16
|
+
*/
|
|
17
|
+
export class MarketMakingOrderBookDepth {
|
|
18
|
+
'cumulated_volume_percent': number;
|
|
19
|
+
'percent_daily_trading_volume': number;
|
|
20
|
+
|
|
21
|
+
static readonly discriminator: string | undefined = undefined;
|
|
22
|
+
|
|
23
|
+
static readonly mapping: {[index: string]: string} | undefined = undefined;
|
|
24
|
+
|
|
25
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
26
|
+
{
|
|
27
|
+
"name": "cumulated_volume_percent",
|
|
28
|
+
"baseName": "cumulated_volume_percent",
|
|
29
|
+
"type": "number",
|
|
30
|
+
"format": ""
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "percent_daily_trading_volume",
|
|
34
|
+
"baseName": "percent_daily_trading_volume",
|
|
35
|
+
"type": "number",
|
|
36
|
+
"format": ""
|
|
37
|
+
} ];
|
|
38
|
+
|
|
39
|
+
static getAttributeTypeMap() {
|
|
40
|
+
return MarketMakingOrderBookDepth.attributeTypeMap;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
public constructor() {
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OctoBot protocol types
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* OpenAPI spec version: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* How order prices are spaced across the book.
|
|
16
|
+
*/
|
|
17
|
+
export enum MarketMakingOrdersDistribution {
|
|
18
|
+
Linear = 'linear'
|
|
19
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OctoBot protocol types
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* OpenAPI spec version: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import { TimeFrame } from '../models/TimeFrame';
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Reference price source for market making (exchange pair, weighting, and optional formula).
|
|
17
|
+
*/
|
|
18
|
+
export class MarketMakingReferencePair {
|
|
19
|
+
/**
|
|
20
|
+
* Exchange id, or a sentinel such as local exchange price when supported by the trading mode.
|
|
21
|
+
*/
|
|
22
|
+
'exchange': string;
|
|
23
|
+
'pair': string;
|
|
24
|
+
'weight'?: number;
|
|
25
|
+
/**
|
|
26
|
+
* Optional formula overriding the default latest price for this source.
|
|
27
|
+
*/
|
|
28
|
+
'formula'?: string;
|
|
29
|
+
'time_frame'?: TimeFrame;
|
|
30
|
+
|
|
31
|
+
static readonly discriminator: string | undefined = undefined;
|
|
32
|
+
|
|
33
|
+
static readonly mapping: {[index: string]: string} | undefined = undefined;
|
|
34
|
+
|
|
35
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
36
|
+
{
|
|
37
|
+
"name": "exchange",
|
|
38
|
+
"baseName": "exchange",
|
|
39
|
+
"type": "string",
|
|
40
|
+
"format": ""
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "pair",
|
|
44
|
+
"baseName": "pair",
|
|
45
|
+
"type": "string",
|
|
46
|
+
"format": ""
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "weight",
|
|
50
|
+
"baseName": "weight",
|
|
51
|
+
"type": "number",
|
|
52
|
+
"format": ""
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"name": "formula",
|
|
56
|
+
"baseName": "formula",
|
|
57
|
+
"type": "string",
|
|
58
|
+
"format": ""
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"name": "time_frame",
|
|
62
|
+
"baseName": "time_frame",
|
|
63
|
+
"type": "TimeFrame",
|
|
64
|
+
"format": ""
|
|
65
|
+
} ];
|
|
66
|
+
|
|
67
|
+
static getAttributeTypeMap() {
|
|
68
|
+
return MarketMakingReferencePair.attributeTypeMap;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
public constructor() {
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
|