Skip to content

Error while placing order: 11:11:22 | Unexpected UTF-8 BOM (decode using utf-8-sig): line 1 column 1 (char 0) #307

Description

@kamalakarkale
  • 5paisa Python SDK version: 0.7.19
  • Python version: Python 3.9
  • Operating System: MacOS Sequoia 15.2

I am trying to place order for Derivative segment using api but getting below error. I tried for equity segment and api was working fine. Only for derivates segment I am facing this issue.

11:11:22 | Unexpected UTF-8 BOM (decode using utf-8-sig): line 1 column 1 (char 0)

code snippet:
client.place_order(OrderType='S',
Exchange='N',
ExchangeType='D',
ScripCode = pe_op_scripcode,
Qty=position_size,
Price=pe_last_rate)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions