diff --git a/backends/monolith/api/models.py b/backends/monolith/api/models.py index 86c092d..7cc25a4 100644 --- a/backends/monolith/api/models.py +++ b/backends/monolith/api/models.py @@ -13,7 +13,6 @@ class Symbol(models.Model): class Meta(object): unique_together = ["id", "client"] - class Order(models.Model): client = models.ForeignKey( Client, blank=True, null=True, on_delete=models.SET_NULL) @@ -43,9 +42,8 @@ class Operation(models.Model): stop_gain_percent = models.IntegerField(blank=True) stop_loss_percent = models.IntegerField(blank=True) -class Note(models.Model): - user = models.ForeignKey(CustomUser, on_delete=models.DO_NOTHING) - body = models.TextField() +class TechnicalEvent(): + type = ('Bullish', 'Bearish') class Argument(): type = ('Bullish', 'Bearish') @@ -53,13 +51,39 @@ class Argument(): class Accumulation(): type = ('Bullish', 'Bearish') +# Chart Patterns + class Rectangle(): type = ('Bullish', 'Bearish') class Triangle(): type = ('Bullish', 'Bearish') +class Hammer(): + type = ('Bullish', 'Bearish') + +class InvertedHammer(): + type = ('Bullish', 'Bearish') + +class HangingMan(): + type = ('Bullish', 'Bearish') + +class Piercing(): + type = ('Bullish', 'Bearish') + +# Reversal Patterns + +class Engulfing(): + type = ('Bullish', 'Bearish') + +class ShootingStart(): + thre_candles = ('Closure', 'Opening', 'Closure') + type = ('Bullish') + class MorningStart(): thre_candles = ('Closure', 'Opening', 'Closure') type = ('Bullish') - \ No newline at end of file + +class EveningStart(): + thre_candles = ('Closure', 'Opening', 'Closure') + type = ('Bullish') diff --git a/backends/monolith/backend/urls.py b/backends/monolith/backend/urls.py index 9666b6b..fc2da91 100644 --- a/backends/monolith/backend/urls.py +++ b/backends/monolith/backend/urls.py @@ -1,7 +1,12 @@ from django.contrib import admin from django.urls import path, include +from django.conf import settings +from django.conf.urls.static import static urlpatterns = [ path('admin/', admin.site.urls), path('api/', include('api.urls')), ] + +if settings.DEBUG: + urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) diff --git a/backends/monolith/requirements.txt b/backends/monolith/requirements.txt index 05fe3d0..5391c33 100644 --- a/backends/monolith/requirements.txt +++ b/backends/monolith/requirements.txt @@ -67,12 +67,12 @@ pytz==2022.4 pytz-deprecation-shim==0.1.0.post0 PyYAML==5.3.1 regex==2022.3.2 -requests==2.22.0 +requests requests-unixsocket==0.2.0 SecretStorage==2.3.1 service-identity==18.1.0 simplejson==3.16.0 -six==1.14.0 +six sqlparse==0.4.2 ssh-import-id==5.10 testresources==2.0.1