.
This commit is contained in:
parent
312aa0b227
commit
b25d88e5af
@ -37,7 +37,7 @@
|
|||||||
}
|
}
|
||||||
# , "interval": "4 hours"
|
# , "interval": "4 hours"
|
||||||
, "interval": "3 hours"
|
, "interval": "3 hours"
|
||||||
, "from_time": "2024-02-01 03:00:00"
|
, "from_time": "2024-02-01 09:00:00"
|
||||||
}
|
}
|
||||||
, "initial_positions": {
|
, "initial_positions": {
|
||||||
"COINBASE": {
|
"COINBASE": {
|
||||||
|
|||||||
@ -12,6 +12,15 @@
|
|||||||
"read_only": "COINBASE_ADV_RO"
|
"read_only": "COINBASE_ADV_RO"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
, "ALPACA_SNDBX": {
|
||||||
|
"accounting": {
|
||||||
|
"enabled": true
|
||||||
|
, "streaming": false
|
||||||
|
}
|
||||||
|
, "credentials_key": {
|
||||||
|
"read_only": "ALPACA_SANDBOX"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
, "refdata": @inc=http://${CONFIG_SVC_HOST}:6789/refdata/refdata
|
, "refdata": @inc=http://${CONFIG_SVC_HOST}:6789/refdata/refdata
|
||||||
, "redis": @inc=http://${CONFIG_SVC_HOST}:6789/apps/redis
|
, "redis": @inc=http://${CONFIG_SVC_HOST}:6789/apps/redis
|
||||||
|
|||||||
28
data/apps/tests/send_order.cfg
Normal file
28
data/apps/tests/send_order.cfg
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
@var CONFIG_SVC_HOST=cloud16.cvtt.vpn
|
||||||
|
|
||||||
|
{
|
||||||
|
"__DUMMY__": null
|
||||||
|
|
||||||
|
, "exchanges_settings": {
|
||||||
|
"COINBASE_AT": {
|
||||||
|
"order_entry": {
|
||||||
|
"enabled": true
|
||||||
|
, "streaming": true
|
||||||
|
}
|
||||||
|
, "credentials_key": {
|
||||||
|
"trade": "COINBASE_ADV_TRD"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
, "ALPACA_SNDBX": {
|
||||||
|
"order_entry": {
|
||||||
|
"enabled": true
|
||||||
|
, "streaming": true
|
||||||
|
}
|
||||||
|
, "credentials_key": {
|
||||||
|
"trade": "ALPACA_SANDBOX"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
, "refdata": @inc=http://${CONFIG_SVC_HOST}:6789/refdata/refdata
|
||||||
|
}
|
||||||
|
|
||||||
@ -4,6 +4,7 @@
|
|||||||
"__DUMMY__": {}
|
"__DUMMY__": {}
|
||||||
# ---------------------- A
|
# ---------------------- A
|
||||||
, "ALPACA_SNDBX": {
|
, "ALPACA_SNDBX": {
|
||||||
|
# https://docs.alpaca.markets/reference/
|
||||||
"exchange_id": "ALPACA"
|
"exchange_id": "ALPACA"
|
||||||
, "name": "Alpaca Trading"
|
, "name": "Alpaca Trading"
|
||||||
, "type": "EQUITY"
|
, "type": "EQUITY"
|
||||||
@ -13,6 +14,14 @@
|
|||||||
, "order_entry": {
|
, "order_entry": {
|
||||||
"class": "cvttpy.exchanges.alpaca.connector.AlpacaOrderEntryClient"
|
"class": "cvttpy.exchanges.alpaca.connector.AlpacaOrderEntryClient"
|
||||||
|
|
||||||
|
, "REST": {
|
||||||
|
"submit_order_url": ["POST", "https://paper-api.alpaca.markets/v2/orders"]
|
||||||
|
, "orders_url": ["GET", "https://paper-api.alpaca.markets/v2/orders"]
|
||||||
|
, "order_status": ["GET", "https://paper-api.alpaca.markets/v2/orders/{order_id}"]
|
||||||
|
, "cancel_order_url": ["DELETE", "https://paper-api.alpaca.markets/v2/orders/{order_id}"]
|
||||||
|
, "cancel_all_url": ["DELETE", "https://paper-api.alpaca.markets/v2/orders"]
|
||||||
|
}
|
||||||
|
, "ws_url": ["WSS", "wss://paper-api.alpaca.markets/stream"]
|
||||||
}
|
}
|
||||||
, "mktdata" : {
|
, "mktdata" : {
|
||||||
"class": "cvttpy.exchanges.alpaca.mkt_data.AlpacaStockFeed"
|
"class": "cvttpy.exchanges.alpaca.mkt_data.AlpacaStockFeed"
|
||||||
@ -28,7 +37,8 @@
|
|||||||
|
|
||||||
, "REST": {
|
, "REST": {
|
||||||
"balances_url": ["GET", "https://paper-api.alpaca.markets/v2/positions"]
|
"balances_url": ["GET", "https://paper-api.alpaca.markets/v2/positions"]
|
||||||
, "account_info": ["GET", "https://paper-api.alpaca.markets/v2/account"]
|
, "account_info_url": ["GET", "https://paper-api.alpaca.markets/v2/account"]
|
||||||
|
, "trades_url": ["GET", "https://paper-api.alpaca.markets/v2/account/activities/FILL"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user