Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs
    1. Home
    2. Medhane Ermias
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Medhane Ermias

    @Medhane Ermias

    I was a professor in computer science and engineering having 25 years of teaching experience in ECE and CSE together.

    I am in to trading since 12 years - part time after my duty hours mainly in mcx as well as FNO.

    I am having little knowledge in technical analysis and in depth knowledge in my own domain.

    I am intrested in Algo Trading especially in FNO.

    Now I am full time Algo Trader and successfully developed my own Apps for my personal use.

    13
    Reputation
    262
    Posts
    213
    Profile views
    17
    Followers
    1
    Following
    Joined Last Online
    Location Mysuru

    Medhane Ermias Follow
    SmartAPI Group

    Best posts made by Medhane Ermias

    • getCandleData delay by 75 seconds to 90 sconds

      angel delay1.jpg
      @admin
      @administrators
      We are getting candle data almost more than 75 seconds delay.

      just check the image for reference

      I tried to get a candle at 14:15

      but I got the candle at 14:16:16

      it will be delayed by 75 seconds to 95 seconds in most of the time .

      I started looping at every 10 sec from 14:15 to observe the last candle data and ultimately I received the candle at 14:16:16 instead of 14:15 . It is a delay of 75 sec in this case.

      posted in Python SDK
      Medhane Ermias
      Medhane Ermias
    • I think they are changing or updating the script master

      https://margincalculator.angelbroking.com/OpenAPI_File/files/OpenAPIScripMaster.json

      I think they are changing or updating the script master

      if so please inform because we cannot work if any changes .

      posted in General Discussion
      Medhane Ermias
      Medhane Ermias
    • RE: challenges using Smartapi

      @Mnagesh

      Main challenges I am facing are :

      1. Gap up or gap down opening - On that day the market goes sideways for sure .
      2. Range Bound or sideways
      3. Spikes are danger
      4. spike followed by reverse spike is too danger (Immediate next candle !)
      5. Most of my trade goes lose between 11:00 to 12: 30 in Nifty Future

      signals works only in trending market.
      Trend occurs only once in a wile and remaining all 5 cases it goes lose !!!

      posted in General Discussion
      Medhane Ermias
      Medhane Ermias
    • RE: challenges using Smartapi

      @falconTrader I am happy at least your are interested in discussion. Most of the many are least bothered . Including @admin wont reply even if some technical issues were there or we brought it to @admin notice.

      posted in General Discussion
      Medhane Ermias
      Medhane Ermias
    • RE: Query Regarding Stock Symbol Token Changes

      @Malav it is better to download script master once in a week may be every Saturday or at least once in a month so that the symbols and tokens we get the updated ones

      posted in General Discussion
      Medhane Ermias
      Medhane Ermias
    • RE: Delayed response by 2 min

      @vivekruhela Yes delay is there from 70 to 90 seconds in Historical Api to get the candles of any candle size 1, 3, 5 or 10 etc....

      Since I am using I am observing delay . I informed to angel few time but the issue remained same.

      I am looking for Market Api Data providers but they are too costly.

      so I am continuing with the same delayed data as I am still in the experimenting stage .

      once my algorithm are satisficed I may go for subscribing commercial market data providers .

      @admin

      posted in Python SDK
      Medhane Ermias
      Medhane Ermias
    • RE: getCandleData delay by 75 seconds to 90 sconds

      @Mnagesh ![alt text](t1.jpg image url)

      Still we get 70 to 90 sec delayed candles
      @admin

      posted in Python SDK
      Medhane Ermias
      Medhane Ermias
    • List of all Smartapi functions in Python

      There are around 30 functions provided by SmartApi :

      I am exploring all of them here.

      Thought May be useful for someone.

      if any one need to explore any particular function one can start the new thread in the python group .

      #########################################


      def cancelOrder(self, order_id,variety):
          orderResponse= self._postRequest("api.order.cancel", {"variety": variety,"orderid": order_id})
          return orderResponse
      

      def convertPosition(self,positionParams):
          params=positionParams
          for k in list(params.keys()):
              if params[k] is None:
                  del(params[k])
          convertPositionResponse= self._postRequest("api.convert.position",params)
      
          return convertPositionResponse
      

      def generateSession(self,clientCode,password,totp):
          
          params={"clientcode":clientCode,"password":password,"totp":totp}
          loginResultObject=self._postRequest("api.login",params)
          
          if loginResultObject['status']==True:
              jwtToken=loginResultObject['data']['jwtToken']
              self.setAccessToken(jwtToken)
              refreshToken=loginResultObject['data']['refreshToken']
              feedToken=loginResultObject['data']['feedToken']
              self.setRefreshToken(refreshToken)
              self.setFeedToken(feedToken)
              user=self.getProfile(refreshToken)
          
              id=user['data']['clientcode']
              #id='D88311'
              self.setUserId(id)
              user['data']['jwtToken']="Bearer "+jwtToken
              user['data']['refreshToken']=refreshToken
      
              
              return user
          else:
              return loginResultObject
      

      def generateToken(self,refresh_token):
          response=self._postRequest('api.token',{"refreshToken":refresh_token})
          jwtToken=response['data']['jwtToken']
          feedToken=response['data']['feedToken']
          self.setFeedToken(feedToken)
          self.setAccessToken(jwtToken)
      
          return response
      

      def getCandleData(self,historicDataParams):
          params=historicDataParams
          for k in list(params.keys()):
              if params[k] is None:
                  del(params[k])
          getCandleDataResponse=self._postRequest("api.candle.data",historicDataParams)
          return getCandleDataResponse
      

      def getProfile(self,refreshToken):
          user=self._getRequest("api.user.profile",{"refreshToken":refreshToken})
          return user
      

      def getUserId():
          return userId
      

      def getfeedToken(self):
          return self.feed_token
      

      def gttCancelRule(self,gttCancelParams):
          params=gttCancelParams
          for k in list(params.keys()):
              if params[k] is None:
                  del(params[k])
          
          #print(params)
          cancelGttRuleResponse=self._postRequest("api.gtt.cancel",params)
          #print(cancelGttRuleResponse)
          return cancelGttRuleResponse
      

      def gttCreateRule(self,createRuleParams):
          params=createRuleParams
          for k in list(params.keys()):
              if params[k] is None:
                  del(params[k])
      
          createGttRuleResponse=self._postRequest("api.gtt.create",params)
          #print(createGttRuleResponse)       
          return createGttRuleResponse['data']['id']
      

      def gttDetails(self,id):
          params={
              "id":id
              }
          gttDetailsResponse=self._postRequest("api.gtt.details",params)
          return gttDetailsResponse
      

      def gttLists(self,status,page,count):
          if type(status)== list:
              params={
                  "status":status,
                  "page":page,
                  "count":count
              }
              gttListResponse=self._postRequest("api.gtt.list",params)
              #print(gttListResponse)
              return gttListResponse
          else:
              message="The status param is entered as" +str(type(status))+". Please enter status param as a list i.e., status=['CANCELLED']"
              return message
      

      def gttModifyRule(self,modifyRuleParams):
          params=modifyRuleParams
          for k in list(params.keys()):
              if params[k] is None:
                  del(params[k])
          modifyGttRuleResponse=self._postRequest("api.gtt.modify",params)
          #print(modifyGttRuleResponse)
          return modifyGttRuleResponse['data']['id']
      

      def holding(self):
          holdingResponse= self._getRequest("api.holding")
          return holdingResponse
      

      def login_url(self):
          """Get the remote login url to which a user should be redirected to initiate the login flow."""
          return "%s?api_key=%s" % (self._login_url, self.api_key)
      

      def ltpData(self,exchange,tradingsymbol,symboltoken):
          params={
              "exchange":exchange,
              "tradingsymbol":tradingsymbol,
              "symboltoken":symboltoken
          }
          ltpDataResponse= self._postRequest("api.ltp.data",params)
          return ltpDataResponse
      

      def modifyOrder(self,orderparams):
          params = orderparams
      
          for k in list(params.keys()):
              if params[k] is None:
                  del(params[k])
      
          orderResponse= self._postRequest("api.order.modify", params)
          return orderResponse
      

      def orderBook(self):
          orderBookResponse=self._getRequest("api.order.book")
          return orderBookResponse
      

      def placeOrder(self,orderparams):
      
          params=orderparams
         
          for k in list(params.keys()):
              if params[k] is None :
                  del(params[k])
          
          orderResponse= self._postRequest("api.order.place", params)['data']['orderid']
      
          return orderResponse
      

      def position(self):
          positionResponse= self._getRequest("api.position")
          return positionResponse
      

      def renewAccessToken(self):
          response =self._postRequest('api.refresh', {
              "jwtToken": self.access_token,
              "refreshToken": self.refresh_token,
              
          })
         
          tokenSet={}
      
          if "jwtToken" in response:
              tokenSet['jwtToken']=response['data']['jwtToken']
          tokenSet['clientcode']=self. userId   
          tokenSet['refreshToken']=response['data']["refreshToken"]
         
          return tokenSet
      

      def requestHeaders(self):
          return{
              "Content-type":self.accept,
              "X-ClientLocalIP": self.clientLocalIp,
              "X-ClientPublicIP": self.clientPublicIp,
              "X-MACAddress": self.clientMacAddress,
              "Accept": self.accept,
              "X-PrivateKey": self.privateKey,
              "X-UserType": self.userType,
              "X-SourceID": self.sourceID
          }
      

      def rmsLimit(self):
          rmsLimitResponse= self._getRequest("api.rms.limit")
          return rmsLimitResponse
      

      def setAccessToken(self, access_token):
      
          self.access_token = access_token
      

      def setFeedToken(self,feedToken):
          
          self.feed_token=feedToken
      

      def setRefreshToken(self, refresh_token):
      
          self.refresh_token = refresh_token
      

      def setSessionExpiryHook(self, method):
          if not callable(method):
              raise TypeError("Invalid input type. Only functions are accepted.")
          self.session_expiry_hook = method
      

      def setUserId(self,id):
          self.userId=id
      

      def terminateSession(self,clientCode):
          logoutResponseObject=self._postRequest("api.logout",{"clientcode":clientCode})
          return logoutResponseObject
      

      def tradeBook(self):
          tradeBookResponse=self._getRequest("api.trade.book")
          return tradeBookResponse
      

      posted in Python SDK
      Medhane Ermias
      Medhane Ermias
    • RE: time frame

      @ramk Thank You
      may get more frequent signal
      more signals means more we pay for brokerage
      Also we get more fake signals

      which Technical Analysis tool you are using ? like moving average, MACD, RSI or some thing else ?

      posted in General Discussion
      Medhane Ermias
      Medhane Ermias

    Latest posts made by Medhane Ermias

    • Escaping the Clutches of Granny: A Guide to Surviving the Spooky Mansion

      There's a certain thrill in games that test your nerves and make your heart race. While some prefer the epic battles of fantasy worlds, others find a peculiar satisfaction in the creeping dread of a well-crafted horror experience. If you're someone who enjoys a good scare and the challenge of outsmarting a relentless pursuer, then you've likely heard of, or even dabbled in, the world of Granny. This game, a masterclass in minimalist horror, has captivated millions with its simple premise and terrifying execution.
      But what exactly is Granny, and how do you navigate its perilous halls? This guide aims to demystify the experience, offering insights into its gameplay, crucial tips for survival, and a general understanding of why this unassuming title has become such a phenomenon.

      1. Welcome to Granny's House

      Imagine waking up in a decrepit, dimly lit room. Your head pounds, and a sense of unease hangs heavy in the air. This is your introduction to Granny. The game immediately throws you into the deep end: you are trapped in a house with a terrifying old woman who hears everything and will stop at nothing to catch you. Your objective is simple, yet incredibly difficult: escape within five days. Each day represents a new opportunity to explore, find tools, and make progress towards your freedom, but it also brings you closer to your ultimate demise if you fail.
      The genius of Granny lies in its simplicity. There are no complicated storylines, no elaborate cutscenes, just you, a haunted house, and a formidable adversary. This stripped-down approach forces players to rely on their wits, observation skills, and a healthy dose of stealth.

      2. Gameplay: The Dance of Evasion and Discovery

      The core gameplay loop of Granny revolves around two main pillars: evasion and discovery.
      Evasion: Granny is almost always on your tail. Every creak of a floorboard, every dropped item, every open door, serves as an alarm bell for her. She patrols the house relentlessly, her distinctive footsteps a constant reminder of her presence. Your primary tool for evasion is stealth. Crouching, hiding under beds or in wardrobes, and moving slowly are crucial. If she spots you, a heart-pounding chase ensues, often ending in a swift and brutal knockout. This temporary incapacitation costs you a precious day, resetting your progress and putting you closer to the end of the game.
      Discovery: To escape, you'll need to find a series of items scattered throughout the house. These aren't just random trinkets; each item plays a specific role in your escape plan. This could be a key for a locked door, a hammer to break planks, a screwdriver to remove vents, or even a crossbow to temporarily stun Granny. The house itself is a labyrinth of rooms, each holding potential clues or dangers. You'll need to meticulously search every drawer, shelf, and corner. The layout can feel confusing at first, but with repeated attempts, you'll begin to learn the pathways, shortcuts, and hiding spots.
      The game cleverly integrates these two elements. Often, finding a crucial item will generate noise, alerting Granny and forcing you to quickly adapt your strategy – grab the item, find a hiding spot, or make a break for it. This constant tension between progression and danger is what makes Granny so satisfying when you finally achieve a breakthrough.

      3. Tips for Survival: Mastering the Mansion

      Surviving Granny's house requires a strategic mind and a healthy dose of patience. Here are some tips to help you on your escape journey:
      Listen Carefully: Sound is your most important tool. Granny's footsteps are distinct. Pay attention to their direction and proximity. If you hear them getting closer, it's time to find a hiding spot or change your route.
      Utilize Hiding Spots: Don't underestimate the power of a good hiding spot. Under beds and inside wardrobes are your safest bets. But remember, if Granny sees you go into one, she'll likely wait for you to come out.
      Learn the Layout: The more you play, the better you'll understand the house's layout. Knowing where doors lead, where key items are often found, and where good escape routes exist is invaluable.
      Prioritize Important Items: Some items are more critical than others. Focus on finding the main door key, the padlock key, and the hammer as early as possible.
      Distract Granny: Dropping an object, like a book or a vase, can create a noise that draws Granny away from your current location, giving you a precious window to move or search.
      Use the Crossbow Wisely: The crossbow is a powerful tool for temporarily incapacitating Granny. Save it for crucial moments when you need to make a quick escape or access a high-risk area.
      Crouch, Crouch, Crouch: Unless you're in a hurry to escape a chase, always move in a crouch. It significantly reduces the noise you make.
      Don't Rush: While the five-day limit creates urgency, rushing often leads to mistakes and getting caught. Take your time, plan your moves, and be methodical.
      Experiment with Difficulties: Granny offers various difficulty levels. Start on "Easy" to learn the ropes without too much pressure, and then challenge yourself as you improve.

      4. The Enduring Appeal of the Horrific Matron

      Granny, despite its simple graphics and straightforward premise, has solidified its place as a quintessential horror game. It's a testament to how effective atmosphere, sound design, and intelligent AI can be in creating a truly terrifying and engaging experience. The constant tension, the satisfying feeling of outsmarting your pursuer, and the sheer relief of finally escaping make Granny a memorable and often replayed game.
      Whether you're a seasoned horror veteran or a curious newcomer, Granny offers a unique blend of fear and problem-solving. It's a game that reminds us that sometimes, the most effective scares come not from jump scares alone, but from the relentless pursuit of a formidable foe and the desperate struggle for survival. So, next time you're looking for a game that will challenge your wits and send shivers down your spine, consider paying a visit to Granny's house. Just be sure to bring your best stealth skills.

      posted in General Discussion
      Medhane Ermias
      Medhane Ermias
    • Angekone no more a ZERO BROKER

      Angel one is no more a zero broker now
      5 rs per delivery transaction is too high !

      it is difficult to reactance in smallcase portfolio
      Per devilry order per script we need to invest above 5k pulse to workout the brokerage !!!

      posted in General Discussion
      Medhane Ermias
      Medhane Ermias
    • Revised Charges - Angel One

      @admin

      Revised Charges:

      Brokerage Equity - Delivery
      Previous :Lower of INR 20 or 0.1%,
      Minimum INR 2
      Current : Lower of INR 20 or 0.1%,
      Minimum INR 5

      Brokerage Equity - Intraday
      Previous : Lower of INR 20 or 0.03%
      Current : Lower of INR 20 or 0.1%,
      Minimum INR 5

      Not Happy:
      we camnot paticipate in smallcase - if the smallcase has 12 script then we need to pay 5 x 12 = 60 for brokerage min

      or

      If the script ltp is 100rs the we cannot buy 1 share ...the cost will be 5 brokerage ...that is 5 % we lost by investing .
      it works only if we buy 50 shares of 100 ltp then only it will be otimal
      we cannot diversify our investment with littel money investemt - too coustly for samll capital investors

      Angel one should comapre their brokerage with the peers and justify .

      posted in General Discussion
      Medhane Ermias
      Medhane Ermias
    • RE: option Greeks

      @admin VEDL

      i am unable to upload image here - which would have given better clarity

      anyhow you can check the greeks with angel one vs sensibull by yourself and understand that the greeks provided by angel is wrong ones !!!

      posted in General Discussion
      Medhane Ermias
      Medhane Ermias
    • RE: option Greeks

      @admin
      no reply from admin

      posted in General Discussion
      Medhane Ermias
      Medhane Ermias
    • option Greeks

      @admin
      I suspect the option Greeks provided by angel one is accurate and correct value ?

      I checked with sensibull and angel - they both differ and difference is huge .

      some one should let us know which one is accurate .

      if i use smatrapi to get option Greeks... it may be erroneous as per sensibull and opastra

      is there any way we can check the accurecy of angel one ?

      posted in General Discussion
      Medhane Ermias
      Medhane Ermias
    • is option greeks provided by angel is accurate ?

      i am observing the option greeks provided by Angel One is not matching with the sensibul and it is not matching with the opstra too.

      sensibul and opstra are providing correct values it seems and they both are in sync and matching.

      The Option Greeks values provided by angelone in mobile app is totally different and i suspect the values are correct or not !!!

      kindly some one should verify those values .

      we cannot implement/relied depending on angel one greeks values, especially implementing algos depending on suspected values .

      posted in General Discussion
      Medhane Ermias
      Medhane Ermias
    • RE: Symbol Token

      @dipankar

      1. get Json data
      2. convert it into dataframe
      3. apply filter
      posted in Python SDK
      Medhane Ermias
      Medhane Ermias
    • RE: Greeks - Delta is it accurate by Angel one ?

      @admin did you checked? greeks are not accurate .
      so we cannot depend on greeks provided by smartapi .

      posted in Python SDK
      Medhane Ermias
      Medhane Ermias
    • RE: HOW CAN A SUB BROKER GIVE CODING SERVICES

      @s2108014

      create an app with user log in.

      Single program you cannot have multiple logins .

      you need to create a different individual thread for each individual client.

      posted in General Discussion
      Medhane Ermias
      Medhane Ermias