DeveloperBreeze

Api Development Tutorials, Guides & Insights

Unlock 7+ expert-curated api tutorials, real-world code snippets, and modern dev strategies. From fundamentals to advanced topics, boost your api skills on DeveloperBreeze.

Etherscan vs Infura: Choosing the Right API for Your Blockchain Application

Tutorial October 24, 2024

  • Etherscan: Use to fetch transaction history and display it in your dApp.
  • Infura: Use to allow users to send transactions or interact with smart contracts.

Etherscan and Infura serve different purposes in the Ethereum ecosystem. Etherscan is perfect for applications that need to query blockchain data, while Infura is essential for real-time interaction with the blockchain. By understanding the strengths of each, you can choose the best service for your project, or even combine them to build powerful Ethereum applications.

بناء API متقدم باستخدام Laravel Passport للتوثيق

Tutorial September 27, 2024
php

ثم قم بترحيل البيانات الخاصة بـ Passport:

بعد ذلك، قم بتثبيت مفاتيح التشفير التي يستخدمها Passport:

Integrating Laravel and React with Vite: Using Databases and PHP in a Full-Stack Project

Tutorial August 14, 2024
javascript php

Migrations in Laravel allow you to define and modify your database schema. Let's create a migration for a posts table:

php artisan make:migration create_posts_table

Advanced Pybit Tutorial: Managing Leverage, Stop-Loss Orders, Webhooks, and More

Tutorial August 14, 2024
python

You can set a stop-loss order when opening a position or on an existing position:

   def place_stop_loss(symbol, side, qty, stop_price):
       response = session.place_active_order(
           symbol=symbol,
           side=side,
           order_type='Market',
           qty=qty,
           stop_loss=stop_price,
           time_in_force='GoodTillCancel'
       )
       if response['ret_code'] == 0:
           print(f"Stop-loss set at {stop_price} for {symbol}")
       else:
           print(f"Error setting stop-loss: {response['ret_msg']}")
       return response

   place_stop_loss('BTCUSD', 'Buy', 0.01, 29000)  # Buy 0.01 BTC with stop-loss at $29,000

A Beginner's Guide to Pybit: Interacting with the Bybit API

Tutorial August 14, 2024
python

One of the most common uses of exchange APIs is to fetch real-time market data. Let's start by retrieving the current price of a trading pair.

Use the following code to fetch the latest price of BTC/USD: