@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,91 @@
|
|
|
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 { PositionStatus } from '../models/PositionStatus';
|
|
14
|
+
import { Side } from '../models/Side';
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Position
|
|
18
|
+
*/
|
|
19
|
+
export class Position {
|
|
20
|
+
'id': string;
|
|
21
|
+
'symbol': string;
|
|
22
|
+
'side': Side;
|
|
23
|
+
'quantity': number;
|
|
24
|
+
'entry_price': number;
|
|
25
|
+
'mark_price': number;
|
|
26
|
+
'liquidation_price': number;
|
|
27
|
+
'status': PositionStatus;
|
|
28
|
+
|
|
29
|
+
static readonly discriminator: string | undefined = undefined;
|
|
30
|
+
|
|
31
|
+
static readonly mapping: {[index: string]: string} | undefined = undefined;
|
|
32
|
+
|
|
33
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
34
|
+
{
|
|
35
|
+
"name": "id",
|
|
36
|
+
"baseName": "id",
|
|
37
|
+
"type": "string",
|
|
38
|
+
"format": ""
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"name": "symbol",
|
|
42
|
+
"baseName": "symbol",
|
|
43
|
+
"type": "string",
|
|
44
|
+
"format": ""
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "side",
|
|
48
|
+
"baseName": "side",
|
|
49
|
+
"type": "Side",
|
|
50
|
+
"format": ""
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"name": "quantity",
|
|
54
|
+
"baseName": "quantity",
|
|
55
|
+
"type": "number",
|
|
56
|
+
"format": ""
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"name": "entry_price",
|
|
60
|
+
"baseName": "entry_price",
|
|
61
|
+
"type": "number",
|
|
62
|
+
"format": ""
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"name": "mark_price",
|
|
66
|
+
"baseName": "mark_price",
|
|
67
|
+
"type": "number",
|
|
68
|
+
"format": ""
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"name": "liquidation_price",
|
|
72
|
+
"baseName": "liquidation_price",
|
|
73
|
+
"type": "number",
|
|
74
|
+
"format": ""
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"name": "status",
|
|
78
|
+
"baseName": "status",
|
|
79
|
+
"type": "PositionStatus",
|
|
80
|
+
"format": ""
|
|
81
|
+
} ];
|
|
82
|
+
|
|
83
|
+
static getAttributeTypeMap() {
|
|
84
|
+
return Position.attributeTypeMap;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
public constructor() {
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
* PositionStatus
|
|
16
|
+
*/
|
|
17
|
+
export enum PositionStatus {
|
|
18
|
+
Open = 'open',
|
|
19
|
+
Liquidated = 'liquidated',
|
|
20
|
+
Liquidating = 'liquidating',
|
|
21
|
+
AutoDeleveraging = 'auto_deleveraging'
|
|
22
|
+
}
|
|
@@ -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
|
+
* PositionSummary
|
|
16
|
+
*/
|
|
17
|
+
export class PositionSummary {
|
|
18
|
+
'id': string;
|
|
19
|
+
'symbol': string;
|
|
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": "id",
|
|
28
|
+
"baseName": "id",
|
|
29
|
+
"type": "string",
|
|
30
|
+
"format": ""
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "symbol",
|
|
34
|
+
"baseName": "symbol",
|
|
35
|
+
"type": "string",
|
|
36
|
+
"format": ""
|
|
37
|
+
} ];
|
|
38
|
+
|
|
39
|
+
static getAttributeTypeMap() {
|
|
40
|
+
return PositionSummary.attributeTypeMap;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
public constructor() {
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
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 { EvaluatorType } from '../models/EvaluatorType';
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* RSIMomentumEvaluatorConfiguration
|
|
17
|
+
*/
|
|
18
|
+
export class RSIMomentumEvaluatorConfiguration {
|
|
19
|
+
/**
|
|
20
|
+
* RSIMomentumEvaluator
|
|
21
|
+
*/
|
|
22
|
+
'configuration_type': EvaluatorType;
|
|
23
|
+
'period_length': number;
|
|
24
|
+
'short_threshold': number;
|
|
25
|
+
'long_threshold': 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": "EvaluatorType",
|
|
36
|
+
"format": ""
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "period_length",
|
|
40
|
+
"baseName": "period_length",
|
|
41
|
+
"type": "number",
|
|
42
|
+
"format": ""
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "short_threshold",
|
|
46
|
+
"baseName": "short_threshold",
|
|
47
|
+
"type": "number",
|
|
48
|
+
"format": ""
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "long_threshold",
|
|
52
|
+
"baseName": "long_threshold",
|
|
53
|
+
"type": "number",
|
|
54
|
+
"format": ""
|
|
55
|
+
} ];
|
|
56
|
+
|
|
57
|
+
static getAttributeTypeMap() {
|
|
58
|
+
return RSIMomentumEvaluatorConfiguration.attributeTypeMap;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
public constructor() {
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
|
|
@@ -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 { UserActionType } from '../models/UserActionType';
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* RefreshAccountsConfiguration
|
|
17
|
+
*/
|
|
18
|
+
export class RefreshAccountsConfiguration {
|
|
19
|
+
/**
|
|
20
|
+
* accounts_refresh
|
|
21
|
+
*/
|
|
22
|
+
'action_type': UserActionType;
|
|
23
|
+
'account_ids'?: Array<string>;
|
|
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": "action_type",
|
|
32
|
+
"baseName": "action_type",
|
|
33
|
+
"type": "UserActionType",
|
|
34
|
+
"format": ""
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "account_ids",
|
|
38
|
+
"baseName": "account_ids",
|
|
39
|
+
"type": "Array<string>",
|
|
40
|
+
"format": ""
|
|
41
|
+
} ];
|
|
42
|
+
|
|
43
|
+
static getAttributeTypeMap() {
|
|
44
|
+
return RefreshAccountsConfiguration.attributeTypeMap;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
public constructor() {
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
|
package/models/Side.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
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 execution side.
|
|
16
|
+
*/
|
|
17
|
+
export enum Side {
|
|
18
|
+
Buy = 'buy',
|
|
19
|
+
Sell = 'sell'
|
|
20
|
+
}
|
|
@@ -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 { UserActionType } from '../models/UserActionType';
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* StopAutomationConfiguration
|
|
17
|
+
*/
|
|
18
|
+
export class StopAutomationConfiguration {
|
|
19
|
+
'id': string;
|
|
20
|
+
/**
|
|
21
|
+
* automation_stop
|
|
22
|
+
*/
|
|
23
|
+
'action_type': UserActionType;
|
|
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": "id",
|
|
32
|
+
"baseName": "id",
|
|
33
|
+
"type": "string",
|
|
34
|
+
"format": ""
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "action_type",
|
|
38
|
+
"baseName": "action_type",
|
|
39
|
+
"type": "UserActionType",
|
|
40
|
+
"format": ""
|
|
41
|
+
} ];
|
|
42
|
+
|
|
43
|
+
static getAttributeTypeMap() {
|
|
44
|
+
return StopAutomationConfiguration.attributeTypeMap;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
public constructor() {
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
|
|
@@ -0,0 +1,46 @@
|
|
|
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 { Strategy } from '../models/Strategy';
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* StrategiesState
|
|
17
|
+
*/
|
|
18
|
+
export class StrategiesState {
|
|
19
|
+
'version': string;
|
|
20
|
+
'strategies': Array<Strategy>;
|
|
21
|
+
|
|
22
|
+
static readonly discriminator: string | undefined = undefined;
|
|
23
|
+
|
|
24
|
+
static readonly mapping: {[index: string]: string} | undefined = undefined;
|
|
25
|
+
|
|
26
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
27
|
+
{
|
|
28
|
+
"name": "version",
|
|
29
|
+
"baseName": "version",
|
|
30
|
+
"type": "string",
|
|
31
|
+
"format": ""
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "strategies",
|
|
35
|
+
"baseName": "strategies",
|
|
36
|
+
"type": "Array<Strategy>",
|
|
37
|
+
"format": ""
|
|
38
|
+
} ];
|
|
39
|
+
|
|
40
|
+
static getAttributeTypeMap() {
|
|
41
|
+
return StrategiesState.attributeTypeMap;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
public constructor() {
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
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 { StrategyConfiguration } from '../models/StrategyConfiguration';
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Strategy
|
|
17
|
+
*/
|
|
18
|
+
export class Strategy {
|
|
19
|
+
'id': string;
|
|
20
|
+
'version': string;
|
|
21
|
+
'name'?: string;
|
|
22
|
+
'description'?: string;
|
|
23
|
+
'created_at'?: Date;
|
|
24
|
+
'updated_at'?: Date;
|
|
25
|
+
'configuration': StrategyConfiguration;
|
|
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": "id",
|
|
34
|
+
"baseName": "id",
|
|
35
|
+
"type": "string",
|
|
36
|
+
"format": ""
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "version",
|
|
40
|
+
"baseName": "version",
|
|
41
|
+
"type": "string",
|
|
42
|
+
"format": ""
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "name",
|
|
46
|
+
"baseName": "name",
|
|
47
|
+
"type": "string",
|
|
48
|
+
"format": ""
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "description",
|
|
52
|
+
"baseName": "description",
|
|
53
|
+
"type": "string",
|
|
54
|
+
"format": ""
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"name": "created_at",
|
|
58
|
+
"baseName": "created_at",
|
|
59
|
+
"type": "Date",
|
|
60
|
+
"format": "date-time"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "updated_at",
|
|
64
|
+
"baseName": "updated_at",
|
|
65
|
+
"type": "Date",
|
|
66
|
+
"format": "date-time"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "configuration",
|
|
70
|
+
"baseName": "configuration",
|
|
71
|
+
"type": "StrategyConfiguration",
|
|
72
|
+
"format": ""
|
|
73
|
+
} ];
|
|
74
|
+
|
|
75
|
+
static getAttributeTypeMap() {
|
|
76
|
+
return Strategy.attributeTypeMap;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
public constructor() {
|
|
80
|
+
}
|
|
81
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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 { CopyConfiguration } from '../models/CopyConfiguration';
|
|
14
|
+
import { DCAConfiguration } from '../models/DCAConfiguration';
|
|
15
|
+
import { GenericProcessConfiguration } from '../models/GenericProcessConfiguration';
|
|
16
|
+
import { GenericWorkflowConfiguration } from '../models/GenericWorkflowConfiguration';
|
|
17
|
+
import { GridConfiguration } from '../models/GridConfiguration';
|
|
18
|
+
import { IndexConfiguration } from '../models/IndexConfiguration';
|
|
19
|
+
import { MarketMakingConfiguration } from '../models/MarketMakingConfiguration';
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* @type StrategyConfiguration
|
|
23
|
+
* Type
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
export type StrategyConfiguration = CopyConfiguration | DCAConfiguration | GenericProcessConfiguration | GenericWorkflowConfiguration | GridConfiguration | IndexConfiguration | MarketMakingConfiguration;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* @type StrategyConfigurationClass
|
|
30
|
+
* @export
|
|
31
|
+
*/
|
|
32
|
+
export class StrategyConfigurationClass {
|
|
33
|
+
static readonly discriminator: string | undefined = "configuration_type";
|
|
34
|
+
|
|
35
|
+
static readonly mapping: {[index: string]: string} | undefined = {
|
|
36
|
+
"CopyConfiguration": "CopyConfiguration",
|
|
37
|
+
"DCAConfiguration": "DCAConfiguration",
|
|
38
|
+
"GenericProcessConfiguration": "GenericProcessConfiguration",
|
|
39
|
+
"GenericWorkflowConfiguration": "GenericWorkflowConfiguration",
|
|
40
|
+
"GridConfiguration": "GridConfiguration",
|
|
41
|
+
"IndexConfiguration": "IndexConfiguration",
|
|
42
|
+
"MarketMakingConfiguration": "MarketMakingConfiguration",
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
@@ -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
|
+
|
|
14
|
+
/**
|
|
15
|
+
* StrategyReference
|
|
16
|
+
*/
|
|
17
|
+
export class StrategyReference {
|
|
18
|
+
'id': string;
|
|
19
|
+
'version': string;
|
|
20
|
+
'emit_signals'?: boolean;
|
|
21
|
+
|
|
22
|
+
static readonly discriminator: string | undefined = undefined;
|
|
23
|
+
|
|
24
|
+
static readonly mapping: {[index: string]: string} | undefined = undefined;
|
|
25
|
+
|
|
26
|
+
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
|
|
27
|
+
{
|
|
28
|
+
"name": "id",
|
|
29
|
+
"baseName": "id",
|
|
30
|
+
"type": "string",
|
|
31
|
+
"format": ""
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "version",
|
|
35
|
+
"baseName": "version",
|
|
36
|
+
"type": "string",
|
|
37
|
+
"format": ""
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"name": "emit_signals",
|
|
41
|
+
"baseName": "emit_signals",
|
|
42
|
+
"type": "boolean",
|
|
43
|
+
"format": ""
|
|
44
|
+
} ];
|
|
45
|
+
|
|
46
|
+
static getAttributeTypeMap() {
|
|
47
|
+
return StrategyReference.attributeTypeMap;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
public constructor() {
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
* TaskStatus
|
|
16
|
+
*/
|
|
17
|
+
export enum TaskStatus {
|
|
18
|
+
Pending = 'pending',
|
|
19
|
+
Scheduled = 'scheduled',
|
|
20
|
+
Periodic = 'periodic',
|
|
21
|
+
Running = 'running',
|
|
22
|
+
Completed = 'completed',
|
|
23
|
+
Failed = 'failed'
|
|
24
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
* TimeFrame
|
|
16
|
+
*/
|
|
17
|
+
export enum TimeFrame {
|
|
18
|
+
_1m = '1m',
|
|
19
|
+
_5m = '5m',
|
|
20
|
+
_15m = '15m',
|
|
21
|
+
_30m = '30m',
|
|
22
|
+
_1h = '1h',
|
|
23
|
+
_4h = '4h',
|
|
24
|
+
_6h = '6h',
|
|
25
|
+
_8h = '8h',
|
|
26
|
+
_12h = '12h',
|
|
27
|
+
_1d = '1d',
|
|
28
|
+
_3d = '3d',
|
|
29
|
+
_1w = '1w'
|
|
30
|
+
}
|