Skip to main content

gRPC API for My Funded trading

Project description

MyFunded gRPC API Proto Python Package

This package contains the Python-generated code from the Protocol Buffer definitions for the MyFunded gRPC API.

Installation

You can install this package using pip:

pip install my-funded-grpc-api

Usage

After installation, you can import and use the generated classes in your Python code. Here's a basic example:

import time

from google.protobuf.timestamp_pb2 import Timestamp
from my_funded_grpc_api.trading_account import cash_balance_pb2

message = cash_balance_pb2.TradingAccountCashBalanceMessage(
    event=cash_balance_pb2.TradingAccountCashBalanceEvent(
        event_type=cash_balance_pb2.EVENT_TYPE_CREATED,
        entity_type=cash_balance_pb2.ENTITY_TYPE_TRADING_ACCOUNT_CASH_BALANCE,
        environment=cash_balance_pb2.ENVIRONMENT_LIVE,
        stage=cash_balance_pb2.STAGE_EVALUATION,
        entity=cash_balance_pb2.TradingAccountCashBalance(
            trading_account_id="acc123",
            balance=10000.50,
            date=Timestamp().FromSeconds(int(time.time())),
            realized_pnl=500.75,
            environment=cash_balance_pb2.ENVIRONMENT_LIVE,
            stage=cash_balance_pb2.STAGE_EVALUATION,
            broker="TestBroker"
        ),
    ),
    topic="trading/cash_balance"
)

print(message)
event {
  event_type: EVENT_TYPE_CREATED
  entity_type: ENTITY_TYPE_TRADING_ACCOUNT_CASH_BALANCE
  environment: ENVIRONMENT_LIVE
  stage: STAGE_EVALUATION
  entity {
    trading_account_id: "acc123"
    balance: 10000.5
    realized_pnl: 500.75
    environment: ENVIRONMENT_LIVE
    stage: STAGE_EVALUATION
    broker: "TestBroker"
  }
}
topic: "trading/cash_balance"

Development

This package is automatically generated from the Protocol Buffer definitions in the MyFunded gRPC API Proto repository. If you need to make changes, please submit a pull request to that repository.

License

[Specify your license here]

Contact

For any questions or issues, please open an issue on the GitHub repository.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

my_funded_grpc_api-0.1.50.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

my_funded_grpc_api-0.1.50-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file my_funded_grpc_api-0.1.50.tar.gz.

File metadata

  • Download URL: my_funded_grpc_api-0.1.50.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for my_funded_grpc_api-0.1.50.tar.gz
Algorithm Hash digest
SHA256 d3e5a50d2ee7e5b78b243ac6a86d5fd9f67db621be3ced88192e86b8da8255e6
MD5 7179b746311da7ea049b7dddc959d275
BLAKE2b-256 8f78f8eba73fdcc9965b5c453e0e294d172646c5f7d45cd547e33c0984d9671b

See more details on using hashes here.

File details

Details for the file my_funded_grpc_api-0.1.50-py3-none-any.whl.

File metadata

File hashes

Hashes for my_funded_grpc_api-0.1.50-py3-none-any.whl
Algorithm Hash digest
SHA256 4c953e92a3890f6806857aefa618aedd9e60d12b6a8b71b950113ad1376baaa8
MD5 b05c68a58052e398383265276bd542ff
BLAKE2b-256 4fa47175c5bfd4e8d2b3df36adc5106cd8fc007750f538b7c79fccb61b1f140d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page