Giter VIP home page Giter VIP logo

capx's People

Contributors

anami-sf avatar csant510 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

capx's Issues

Commented out code

capX/main_app/views.py

Lines 70 to 82 in 15a8b27

# class OrderCreate(LoginRequiredMixin,CreateView):
# model = Order
# fields = ['amount', 'order_type', 'coin_type']
# def check_balances(self)
# def form_valid(self, form):
# # Assign the logged in user (self.request.user)
# form.instance.user = self.request.user
# # Instance methods are invoked by prefacing the
# #method name with 'super()'
# return super().form_valid(form)

capX/main_app/views.py

Lines 90 to 95 in 15a8b27

# order_order_type = request.POST['order_type']
# order_coin = request.POST[]
# if wallet.eth_balance - order_amount < 0:
# # or wallet.btc_balance - order_amount <
# return redirect('orders')
# else:

capX/main_app/views.py

Lines 148 to 151 in 15a8b27

# all_orders = User.order_set.all()
# orders = all_orders.objects.filter(user = user)
# open_orders = orders.objects.filter(status='Open')
# filled_orders = orders.objects.filter(status='Filled')

https://github.com/anami-sf/capX/blob/15a8b2743b5dfe9f9a08ebe7f5588b683c0f5135/main_app/urls.py#L16-17

capX/main_app/models.py

Lines 23 to 35 in 15a8b27

# class Transaction(models.Model):
# # bid_id = models.OneToOneField(
# # Order,
# # on_delete=models.CASCADE,
# # primary_key = True
# # )
# # ask_id = models.OneToOneField(
# # Order,
# # on_delete=models.CASCADE,
# # primary_key = True
# # )
# bid = models.CharField(max_length=200)
# ask = models.CharField(max_length=200)

<!-- <input type="hidden" name="next" value="{{ next }}"> -->

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.