@@ -62,7 +62,7 @@ Want to quickly make a trading app? Here you go:
6262
6363 # Use this class to connect to Bitvavo and make your first calls.
6464 # Add trading strategies to implement your business logic.
65- class bitvavo_implementation :
65+ class BitvavoImplementation :
6666 api_key = "<Replace with your your API key from Bitvavo Dashboard>"
6767 api_secret = "<Replace with your API secret from Bitvavo Dashboard>"
6868 bitvavo_engine = None
@@ -95,11 +95,11 @@ Want to quickly make a trading app? Here you go:
9595 for market in response:
9696 print("Iterate through markets:", market["market"] )
9797 match market["market"]:
98- case "A market ":
98+ case "ABC-EUR ":
9999 print("Check data against your trading strategy. For example, the bid is: ", market["bid"] )
100100 # Implement calculations for your trading logic.
101101 # If they are positive, place an order: For example:
102- # self.bitvavo_socket.placeOrder("A market ",
102+ # self.bitvavo_socket.placeOrder("ABC-EUR ",
103103 # 'buy',
104104 # 'limit',
105105 # { 'amount': '1', 'price': '00001' },
@@ -132,7 +132,7 @@ Want to quickly make a trading app? Here you go:
132132
133133 # Shall I re-explain main? Naaaaaaaaaa.
134134 if __name__ == '__main__':
135- bvavo = bitvavo_implementation ()
135+ bvavo = BitvavoImplementation ()
136136 bvavo.a_trading_strategy()
137137 bvavo.wait_and_close()
138138 ```
0 commit comments